astro_tinder
4 месяца назад
4 месяца назад
4 месяца назад
4 месяца назад
4 месяца назад
4 месяца назад
4 месяца назад
4 месяца назад
4 месяца назад
README.md
Project DB Migration to SQLite
This project was converted from MySQL (aiomysql) to SQLite using and SQLAlchemy async engine.aiosqlite
- Default database file:
(relative to project root)../database.sqlite3 - To override, set
inDATABASE_URL(example:.env).sqlite+aiosqlite:///./database.sqlite3
Quick steps to initialize the DB:
- Install dependencies (using Poetry):
- Create tables (runs
):app.database.models.async_main
- Reset DB: remove
file and run step 2 again.database.sqlite3
Notes:
- If you previously had MySQL credentials in
, they were replaced with the SQLite URL. If you want to keep MySQL in some environments, set.envaccordingly in that environment.DATABASE_URL - The project uses SQLAlchemy ORM; most existing queries continue to work without changes.