diff options
Diffstat (limited to 'shopdb')
-rw-r--r-- | shopdb/__init__.py | 1 | ||||
-rw-r--r-- | shopdb/_base.py | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shopdb/__init__.py b/shopdb/__init__.py index e69de29..d2be0a7 100644 --- a/shopdb/__init__.py +++ b/shopdb/__init__.py @@ -0,0 +1 @@ +from ._base import * diff --git a/shopdb/_base.py b/shopdb/_base.py new file mode 100644 index 0000000..d337790 --- /dev/null +++ b/shopdb/_base.py @@ -0,0 +1,8 @@ +__all__ = ["engine", "Base"] + + +import sqlalchemy + + +engine = sqlalchemy.create_engine('sqlite:///:memory:', echo=True) +Base = sqlalchemy.ext.declarative.declarative_base |