From 114884595a2b12ed013fd98b10e7421783aed82f Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Sat, 9 Nov 2019 20:08:04 -0600 Subject: base --- shopdb/__init__.py | 1 + shopdb/_base.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 shopdb/_base.py 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 -- cgit v1.2.3