# `SQLObject`

The SQLObject class is accessible via the `sqlobject.main` module.

## Attributes

#### a `childName`

    None

## Methods

#### f `__sizeof__(...)` ...

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

#### f `__format__(...)` ...

default object formatter

#### 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 `get(cls, id, connection=None, selectResults=None)` ...

#### f `sync(self)` ...

#### f `syncUpdate(self)` ...

#### f `expire(self)` ...

#### f `set(self, _suppress_set_sig=False, **kw)` ...

#### f `__init__(self, **kw)` ...

#### f `select(cls, clause=None, clauseTables=None, orderBy=<class sqlobject.sqlbuilder.NoDefault at 0xb9de65c>, limit=None, lazyColumns=False, reversed=False, distinct=False, connection=None, join=None, forUpdate=False)` ...

#### f `selectBy(cls, connection=None, **kw)` ...

#### f `tableExists(cls, connection=None)` ...

#### f `dropTable(cls, ifExists=False, dropJoinTables=True, cascade=False, connection=None)` ...

#### f `createTable(cls, ifNotExists=False, createJoinTables=True, createIndexes=True, applyConstraints=True, connection=None)` ...

#### f `createTableSQL(cls, createJoinTables=True, createIndexes=True, connection=None)` ...

#### f `createJoinTables(cls, ifNotExists=False, connection=None)` ...

#### f `createJoinTablesSQL(cls, connection=None)` ...

#### f `createIndexes(cls, ifNotExists=False, connection=None)` ...

#### f `createIndexesSQL(cls, connection=None)` ...

#### f `dropJoinTables(cls, ifExists=False, connection=None)` ...

#### f `clearTable(cls, connection=None, clearJoinTables=True)` ...

#### f `destroySelf(self)` ...

#### f `delete(cls, id, connection=None)` ...

#### f `deleteMany(cls, where=<class sqlobject.sqlbuilder.NoDefault at 0xb9de65c>, connection=None)` ...

#### f `deleteBy(cls, connection=None, **kw)` ...

#### f `__sqlrepr__(self, db)` ...

#### f `sqlrepr(cls, value, connection=None)` ...

#### f `coerceID(cls, value)` ...

#### f `setConnection(cls, value)` ...

#### f `tablesUsedImmediate(self)` ...

#### f `__eq__(self, other)` ...

#### f `__ne__(self, other)` ...

#### f `__lt__(self, other)` ...

#### f `__le__(self, other)` ...

#### f `__gt__(self, other)` ...

#### f `__ge__(self, other)` ...

#### f `__getstate__(self)` ...

#### f `__setstate__(self, d)` ...

See the source for more information.