diff options
author | Blaise Thompson <blaise@untzag.com> | 2019-11-09 20:08:04 -0600 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2019-11-09 20:08:04 -0600 |
commit | 114884595a2b12ed013fd98b10e7421783aed82f (patch) | |
tree | 26c65c84967fbd758cb422d1124001b1e5db62d6 | |
parent | 4f1731772dd84a41ed0756ac3a7953c3d021b1cd (diff) |
base
-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 |