|
def | __init__ (self, database, table_name, rowClass=None, check=0, create=0, rowListClass=None, replication=None) |
|
def | addIndex (self, columns, indexName=None, unique=0) |
|
def | alterTableToMatch (self, cursor=None) |
|
def | checkTable (self, warnflag=1) |
|
def | columnType (self, col_name) |
|
def | convertDataForColumn (self, data, col_name) |
|
def | createIndex (self, columns, indexName=None, unique=0, cursor=None) |
|
def | createTable (self, cursor=None) |
|
def | d_addColumn (self, col_name, ctype, size=None, primarykey=0, notnull=0, indexed=0, default=None, unique=0, autoincrement=0, autoguid=0, safeupdate=0, enum_values=None, no_export=0, relations=None, foreign_key=None, compress_ok=0, int_date=0) |
|
def | d_addDeleteTrigger (self, triggerName, tsql) |
|
def | d_addInsertTrigger (self, triggerName, tsql) |
|
def | d_addUpdateColumnsTrigger (self, triggerName, columns, tsql) |
|
def | d_addUpdateTrigger (self, triggerName, tsql) |
|
def | d_addValueColumn (self) |
|
def | d_addVColumn (self, col_name, type, size=None, default=None) |
|
def | d_belongsTo (self, col_name, tblNameStr=None, foreign_key=None, order=None) |
|
def | d_fullTextSearch (self) |
|
def | d_hasMany (self, tblname, col_name, foreign_key=None, order=None) |
|
def | d_hasOne (self, col_name, tblname, foreign_key=None, order=None) |
|
def | databaseSizeForData_ColumnName_ (self, data, col_name) |
|
def | deleteAllRows (self, cursor=None) |
|
def | dropTable (self, cursor=None) |
|
def | getAppColumnList (self) |
|
def | getColumnDef (self, column_name) |
|
def | getColumnList (self) |
|
def | getColumnOption (self, columnName, optionName) |
|
def | getDB (self) |
|
def | getIndices (self) |
|
def | getPrimaryKeyList (self) |
|
def | getRelations (self) |
|
def | getReplication (self) |
|
def | getTableColumnsFromDB (self) |
|
def | getTableName (self) |
|
def | hasColumn (self, column_name) |
| Column Definition. More...
|
|
def | hasColumn (self, name) |
|
def | hasReplication (self) |
|
def | hasValueColumn (self) |
|
def | hasVColumn (self, name) |
|
def | renameTable (self, newTableName, cursor=None) |
|
def | setTableName (self, tablename) |
|
def | subclassinit (self) |
|
|
def | __buildWhereClause (self, col_match_spec, other_clauses=None) |
|
def | __checkColumnLock (self) |
|
def | __fetchRows (self, col_match_spec, cursor=None, where=None, order_by=None, limit_to=None, skip_to=None, join=None, join2=None, column_list=None, raw_rows=False) |
|
def | __lockColumnsAndInit (self) |
|
def | _colTypeToSQLType (self, colname, coltype, options, singlePrimaryKey=0) |
|
def | _createTableSQL (self) |
|
def | _defineRelations (self) |
|
def | _defineRows (self) |
|
def | _fixColMatchSpec (self, col_match_spec, should_match_unique_row=0) |
| _checkColMatchSpec(col_match_spec,should_match_unique_row = 0) More...
|
|
Table.
Definition at line 653 of file odb.py.
def pyclearsilver.odb.Table._fixColMatchSpec |
( |
|
self, |
|
|
|
col_match_spec, |
|
|
|
should_match_unique_row = 0 |
|
) |
| |
|
private |
_checkColMatchSpec(col_match_spec,should_match_unique_row = 0)
raise an error if the col_match_spec contains invalid columns, or (in the case of should_match_unique_row) if it does not fully specify a unique row.
NOTE: we don't currently support where clauses with value column fields!
Definition at line 1212 of file odb.py.