diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index c7dc832..7ba4ecb 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -251,6 +251,13 @@ class Database: """ Wrapper for a SQLite database connection that adds a variety of useful utility methods. + To create an instance:: + + # create data.db file, or open existing: + db = Database("data.db") + # Create an in-memory database: + dB = Database(memory=True) + - ``filename_or_conn`` - String path to a file, or a ``pathlib.Path`` object, or a ``sqlite3`` connection - ``memory`` - set to ``True`` to create an in-memory database