mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
Refactor Compat and Database for LNbits comaptibility (#219)
* remove changes to Compat and Database so its compatible with the classes from LNbits * ledger.py: Annotate Connection type * fix invoice memp
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
import re
|
||||
|
||||
from ..core.db import COCKROACH, POSTGRES, SQLITE, Database
|
||||
|
||||
|
||||
def table_with_schema(db, table: str):
|
||||
return f"{db.references_schema if db.schema else ''}{table}"
|
||||
from ..core.db import COCKROACH, POSTGRES, SQLITE, Database, table_with_schema
|
||||
|
||||
|
||||
async def migrate_databases(db: Database, migrations_module):
|
||||
|
||||
Reference in New Issue
Block a user