mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
18 lines
311 B
Python
18 lines
311 B
Python
|
import sqlalchemy.orm
|
||
|
import royalnet.lazy
|
||
|
|
||
|
from ..config import *
|
||
|
|
||
|
# noinspection PyUnresolvedReferences
|
||
|
from . import tables
|
||
|
|
||
|
|
||
|
lazy_engine = royalnet.lazy.Lazy(lambda c: sqlalchemy.create_engine(c["database.uri"]), c=lazy_config)
|
||
|
"""
|
||
|
The uninitialized sqlalchemy engine.
|
||
|
"""
|
||
|
|
||
|
__all__ = (
|
||
|
"lazy_engine",
|
||
|
)
|