Home | Trees | Index | Help |
|
---|
Package Modeling :: Package DatabaseAdaptors :: Package PostgresqlAdaptorLayer :: Module PostgresqlSchemaGeneration :: Class PostgresqlSchemaGeneration |
|
SchemaGeneration
--+
|
PostgresqlSchemaGeneration
Concrete SchemaGeneration for Postgresql [module psycopg or pgdb]
See Modeling.interfaces.SchemaGeneration for further details
Method Summary | |
---|---|
See also: interfaces.SchemaGeneration for details | |
See Modeling.interfaces.SchemaGeneration for details | |
Return a SQLExpression object designed to remove the foreign key constraints built by foreignKeyConstraintStatementsForRelationship(). | |
Returns the SQL statement used to drop the primary key constraint. | |
Returns a list containing a single SQLExpression statement, which takes the following form: 'DROP SEQUENCE <SEQUENCE_NAME>', where '<SEQUENCE_NAME>' is: | |
Returns Modeling.SchemaGeneration.foreignKeyConstraintStatementsForRelationship() | |
Returns a list containing a single SQLExpression statement, which takes the following form: 'CREATE SEQUENCE <SEQUENCE_NAME> START 1', where '<SEQUENCE_NAME>' is: | |
Inherited from SchemaGeneration | |
See interfaces.SchemaGeneration for details | |
Appends the expression to the StringIO script, prepended with a semi-colon (';') and a newline if the StringIO is not empty. | |
Returns a list of SQLExpressions needed to create the tables defined by the supplied 'entityGroup', or an empty list if 'entityGroup' is empty. | |
Invokes createTableStatementsForEntityGroup() for each entityGroup in 'entityGroups', and returns the list of SQLExpressions needed to create the necessary table. | |
Used in method SchemaGeneration.schemaCreationScriptForEntities() to order the schema creation statements produced (Static method) | |
Iterates on each entityGroup in 'entityGroups', sends the message 'dropPrimaryKeyConstraintStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
Iterates on each entityGroup in 'entityGroups', sends the message 'dropPrimaryKeySupportStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
Parameter: | |
Iterates on each entityGroup in 'entityGroups', sends the message 'dropPrimaryKeySupportStatementsForEntityGroup()' to each of them, collects the results and returns them in a sequence. | |
Default implementation returns an empty list. | |
Iterates on each entityGroup in 'entityGroups', sends the message 'primaryKeyConstraintStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
Iterates on each entityGroup in 'entityGroups', sends the message 'primaryKeySupportStatementsForEntityGroup' to each of them, collects the results and returns them in a sequence. | |
__TBD | |
__TBD doc. | |
__TBD doc. | |
Sets the default ordering. (Static method) | |
Returns a list of entityGroups ; each entityGroup consists of the entities in parameter 'entities' which share the same externalName(), and wich answered positively to the definesTableColumns() message. |
Class Variable Summary | |
---|---|
Inherited from SchemaGeneration | |
tuple |
__implements__ = (<class Modeling.interfaces.SchemaGener...
|
Instance Method Details |
---|
createDatabaseStatementsForConnectionDictionary(self, connectionDictionary, administrativeConnectionDictionary, createUserFlag=1)See also: interfaces.SchemaGeneration for details |
dropDatabaseStatementsForConnectionDictionary(self, connectionDictionary, administrativeConnectionDictionary, dropUserFlag=1)See Modeling.interfaces.SchemaGeneration for details |
dropForeignKeyConstraintStatementsForRelationship(self, relationship)Return a SQLExpression object designed to remove the foreign key constraints built by foreignKeyConstraintStatementsForRelationship(). Returned statement depends on the pg_utils.postgresql_server_version():
See also: foreignKeyConstraintStatementsForRelationship() |
dropPrimaryKeyConstraintStatementsForEntityGroup(self, entityGroup)Returns the SQL statement used to drop the primary key constraint. That statements depends on pg_utils.postgresql_server_version():
See Modeling.interfaces.SchemaGeneration for further details See also: primaryKeyConstraintStatementsForEntityGroup() |
dropPrimaryKeySupportStatementsForEntityGroup(self, entityGroup)Returns a list containing a single SQLExpression statement, which takes the following form: 'DROP SEQUENCE <SEQUENCE_NAME>', where '<SEQUENCE_NAME>' is: 'PK_SEQ_%s'%entityGroup[0].primaryKeyRootName() See Modeling.interfaces.SchemaGeneration for further details See also: PostgresqlAdaptorChannel.primaryKeysForNewRowsWithEntity() |
foreignKeyConstraintStatementsForRelationship(self, relationship)Returns Modeling.SchemaGeneration.foreignKeyConstraintStatementsForRelationship() |
primaryKeySupportStatementsForEntityGroup(self, entityGroup)Returns a list containing a single SQLExpression statement, which takes the following form: 'CREATE SEQUENCE <SEQUENCE_NAME> START 1', where '<SEQUENCE_NAME>' is: 'PK_SEQ_%s'%entityGroup[0].primaryKeyRootName() See Modeling.interfaces.SchemaGeneration for further details
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:27 2006 | http://epydoc.sf.net |