Documentation and tests for db.is_mutable

This commit is contained in:
Simon Willison 2020-08-15 16:26:39 -07:00
commit af12f45c2b
2 changed files with 12 additions and 0 deletions

View file

@ -480,6 +480,12 @@ The ``Database`` class also provides properties and methods for introspecting th
``db.mtime_ns`` - integer or None
The last modification time of the database file in nanoseconds since the epoch. ``None`` for ``:memory:`` databases.
``db.is_mutable`` - boolean
Is this database mutable, and allowed to accept writes?
``db.is_memory`` - boolean
Is this database an in-memory database?
``await db.table_exists(table)`` - boolean
Check if a table called ``table`` exists.