Public Member Functions | Static Protected Attributes

WobSchemaBase Class Reference

List of all members.

Public Member Functions

 __construct ()
 version ()
 tableNames ()
 hasTable ($t)
 backupTables ()
 tableDefinition ($tab)
 tableColumns ($tab)
 tableHasColumn ($tab, $col)
 tableDefaults ($tab)
 columnType ($tab, $col)
 columnFlags ($tab, $col)
 isIntColumn ($tab, $col)
 hasSequence ($tab)
 isStringColumn ($tab, $col)
 isBlobColumn ($tab, $col)
 isBoolColumn ($tab, $col)
 primaryKeyColumns ($tab)

Static Protected Attributes

static $scheme
static $preset
static $sversion
static $backup

Detailed Description

This class parses the high-level description of the database structure generated by woc; access it via $dbScheme


Constructor & Destructor Documentation

WobSchemaBase::__construct (  ) 

Member Function Documentation

WobSchemaBase::backupTables (  ) 

return the tables that are included in the backup

WobSchemaBase::columnFlags ( tab,
col 
)

return the flags of a column, empty array if no flags are set, or false if the column does not exist

WobSchemaBase::columnType ( tab,
col 
)

return the type of a column, or false if it does not exist

WobSchemaBase::hasSequence ( tab  ) 

returns the sequence column name if the table has a sequence, false otherwise

WobSchemaBase::hasTable ( t  ) 

returns whether a table exists in the schema

WobSchemaBase::isBlobColumn ( tab,
col 
)

returns true if the given column is of a blob type

WobSchemaBase::isBoolColumn ( tab,
col 
)

returns true if the given column is of a bool type

WobSchemaBase::isIntColumn ( tab,
col 
)

returns true if the given column is of an integer type

WobSchemaBase::isStringColumn ( tab,
col 
)

returns true if the given column is of a string type

WobSchemaBase::primaryKeyColumns ( tab  ) 

returns the names of all primary key columns of the table

WobSchemaBase::tableColumns ( tab  ) 

return the names of all columns of a table, or false if the table does not exist

WobSchemaBase::tableDefaults ( tab  ) 

return default lines of the table for the initialization; returns empty array if there are none

WobSchemaBase::tableDefinition ( tab  ) 

return the full definition of a table, or false if it does not exist

WobSchemaBase::tableHasColumn ( tab,
col 
)

return whether the table has this column

WobSchemaBase::tableNames (  ) 

return the tables to be created in order

WobSchemaBase::version (  ) 

return the version of this scheme


Member Data Documentation

WobSchemaBase::$backup [static, protected]
WobSchemaBase::$preset [static, protected]
WobSchemaBase::$scheme [static, protected]
WobSchemaBase::$sversion [static, protected]

The documentation for this class was generated from the following file: