|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   36 #ifndef vtkMySQLDatabase_h 
   37 #define vtkMySQLDatabase_h 
   39 #include "vtkIOMySQLModule.h"  
   62   bool Open(
const char* password = 0) 
override;
 
   67   void Close() 
override;
 
  115   vtkSetStringMacro(HostName);
 
  116   vtkGetStringMacro(HostName);
 
  123   vtkSetStringMacro(User);
 
  124   vtkGetStringMacro(User);
 
  131   vtkSetStringMacro(Password);
 
  138   vtkSetStringMacro(DatabaseName);
 
  139   vtkGetStringMacro(DatabaseName);
 
  148   vtkSetMacro(Reconnect, 
int);
 
  149   vtkGetMacro(Reconnect, 
int);
 
  150   vtkBooleanMacro(Reconnect, 
int);
 
  158   vtkGetMacro(ServerPort, 
int);
 
  205   bool CreateDatabase(
const char* dbName, 
bool dropExisting);
 
  211   bool DropDatabase(
const char* dbName);
 
  227   vtkSetStringMacro(DatabaseType);
 
  246 #endif // vtkMySQLDatabase_h 
  
virtual vtkStringArray * GetRecord(const char *table)=0
Get the list of fields for a particular table.
virtual bool IsSupported(int vtkNotUsed(feature))
Return whether a feature is supported by the database.
virtual void Close()=0
Close the connection to the database.
virtual bool HasError()=0
Did the last operation generate an error.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual vtkStdString GetIndexSpecification(vtkSQLDatabaseSchema *schema, int tblHandle, int idxHandle, bool &skipped)
Return the SQL string with the syntax to create an index inside a "CREATE TABLE" SQL statement.
virtual vtkSQLQuery * GetQueryInstance()=0
Return an empty query on this database.
virtual bool IsOpen()=0
Return whether the database has an open connection.
maintain a connection to a MySQL database
virtual bool Open(const char *password)=0
Open a new connection to the database.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
const char * GetDatabaseType() override
String representing database type (e.g.
vtkSQLQuery implementation for MySQL databases
virtual vtkStringArray * GetTables()=0
Get the list of tables from the database.
represent an SQL database schema
virtual vtkStdString GetURL()=0
Get the URL of the database.
virtual vtkStdString GetColumnSpecification(vtkSQLDatabaseSchema *schema, int tblHandle, int colHandle)
Return the SQL string with the syntax to create a column inside a "CREATE TABLE" SQL statement.
a vtkAbstractArray subclass for strings
vtkStdString GetTablePreamble(bool b) override
Return the SQL string with the syntax of the preamble following a "CREATE TABLE" SQL statement.
virtual bool ParseURL(const char *url)=0
Subclasses should override this method to determine connection parameters given the URL.
Wrapper around std::string to keep symbols short.
friend class vtkMySQLDatabase
virtual const char * GetLastErrorText()=0
Get the last error text from the database I'm using const so that people do NOT use the standard vtkG...
executes an sql query and retrieves results
maintain a connection to an sql database