# EOSchemaGeneration Class

ayers@fsfe.org
Generated at 2026-02-03 22:13:20 +0000

2006 Free Software Foundation, Inc.
Software documentation for the EOSQLExpression(EOSchemaGeneration) category
EOAccess/EOSchemaGeneration.h
Description forthcoming.
appendExpression:
expression
toScript:
script
Append expression statement to an executable script. The default implementation appends the ';'
createDatabaseStatementsForConnectionDictionary:
connectionDictionary
administrativeConnectionDictionary:
administrativeConnectionDictionary
Generates the statements to create a database.
createTableStatementsForEntityGroup:
entityGroup
Generates the statements necessary to implement the schema generation for an entityGroup like creating/dropping a table, a primary key constaint or a primary key generation support such as a sequence.
createTableStatementsForEntityGroups:
entityGroups
Generates statements to create/drop a specific schema generation for a list of entityGroups.
dropDatabaseStatementsForConnectionDictionary:
connectionDictionary
administrativeConnectionDictionary:
administrativeConnectionDictionary
Generates the statements to drop the database.
dropPrimaryKeySupportStatementsForEntityGroup:
entityGroup
Description forthcoming.
dropPrimaryKeySupportStatementsForEntityGroups:
entityGroups
Description forthcoming.
dropTableStatementsForEntityGroup:
entityGroup
Description forthcoming.
dropTableStatementsForEntityGroups:
entityGroups
Description forthcoming.
foreignKeyConstraintStatementsForRelationship:
relationship
The default implementation verifies the relationship joins and calls prepareConstraintStatementForRelationship:sourceColumns:destinationColumns:
primaryKeyConstraintStatementsForEntityGroup:
entityGroup
Description forthcoming.
primaryKeyConstraintStatementsForEntityGroups:
entityGroups
Description forthcoming.
primaryKeySupportStatementsForEntityGroup:
entityGroup
Description forthcoming.
primaryKeySupportStatementsForEntityGroups:
entityGroups
Description forthcoming.
schemaCreationScriptForEntities:
entities
options:
options
Returns a script to create the schema for the given entities specific for the target db. Options are the same as [+schemaCreationStatementsForEntities:options:]
schemaCreationStatementsForEntities:
entities
options:
options

Returns an array of EOSQLExpression suitable to create the schema for the given entities specific for the target db. Possible options are:

Name Value Default
createTables YES/NO `YES`
dropTables YES/NO `YES`
createPrimaryKeySupport YES/NO `YES`
dropPrimaryKeySupport YES/NO `YES`
primaryKeyConstraints YES/NO `YES`
foreignKeyConstraints YES/NO `NO`
createDatabase YES/NO `NO`
dropDatabase YES/NO `NO`
selectStatementForContainerOptions
Description forthcoming.
addCreateClauseForAttribute:
attribute
Assembles the create table statement for the given attribute
allowsNullClauseForConstraint:
allowsNull
Generates a string to be used in a create table statement
columnTypeStringForAttribute:
attribute
Assembles an adaptor specific string for using in a create table statement.
prepareConstraintStatementForRelationship:
relationship
sourceColumns:
sourceColumns
destinationColumns:
destinationColumns
Assembles an adaptor specific constraint statement for relationship and the given source and destination columns
EOSchemaGeneration variables

Description forthcoming.
Description forthcoming.
Keys to use the options dictionary for +schemaCreationScriptForEntities:options: and +schemaCreationStatementsForEntities:options:
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.