Create a runcatalog table in a MySQL test database.
Based on the code sqlcreatedb.C by Sergey Linev
from ROOT import TSQLServer
fp = open("runcatalog.sql", "r")
sql = fp.read()
fp.close()
res = db.Query("DROP TABLE runcatalog")
res = db.Query(sql)
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
- Juan Fernando Jaramillo Botero
Definition in file sqlcreatedb.py.