YANA 4 PHP Framework
Docs For Class DbCreator
«decorator» database Creator
This decorator class is intended to create SQL DDL from YANA Framework - database structure files.
For this task it provides functions which create specific DDL for various DBS.
Located in /includes/class_dbcreator.php
Object | --DbCreator
Name | Type | Description |
---|---|---|
&$structure | string | a structure resource |
This class requires an object of class StructureFile as input.
Example of Usage:
- // This will output the result as text
- // This will send the statements to the database
- foreach ($array_of_stmts as $stmt)
- {
- $db->query($stmt);
- }
Returns a numeric array of SQL statements. Each element is a single statement. If you want to send the result to a SQL file you should "implode()" the array to a string.
Same as DbCreator::createMSSQL()
Returns a numeric array of SQL statements. Each element is a single statement. If you want to send the result to a SQL file you should "implode()" the array to a string.
Returns a numeric array of SQL statements. Each element is a single statement. If you want to send the result to a SQL file you should "implode()" the array to a string.
Returns a numeric array of SQL statements. Each element is a single statement. If you want to send the result to a SQL file you should "implode()" the array to a string.
Returns a numeric array of SQL statements. Each element is a single statement. If you want to send the result to a SQL file you should "implode()" the array to a string.
Inherited From Object
Documentation generated on Sun, 11 Mar 2007 15:02:26 +0100 by phpDocumentor 1.3.1