[UPD] Added LibraryController

This commit is contained in:
2026-02-14 18:37:48 +01:00
parent 5fc1dc1b82
commit 5f7b4102bc
13 changed files with 257 additions and 36 deletions

View File

@@ -0,0 +1,14 @@
from sqlalchemy.orm import Session
from ....schema.library.base import Base
import logging
logger = logging.getLogger(__name__)
def create(session:Session, library:Base):
logger.debug("Add Library")
session.add(library)
logger.debug("Added Library")
session.commit()
logger.debug("Committed Library")
session.refresh(library)
logger.debug("Rerfreshed Library")