Async_ORM_Postgresql_Wrapper/asyncdb/__init__.py

21 lines
742 B
Python

"""
This module defines a simple wrapper around sqlalchemy's asynchronous features, the most important module being database
The module base is entirely optional to use, it simply extends the default sqlalchemy declarative base with a few
potentially useful columns
The module database is where the wrapper exists. database is a composition of sqlalchemy's asynchronous engine and
session within an instantiated class. This is useful for multiple connections simultaneously to a database as well
as simplifying accessing sessions and the engine from a singular source.
See the individual modules, database and base, for specific details.
"""
from .base import Base
from .database import Database
__all__ = [
'Base',
'Database'
]