From a56233d5a621a45577f1cd43019905d809070d6e Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Wed, 15 Feb 2023 16:23:22 +0100 Subject: [PATCH] started laying out read write operations --- src/music_kraken/database/read.py | 0 src/music_kraken/database/write.py | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/music_kraken/database/read.py create mode 100644 src/music_kraken/database/write.py diff --git a/src/music_kraken/database/read.py b/src/music_kraken/database/read.py new file mode 100644 index 0000000..e69de29 diff --git a/src/music_kraken/database/write.py b/src/music_kraken/database/write.py new file mode 100644 index 0000000..279b895 --- /dev/null +++ b/src/music_kraken/database/write.py @@ -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