DbStruct Pile
version 0.0.1
This pile contains classes that can be used to
|
Public Member Functions | |
def | __init__ (self) |
def | database_start (self, name, node) |
def | database_end (self, name, node) |
def | table_start (self, name, node) |
def | table_end (self, name, node) |
def | column (self, name, label, datatype, nulls, node, dtnode) |
def | view_start (self, name, node) |
def | view_end (self, name, node) |
def | view_subset (self, node, subset) |
def | check_foreign_keys (self) |
Static Public Member Functions | |
def | get_foreign_key (node) |
Public Attributes | |
views | |
tables | |
Default implementation with regard to the underlying Sql variant.
def pileschema.Driver.check_foreign_keys | ( | self | ) |
Make sure that all columns referenced in foreign keys actually exist.
def pileschema.Driver.column | ( | self, | |
name, | |||
label, | |||
datatype, | |||
nulls, | |||
node, | |||
dtnode | |||
) |
Processing a column
def pileschema.Driver.database_end | ( | self, | |
name, | |||
node | |||
) |
Done processing database `name`
def pileschema.Driver.database_start | ( | self, | |
name, | |||
node | |||
) |
Starting to process database `name`
|
static |
Extracts foreign key data from an xml node The result is None if no foreign key exists of a list of three elements: the table, the key column and the columns that should replace original key in a presentation to the user.
def pileschema.Driver.table_end | ( | self, | |
name, | |||
node | |||
) |
Done processing table `name`
def pileschema.Driver.table_start | ( | self, | |
name, | |||
node | |||
) |
Starting to process table `name`
def pileschema.Driver.view_end | ( | self, | |
name, | |||
node | |||
) |
Done processing view `name`
def pileschema.Driver.view_start | ( | self, | |
name, | |||
node | |||
) |
Starting to process view `name`
def pileschema.Driver.view_subset | ( | self, | |
node, | |||
subset | |||
) |
Process a subset in a view