projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switched existing sqla code over to elixir style.
[zzz-floof.git]
/
floof
/
model
/
meta.py
diff --git
a/floof/model/meta.py
b/floof/model/meta.py
index
03d1f92
..
7992ce1
100644
(file)
--- a/
floof/model/meta.py
+++ b/
floof/model/meta.py
@@
-1,16
+1,11
@@
-"""SQLAlchemy Metadata
and Session
object"""
+"""SQLAlchemy Metadata object"""
from sqlalchemy import MetaData
from sqlalchemy import MetaData
-from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.orm import scoped_session, sessionmaker
-__all__ = ['
Session', 'engine', 'TableBase
']
+__all__ = ['
engine', 'metadata
']
# SQLAlchemy database engine. Updated by model.init_model()
engine = None
# SQLAlchemy database engine. Updated by model.init_model()
engine = None
-# SQLAlchemy session manager. Updated by model.init_model()
-Session = scoped_session(sessionmaker())
+metadata = MetaData()
-# Base class for declarative; creates its own metadata object
-TableBase = declarative_base()
-metadata = TableBase.metadata