Changeset View
Changeset View
Standalone View
Standalone View
pykolab/auth/ldap/cache.py
Show All 17 Lines | |||||
import datetime | import datetime | ||||
import sqlalchemy | import sqlalchemy | ||||
from sqlalchemy import Column | from sqlalchemy import Column | ||||
from sqlalchemy import DateTime | from sqlalchemy import DateTime | ||||
from sqlalchemy import Integer | from sqlalchemy import Integer | ||||
from sqlalchemy import LargeBinary | |||||
from sqlalchemy import MetaData | from sqlalchemy import MetaData | ||||
from sqlalchemy import String | from sqlalchemy import String | ||||
from sqlalchemy import Table | from sqlalchemy import Table | ||||
from sqlalchemy import desc | from sqlalchemy import desc | ||||
from sqlalchemy import create_engine | from sqlalchemy import create_engine | ||||
from sqlalchemy.orm import mapper | from sqlalchemy.orm import mapper | ||||
Show All 40 Lines | |||||
## | ## | ||||
## Tables | ## Tables | ||||
## | ## | ||||
entry_table = Table( | entry_table = Table( | ||||
'entry', metadata, | 'entry', metadata, | ||||
Column('id', Integer, primary_key=True), | Column('id', Integer, primary_key=True), | ||||
Column('uniqueid', String(128), nullable=False), | Column('uniqueid', LargeBinary, nullable=False), | ||||
Column('result_attribute', String(128), nullable=False), | Column('result_attribute', String(128), nullable=False), | ||||
Column('last_change', DateTime), | Column('last_change', DateTime), | ||||
) | ) | ||||
## | ## | ||||
## Table <-> Class Mappers | ## Table <-> Class Mappers | ||||
## | ## | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |