This commit is contained in:
Timothy Jaeryang Baek 2025-08-10 00:02:58 +04:00
parent 77189664c2
commit c77b36bdcc
2 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,6 @@ from peewee import InterfaceError as PeeWeeInterfaceError
from peewee import PostgresqlDatabase
from playhouse.db_url import connect, parse
from playhouse.shortcuts import ReconnectMixin
from playhouse.sqlcipher_ext import SqlCipherDatabase
log = logging.getLogger(__name__)
log.setLevel(SRC_LOG_LEVELS["DB"])
@ -52,6 +51,7 @@ def register_connection(db_url):
raise ValueError(
"DATABASE_PASSWORD is required when using sqlite+sqlcipher:// URLs"
)
from playhouse.sqlcipher_ext import SqlCipherDatabase
# Parse the database path from SQLCipher URL
# Convert sqlite+sqlcipher:///path/to/db.sqlite to /path/to/db.sqlite

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB