col

Col -- SQLObject columns

Note that each column object is named BlahBlahCol, and these are used in class definitions. But there's also a corresponding SOBlahBlahCol object, which is used in SQLObject classes.

An explanation: when a SQLObject subclass is created, the metaclass looks through your class definition for any subclasses of Col. It collects them together, and indexes them to do all the database stuff you like, like the magic attributes and whatnot. It then asks the Col object to create an SOCol object (usually a subclass, actually). The SOCol object contains all the interesting logic, as well as a record of the attribute name you used and the class it is bound to (set by the metaclass).

So, in summary: Col objects are what you define, but SOCol objects are what gets used.


Attributes

a DATETIME_IMPLEMENTATION

'datetime'

a mxdatetime_available

True

a MXDATETIME_IMPLEMENTATION

'mxDateTime'

a datetime_available

True

a default_datetime_implementation

'datetime'

a __package__

'sqlobject'

Classes

C SOCol(...) ...

This class contains 21 members.

C Col(...) ...

This class contains 7 members.

C SOStringLikeCol(...) ...

A common ancestor for SOStringCol and SOUnicodeCol

This class contains 21 members.

C SOStringCol(...) ...

This class contains 21 members.

C StringCol(...) ...

This class contains 7 members.

C SOUnicodeCol(...) ...

This class contains 21 members.

C UnicodeCol(...) ...

This class contains 7 members.

C SOIntCol(...) ...

This class contains 22 members.

C IntCol(...) ...

This class contains 7 members.

C SOTinyIntCol(...) ...

This class contains 22 members.

C TinyIntCol(...) ...

This class contains 7 members.

C SOSmallIntCol(...) ...

This class contains 22 members.

C SmallIntCol(...) ...

This class contains 7 members.

C SOMediumIntCol(...) ...

This class contains 22 members.

C MediumIntCol(...) ...

This class contains 7 members.

C SOBigIntCol(...) ...

This class contains 22 members.

C BigIntCol(...) ...

This class contains 7 members.

C SOBoolCol(...) ...

This class contains 21 members.

C BoolCol(...) ...

This class contains 7 members.

C SOFloatCol(...) ...

This class contains 21 members.

C FloatCol(...) ...

This class contains 7 members.

C SOKeyCol(...) ...

This class contains 22 members.

C KeyCol(...) ...

This class contains 7 members.

C SOForeignKey(...) ...

This class contains 27 members.

C ForeignKey(...) ...

This class contains 7 members.

C SOEnumCol(...) ...

This class contains 21 members.

C EnumCol(...) ...

This class contains 7 members.

C SOSetCol(...) ...

This class contains 21 members.

C SetCol(...) ...

This class contains 7 members.

C SODateTimeCol(...) ...

This class contains 22 members.

C DateTimeCol(...) ...

This class contains 8 members.

C SODateCol(...) ...

This class contains 22 members.

C DateCol(...) ...

This class contains 7 members.

C SOTimeCol(...) ...

This class contains 22 members.

C TimeCol(...) ...

This class contains 7 members.

C SOTimestampCol(...) ...

Necessary to support MySQL's use of TIMESTAMP versus DATETIME types

This class contains 22 members.

C TimestampCol(...) ...

This class contains 7 members.

C SOTimedeltaCol(...) ...

This class contains 21 members.

C TimedeltaCol(...) ...

This class contains 7 members.

C SODecimalCol(...) ...

This class contains 21 members.

C DecimalCol(...) ...

This class contains 7 members.

C SOCurrencyCol(...) ...

This class contains 21 members.

C CurrencyCol(...) ...

This class contains 7 members.

C SODecimalStringCol(...) ...

This class contains 21 members.

C DecimalStringCol(...) ...

This class contains 7 members.

C SOBLOBCol(...) ...

This class contains 21 members.

C BLOBCol(...) ...

This class contains 7 members.

C SOPickleCol(...) ...

This class contains 21 members.

C PickleCol(...) ...

This class contains 7 members.

See the source for more information.