mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
Connection to sqlite db file
This commit is contained in:
parent
ec9e0fad78
commit
6cd7bf8da2
1 changed files with 10 additions and 0 deletions
10
database.py
Normal file
10
database.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
|
||||
URL_DATABASE = "sqlite:///./kanban_clone.db"
|
||||
|
||||
engine = create_engine(URL_DATABASE)
|
||||
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
||||
|
||||
Base = declarative_base()
|
||||
Loading…
Add table
Add a link
Reference in a new issue