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

Method SetDatabase

IO/SQL/vtkTableToDatabaseWriter.cxx:30–49  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

28
29//------------------------------------------------------------------------------
30bool vtkTableToDatabaseWriter::SetDatabase(vtkSQLDatabase* db)
31{
32 if (!db)
33 {
34 return false;
35 }
36 this->Database = db;
37 if (!this->Database->IsOpen())
38 {
39 vtkErrorMacro(<< "SetDatabase must be passed an open database connection");
40 this->Database = nullptr;
41 return false;
42 }
43
44 if (!this->TableName.empty())
45 {
46 return this->TableNameIsNew();
47 }
48 return true;
49}
50
51//------------------------------------------------------------------------------
52bool vtkTableToDatabaseWriter::SetTableName(const char* name)

Callers 9

GetQueryInstanceMethod · 0.45
GetQueryInstanceMethod · 0.45
TestMySQLTableReadWriteFunction · 0.45
GetQueryInstanceMethod · 0.45
TestSQLiteTableReadWriteFunction · 0.45
GetQueryInstanceMethod · 0.45
~vtkPostgreSQLQueryMethod · 0.45
GetQueryInstanceMethod · 0.45

Calls 3

TableNameIsNewMethod · 0.95
IsOpenMethod · 0.45
emptyMethod · 0.45

Tested by 3

TestMySQLTableReadWriteFunction · 0.36
TestSQLiteTableReadWriteFunction · 0.36