example.models

example-app models

Database model definitions for SQLalchemy

created 26-mar-2019 by richb@instantlinux.net

license: lgpl-2.1

Functions

backref(name, **kwargs)

Create a back reference with explicit keyword arguments, which are the same arguments one can send to relationship().

declarative_base([bind, metadata, mapper, …])

Construct a base class for declarative class definitions.

relationship(argument[, secondary, …])

Provide a relationship between two mapped classes.

Classes

Account(**kwargs)

AesEngine()

Provide AES encryption and decryption methods.

AlembicVersion(**kwargs)

BOOLEAN([create_constraint, name, …])

The SQL BOOLEAN type.

Base(**kwargs)

The base class of the class hierarchy.

Category(**kwargs)

Column(*args, **kwargs)

Represents a column in a database table.

Contact(**kwargs)

Credential(**kwargs)

DirectMessage(**kwargs)

EncryptedType(*args, **kwargs)

Enum(*enums, **kw)

Generic Enum Type.

ForeignKey(column[, _constraint, use_alter, …])

Defines a dependency between two columns.

Grant(**kwargs)

INTEGER()

The SQL INT or INTEGER type.

List(**kwargs)

ListMember(**kwargs)

ListMessage(**kwargs)

Location(**kwargs)

Message(**kwargs)

Person(**kwargs)

Profile(**kwargs)

Settings(**kwargs)

Storage(**kwargs)

String([length, collation, convert_unicode, …])

The base for all string and character types.

TEXT([length, collation, convert_unicode, …])

The SQL TEXT type.

TIMESTAMP([timezone])

The SQL TIMESTAMP type.

TZname(**kwargs)

Unicode([length])

A variable length Unicode string type.

UniqueConstraint(*columns, **kw)

A table-level UNIQUE constraint.

class example.models.Account(**kwargs)
class example.models.AlembicVersion(**kwargs)
class example.models.Category(**kwargs)
class example.models.Contact(**kwargs)
class example.models.Credential(**kwargs)
class example.models.DirectMessage(**kwargs)
class example.models.Grant(**kwargs)
class example.models.List(**kwargs)
class example.models.ListMember(**kwargs)
class example.models.ListMessage(**kwargs)
class example.models.Location(**kwargs)
class example.models.Message(**kwargs)
class example.models.Person(**kwargs)
class example.models.Profile(**kwargs)
class example.models.Settings(**kwargs)
class example.models.Storage(**kwargs)
class example.models.TZname(**kwargs)