Message410704
The sqlite3 library implicitly creates the database if the requested file doesn't exist. I would like to be able to avoid that implicit creation. (Actually, it would be enough to know whether I had created the database, but the underlying SQLite library doesn't seem to indicate that.)
The C code currently hard-codes the SQLite flag to create the database if it doesn't exist:
rc = sqlite3_open_v2(database, &db,
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE |
(uri ? SQLITE_OPEN_URI : 0), NULL);
Could we make this an option, so the Python code could avoid implicit creation? |
|
Date |
User |
Action |
Args |
2022-01-16 17:42:31 | nedbat | set | recipients:
+ nedbat |
2022-01-16 17:42:31 | nedbat | set | messageid: <1642354951.94.0.0196272577556.issue46402@roundup.psfhosted.org> |
2022-01-16 17:42:31 | nedbat | link | issue46402 messages |
2022-01-16 17:42:31 | nedbat | create | |
|