StarPeak ToolKit |
|
About SPTK Downloads Documentation Examples Supported Platforms and Plugins |
#include <sptksqldatabase.h>
Inheritance diagram for sptkSQLDatabase:
Public Member Functions | |
virtual int | changeUser (std::string user, std::string passwd="", std::string database="") |
virtual void | close () |
virtual int | connect (std::string server, std::string user, std::string passwd, std::string database="", int flags=0) |
virtual int | createDB (std::string database) |
virtual sptkSQLResult * | query (std::string queryString) |
virtual int | drop (std::string name) |
virtual std::string | error () |
virtual std::string * | listDBs (std::string wildcard="") |
virtual std::string * | listTables (std::string wildcard="") |
virtual int | selectDB (std::string database) |
|
Change user logged in on active connection; call after connect() only.
|
|
Close active SQL connection; Connection closed by destructor if not persistent. |
|
Open a connection to a SQL Server
|
|
Create a SQL database
|
|
Send a SQL query
|
|
Returns the text of the error message from previous SQL operation.
|
|
List databases available on actual SQL server.
|
|
List tables in a SQL database
|
|
Send a SQL query to the database
|
|
Select a MySQL database
|