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

Method AddTable

IO/SQL/vtkSQLDatabaseSchema.cxx:121–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

119
120//------------------------------------------------------------------------------
121int vtkSQLDatabaseSchema::AddTable(const char* tblName)
122{
123 if (!tblName)
124 {
125 vtkErrorMacro("Cannot add table with empty name");
126 return -1;
127 }
128
129 vtkSQLDatabaseSchemaInternals::Table newTbl;
130 int tblHandle = static_cast<int>(this->Internals->Tables.size());
131 newTbl.Name = tblName;
132 this->Internals->Tables.push_back(newTbl);
133 return tblHandle;
134}
135
136//------------------------------------------------------------------------------
137int vtkSQLDatabaseSchema::AddColumnToIndex(int tblHandle, int idxHandle, int colHandle)

Callers 1

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected