Create a new (or open an existing) writable database and return a Store.
(cls, db_path: str)
| 126 | |
| 127 | @classmethod |
| 128 | def create(cls, db_path: str) -> "Store": |
| 129 | """Create a new (or open an existing) writable database and return a Store.""" |
| 130 | s = cls(db_path) |
| 131 | s._conn.executescript(_CREATE_SCHEMA) |
| 132 | return s |
| 133 | |
| 134 | def close(self) -> None: |
| 135 | if self._conn: |
no outgoing calls