(name: str)
| 63 | |
| 64 | |
| 65 | def create_or_open(name: str): |
| 66 | exists = os.path.exists(name) |
| 67 | conn = sqlite3.connect(name) |
| 68 | if not exists: |
| 69 | initialize_schema(conn) |
| 70 | else: |
| 71 | load_existing(conn.cursor()) |
| 72 | |
| 73 | return conn |
| 74 | |
| 75 | |
| 76 | def load_existing(cursor): |
no test coverage detected