Small cleanup
Build Backend / build (push) Successful in 1m54s

This commit is contained in:
2026-06-04 09:18:22 +02:00
parent df210c66a0
commit b763aa1e9d
11 changed files with 6 additions and 222 deletions
+16
View File
@@ -0,0 +1,16 @@
import asyncio
from sqlalchemy.ext.asyncio import create_async_engine
async def test():
# Using relative path from the current directory (root) to backend/data/sleep.db
engine = create_async_engine('sqlite+aiosqlite:///./backend/data/sleep.db')
try:
async with engine.begin() as conn:
print('Success')
except Exception as e:
print(f'Error: {e}')
finally:
await engine.dispose()
if __name__ == "__main__":
asyncio.run(test())