# Path: solace/database.py
# def get_engine():
# def refresh_engine():
# def atomic_add(obj, column, delta, expire=False):
# def mapper(model, table, **options):
#     def cursor_execute(self, execute, cursor, statement, parameters,
#                        context, executemany):
#     def after_delete(self, mapper, connection, instance):
#     def after_insert(self, mapper, connection, instance):
#     def after_update(self, mapper, connection, instance):
#     def _record(self, model, operation):
#     def before_commit(self, session):
#     def after_commit(self, session):
#     def after_rollback(self, session):
#     def __init__(self):
#     def __init__(self):
#     def process_bind_param(self, value, dialect):
#     def process_result_value(self, value, dialect):
#     def is_mutable(self):
#     def __init__(self):
#     def process_bind_param(self, value, dialect):
#     def process_result_value(self, value, dialect):
#     def is_mutable(self):
# def init():
# def drop_tables():
# def add_query_debug_headers(request, response):
# def request_track_query(cursor, statement, parameters, time):
# class ConnectionQueryTrackingProxy(ConnectionProxy):
# class SignalTrackingMapperExtension(MapperExtension):
# class SignalEmittingSessionExtension(SessionExtension):
# class SignalTrackingSession(Session):
# class LocaleType(TypeDecorator):
# class BadgeType(TypeDecorator):


from sqlalchemy import Table, Column, Integer, String, Text, DateTime, \
     ForeignKey, Boolean, Float
from solace.database import LocaleType, BadgeType, metadata
    # the post the entry was created from
    Column('post_id', Integer, ForeignKey('posts.post_id')),
    # the editor of the attic entry.  Because the original author may
    # not change there is no field for it.
    Column('editor_id', Integer, ForeignKey('users.user_id')),
    # the date of the attic entry.
    Column('date', DateTime),
    # the text contents of the entry.
    Column('text', Text)
)


# openid support
openid_association = Table('openid_association', metadata,
    Column('association_id', Integer, primary_key=True),
    Column('server_url', String(2048)),
    Column('handle', String(255)),
    Column('secret', String(255)),
    Column('issued', Integer),
    Column('lifetime', Integer),
    Column('assoc_type', String(64))
)

openid_user_nonces = Table('openid_user_nonces', metadata,
    Column('user_nonce_id', Integer, primary_key=True),
    Column('server_url', String(2048)),
    Column('timestamp', Integer),
    Column('salt', String(40))
)


# Path: solace/database.py
# def get_engine():
# def refresh_engine():
# def atomic_add(obj, column, delta, expire=False):
# def mapper(model, table, **options):
#     def cursor_execute(self, execute, cursor, statement, parameters,
#                        context, executemany):
#     def after_delete(self, mapper, connection, instance):
#     def after_insert(self, mapper, connection, instance):
#     def after_update(self, mapper, connection, instance):
#     def _record(self, model, operation):
#     def before_commit(self, session):
#     def after_commit(self, session):
#     def after_rollback(self, session):
#     def __init__(self):
#     def __init__(self):
#     def process_bind_param(self, value, dialect):
#     def process_result_value(self, value, dialect):
#     def is_mutable(self):
#     def __init__(self):
#     def process_bind_param(self, value, dialect):
#     def process_result_value(self, value, dialect):
#     def is_mutable(self):
# def init():
# def drop_tables():
# def add_query_debug_headers(request, response):
# def request_track_query(cursor, statement, parameters, time):
# class ConnectionQueryTrackingProxy(ConnectionProxy):
# class SignalTrackingMapperExtension(MapperExtension):
# class SignalEmittingSessionExtension(SessionExtension):
# class SignalTrackingSession(Session):
# class LocaleType(TypeDecorator):
# class BadgeType(TypeDecorator):


# Path: solace/schema.py
from sqlalchemy import Table, Column, Integer, String, Text, DateTime, \
     ForeignKey, Boolean, Float
from solace.database import LocaleType, BadgeType, metadata

    # the post the entry was created from
    Column('post_id', Integer, ForeignKey('posts.post_id')),
    # the editor of the attic entry.  Because the original author may
    # not change there is no field for it.
    Column('editor_id', Integer, ForeignKey('users.user_id')),
    # the date of the attic entry.
    Column('date', DateTime),
    # the text contents of the entry.
    Column('text', Text)
)


# openid support
openid_association = Table('openid_association', metadata,
    Column('association_id', Integer, primary_key=True),
    Column('server_url', String(2048)),
    Column('handle', String(255)),
    Column('secret', String(255)),
    Column('issued', Integer),
    Column('lifetime', Integer),
    Column('assoc_type', String(64))
)

openid_user_nonces = Table('openid_user_nonces', metadata,
    Column('user_nonce_id', Integer, primary_key=True),
    Column('server_url', String(2048)),
    Column('timestamp', Integer),
    Column('salt', String(40))
)


openid_user_mapping = Table('openid_user_mapping', metadata,