MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / init

Function init

backend/src/backend_pre_start.py:22–29  ·  view source on GitHub ↗
(db_engine: Engine)

Source from the content-addressed store, hash-verified

20 after=after_log(logger, logging.WARN),
21)
22def init(db_engine: Engine) -> None:
23 try:
24 with Session(db_engine) as session:
25 # Try to create session to check if DB is awake
26 session.exec(select(1))
27 except Exception as e:
28 logger.error(e)
29 raise e
30
31
32def main() -> None:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected