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

Method GetTableNameFromHandle

IO/SQL/vtkSQLDatabaseSchema.cxx:330–339  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

328
329//------------------------------------------------------------------------------
330const char* vtkSQLDatabaseSchema::GetTableNameFromHandle(int tblHandle)
331{
332 if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables())
333 {
334 vtkErrorMacro("Cannot get name of non-existent table " << tblHandle);
335 return nullptr;
336 }
337
338 return this->Internals->Tables[tblHandle].Name.c_str();
339}
340
341//------------------------------------------------------------------------------
342int vtkSQLDatabaseSchema::GetIndexHandleFromName(const char* tblName, const char* idxName)

Callers 6

TestMySQLDatabaseFunction · 0.80
GetIndexSpecificationMethod · 0.80
EffectSchemaMethod · 0.80
TestSQLiteDatabaseFunction · 0.80
TestPostgreSQLDatabaseFunction · 0.80

Calls 2

GetNumberOfTablesMethod · 0.95
c_strMethod · 0.45

Tested by 3

TestMySQLDatabaseFunction · 0.64
TestSQLiteDatabaseFunction · 0.64
TestPostgreSQLDatabaseFunction · 0.64