If another connection opens a transaction to modify a table, Timeout ( float) – How many seconds the connection should wait before raisingĪn OperationalError when a table is locked. You can pass ":memory:" to create an SQLite database existing only Parametersĭatabase ( path-like object) – The path to the database file to be opened. connect ( database, timeout = 5.0, detect_types = 0, isolation_level = 'DEFERRED', check_same_thread = True, factory = sqlite3.Connection, cached_statements = 128, uri = False, *, autocommit = sqlite3.LEGACY_TRANSACTION_CONTROL ) ¶ How to use the connection context managerĮxplanation for in-depth background on transaction control. How to convert SQLite values to custom Python types ![]() How to adapt custom Python types to SQLite values ![]() How to use placeholders to bind values in SQL queries
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |