MCPcopy Create free account
hub / github.com/Kitware/VTK / GetNumberOfColumnsInTable

Method GetNumberOfColumnsInTable

IO/SQL/vtkSQLDatabaseSchema.cxx:756–765  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

754
755//------------------------------------------------------------------------------
756int vtkSQLDatabaseSchema::GetNumberOfColumnsInTable(int tblHandle)
757{
758 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
759 {
760 vtkErrorMacro("Cannot get the number of columns of non-existent table " << tblHandle);
761 return -1;
762 }
763
764 return static_cast<int>(this->Internals->Tables[tblHandle].Columns.size());
765}
766
767//------------------------------------------------------------------------------
768int vtkSQLDatabaseSchema::GetNumberOfIndicesInTable(int tblHandle)

Callers 4

TestMySQLDatabaseFunction · 0.80
EffectSchemaMethod · 0.80
TestSQLDatabaseSchemaFunction · 0.80
TestPostgreSQLDatabaseFunction · 0.80

Calls 2

GetNumberOfTablesMethod · 0.95
sizeMethod · 0.45

Tested by 3

TestMySQLDatabaseFunction · 0.64
TestSQLDatabaseSchemaFunction · 0.64
TestPostgreSQLDatabaseFunction · 0.64