sqlmeta

This object is the object we use to keep track of all sorts of information. Subclasses are made for each SQLObject subclass (dynamically if necessary), and instances are created to go alongside every SQLObject instance.


Attributes

a cacheValues

True

a childClasses

{}

a childName

None

a columnDefinitions

{}

a columnList

[]

a columns

{}

a dbEncoding

None

a defaultOrder

None

a dirty

False

a expired

False

a fromDatabase

False

a idName

None

a idSequence

None

a indexDefinitions

[]

a indexes

[]

a joinDefinitions

[]

a joins

[]

a lazyUpdate

False

a parentClass

None

a registry

None

a style

None

a table

None

Methods

f __format__(...) ...

default object formatter

f __sizeof__(...) ...

__sizeof__() -> size of object in memory, in bytes

f __subclasshook__(...) ...

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

f __classinit__(cls, new_attrs) ...

f __init__(self, instance) ...

f send(cls, signal, *args, **kw) ...

f setClass(cls, soClass) ...

f addColumn(cls, columnDef, changeSchema=False, connection=None) ...

f addColumnsFromDatabase(sqlmeta, connection=None) ...

f delColumn(cls, column, changeSchema=False, connection=None) ...

f addJoin(cls, joinDef) ...

f delJoin(sqlmeta, joinDef) ...

f addIndex(cls, indexDef) ...

f getColumns(sqlmeta) ...

f asDict(self) ...

Return the object as a dictionary of columns to values.

f expireAll(sqlmeta, connection=None) ...

Expire all instances of this class.

See the source for more information.