OpenPetra
Free Administration Software for Non-Profits
|
This class will write the SQL create table statements and other SQL statements using the datadefinitionn from the xml file More...
Public Types | |
enum | eDatabaseType { PostgreSQL , MySQL } |
list of all supported database types More... | |
Static Public Member Functions | |
static eDatabaseType | StringToDBMS (string name) |
parse the database type from a string More... | |
static void | WriteSQL (TDataDefinitionStore AStore, eDatabaseType ATargetDatabase, String AOutputFile) |
create the scripts for creating a database. ie. the sql create table scripts etc are written More... | |
static string | WriteField (eDatabaseType ATargetDatabase, TTable ATable, TTableField field, bool first, bool AWithComments) |
write the part of the sql creation script for a specific column More... | |
This class will write the SQL create table statements and other SQL statements using the datadefinitionn from the xml file
|
inlinestatic |
parse the database type from a string
name |
|
inlinestatic |
write the part of the sql creation script for a specific column
ATargetDatabase | |
ATable | |
field | |
first | |
AWithComments |
|
inlinestatic |
create the scripts for creating a database. ie. the sql create table scripts etc are written
AStore | |
ATargetDatabase | |
AOutputFile |