Add database functions

This commit is contained in:
knedlik
2025-12-05 22:52:38 +01:00
parent 3c0e58dfc1
commit 96be7567eb
17 changed files with 111 additions and 15 deletions

10
app/data/scriptloader.py Normal file
View File

@@ -0,0 +1,10 @@
from pathlib import Path
def get_sql(filename):
sql_query = Path(f"app/data/sql/{filename}.sql").read_text()
return sql_query
if __name__ == "__main__":
print(get_sql("sales_umsatz"))