CommitDatabaseSQLite¶
- class dsviper.CommitDatabaseSQLite¶
Bases:
objectA low-level class used to represent the database based on SQLite3 through the CommitDatabasing interface. Use the high-level static factory method CommitDatabase.create(…) or CommitDatabase.open(…).
Note: Not directly instantiable.
- begin_transaction() None¶
Create a transaction to boost the creation of many blobs.
- close() None¶
Close the database.
- commit() None¶
Commit the transaction.
- commit_databasing() CommitDatabasing¶
Return the CommitDatabasing interface.
- static create(file_path: str, *, documentation: str | None = None) CommitDatabaseSQLite¶
Create a database.
- static create_in_memory() CommitDatabaseSQLite¶
Create a database in memory.
- in_transaction() bool¶
Return True if a transaction is running.
- is_closed() bool¶
Return True if the database is closed.
- static is_compatible(file_path: str) bool¶
Return True if the SQL schema contains the required tables.
- static open(file_path: str, readonly: bool = False) CommitDatabaseSQLite¶
Open a database.
- rollback() None¶
Roll back the transaction.