Tdd create
From TaskDepender
(→Implementation) |
(→Implementation) |
||
Line 45: | Line 45: | ||
{ | { | ||
sqlite3_close(db); | sqlite3_close(db); | ||
− | |||
return &db; | return &db; | ||
} | } | ||
// -- Create tasks table -- | // -- Create tasks table -- | ||
− | + | rc = sqlite3_exec(db, TDD_CREATE_TASKS_TABLE, NULL, NULL, &dbError ); | |
// -- Create deliverables table -- | // -- Create deliverables table -- | ||
+ | rc = sqlite3_exec(db, TDD_CREATE_DELIVERABLES_TABLE, NULL, NULL, &dbError ); | ||
// -- Create the connections table -- | // -- Create the connections table -- | ||
+ | rc = sqlite3_exec(db, TDD_CREATE_CONNECTIONS_TABLE, NULL, NULL, &dbError ); | ||
// -- Create the temporary task-list table -- | // -- Create the temporary task-list table -- | ||
+ | rc = sqlite3_exec(db, TDD_CREATE_TASKLIST_TABLE, NULL, NULL, &dbError ); | ||
// -- Create the temporary deliverable-list table -- | // -- Create the temporary deliverable-list table -- | ||
+ | rc = sqlite3_exec(db, TDD_CREATE_TASKS_TABLE, NULL, NULL, &dbError ); | ||
// -- Create the temporary connection-list table -- | // -- Create the temporary connection-list table -- | ||
+ | rc = sqlite3_exec(db, TDD_CREATE_TASKS_TABLE, NULL, NULL, &dbError ); | ||