Create a runcatalog table in a MySQL test database.
{
FILE *fp = fopen("runcatalog.sql", "r");
const char sql[4096];
fread(sql, 1, 4096, fp);
fclose(fp);
res = db->
Query(
"DROP TABLE runcatalog");
delete res;
delete res;
delete db;
}
virtual TSQLResult * Query(const char *sql)=0
static TSQLServer * Connect(const char *db, const char *uid, const char *pw)
The db should be of the form: <dbms>://<host>[:<port>][/<database>], e.g.: mysql://pcroot....
- Author
- Sergey Linev
Definition in file sqlcreatedb.C.