started laying out read write operations
This commit is contained in:
parent
71e79faac4
commit
a56233d5a6
0
src/music_kraken/database/read.py
Normal file
0
src/music_kraken/database/read.py
Normal file
19
src/music_kraken/database/write.py
Normal file
19
src/music_kraken/database/write.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
from typing import Union
|
||||||
|
from peewee import (
|
||||||
|
SqliteDatabase,
|
||||||
|
MySQLDatabase,
|
||||||
|
PostgresqlDatabase,
|
||||||
|
)
|
||||||
|
|
||||||
|
from . import objects
|
||||||
|
|
||||||
|
# just a Type for type hintung. You can't do anything with it.
|
||||||
|
Database = Union[SqliteDatabase, PostgresqlDatabase, MySQLDatabase]
|
||||||
|
|
||||||
|
|
||||||
|
class Session:
|
||||||
|
"""
|
||||||
|
do the thingie with the with keyword
|
||||||
|
overload __end__ and maybe __start__ i dunfckinnow
|
||||||
|
"""
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user