Lines Matching refs:newDb
1788 ".clone NEWDB Clone data into NEWDB from the existing database\n"
2284 sqlite3 *newDb,
2320 rc = sqlite3_prepare_v2(newDb, zInsert, -1, &pInsert, 0);
2323 sqlite3_extended_errcode(newDb), sqlite3_errmsg(newDb),
2359 fprintf(stderr, "Error %d: %s\n", sqlite3_extended_errcode(newDb),
2360 sqlite3_errmsg(newDb));
2397 sqlite3 *newDb,
2421 sqlite3_exec(newDb, (const char*)zSql, 0, 0, &zErrMsg);
2428 xForEach(p, newDb, (const char*)zName);
2448 sqlite3_exec(newDb, (const char*)zSql, 0, 0, &zErrMsg);
2455 xForEach(p, newDb, (const char*)zName);
2472 sqlite3 *newDb = 0;
2477 rc = sqlite3_open(zNewDb, &newDb);
2480 sqlite3_errmsg(newDb));
2483 sqlite3_exec(newDb, "BEGIN EXCLUSIVE;", 0, 0, 0);
2484 tryToCloneSchema(p, newDb, "type='table'", tryToCloneData);
2485 tryToCloneSchema(p, newDb, "type!='table'", 0);
2486 sqlite3_exec(newDb, "COMMIT;", 0, 0, 0);
2489 sqlite3_close(newDb);