mirror of https://github.com/lukechilds/lnbits.git
3 changed files with 24 additions and 2 deletions
@ -0,0 +1,11 @@ |
|||
#async def m001_initial(db): |
|||
|
|||
# await db.execute( |
|||
# """ |
|||
# CREATE TABLE IF NOT EXISTS example ( |
|||
# id TEXT PRIMARY KEY, |
|||
# wallet TEXT NOT NULL, |
|||
# time TIMESTAMP NOT NULL DEFAULT (strftime('%s', 'now')) |
|||
# ); |
|||
# """ |
|||
# ) |
@ -0,0 +1,11 @@ |
|||
#from sqlite3 import Row |
|||
#from typing import NamedTuple |
|||
|
|||
|
|||
#class Example(NamedTuple): |
|||
# id: str |
|||
# wallet: str |
|||
# |
|||
# @classmethod |
|||
# def from_row(cls, row: Row) -> "Example": |
|||
# return cls(**dict(row)) |
Loading…
Reference in new issue