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:
callebtc
2023-05-15 22:15:56 +02:00
committed by GitHub
parent 6272aee189
commit d0283670d3
5 changed files with 39 additions and 35 deletions

View File

@@ -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):