diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-18 17:02:27 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-18 17:07:15 +0100 |
commit | 7b194a79f0ad789309b9c34340f19c5a962b0915 (patch) | |
tree | 9e15c72304d867bbe273e46d834af93fc181617d /mediagoblin/db/sql/models.py | |
parent | 18517e888a90bf1c0434dd4da99ef7980d333ed0 (diff) | |
download | mediagoblin-7b194a79f0ad789309b9c34340f19c5a962b0915.tar.lz mediagoblin-7b194a79f0ad789309b9c34340f19c5a962b0915.tar.xz mediagoblin-7b194a79f0ad789309b9c34340f19c5a962b0915.zip |
SQL: mongokit like interface
In trying to ease the migration to SQL, created an
interface to sqlalchemy that looks a lot like the interface
that is currently in use.
*WARNING* Work in progress
Diffstat (limited to 'mediagoblin/db/sql/models.py')
-rw-r--r-- | mediagoblin/db/sql/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/db/sql/models.py b/mediagoblin/db/sql/models.py index 7723a753..b87ff3aa 100644 --- a/mediagoblin/db/sql/models.py +++ b/mediagoblin/db/sql/models.py @@ -5,8 +5,10 @@ from sqlalchemy import ( Column, Integer, Unicode, UnicodeText, DateTime, Boolean, ForeignKey, UniqueConstraint) +from mediagoblin.db.sql.base import GMGTableBase -Base = declarative_base() + +Base = declarative_base(cls=GMGTableBase) class User(Base): |