6 DbRetVal rv
= conn
.open("praba", "manager");
7 if (rv
!= OK
) return 1;
8 DatabaseManager
*dbMgr
= conn
.getDatabaseManager();
9 if (dbMgr
== NULL
) { printf("Auth failed\n"); return 2;}
11 if ( createTable(dbMgr
, "t1") != 0 ) { ret
= 3; }
12 if ( createTable(dbMgr
, "t2") != 0 ) { ret
= 3; }
13 if ( createIndex(dbMgr
, "t1", "f1", "t1idx1") != 0 ) { ret
= 3; }
14 if ( createIndex(dbMgr
, "t1", "f2", "t1idx2") != 0 ) { ret
= 3; }
15 if ( createIndex(dbMgr
, "t2", "f1", "t2idx1") != 0 ) { ret
= 3; }