v5:dictionary:xmlschema
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:dictionary:xmlschema [2017/04/21 11:49] – external edit 127.0.0.1 | v5:dictionary:xmlschema [2018/06/11 10:05] (current) – [Executing the Schema] function calls starting with lowercase (#426) dregad | ||
---|---|---|---|
Line 151: | Line 151: | ||
*/ | */ | ||
$db = ADONewConnection( $platform ); | $db = ADONewConnection( $platform ); | ||
- | $db->Connect( $dbHost, $dbUser, $dbPassword, | + | $db->connect( $dbHost, $dbUser, $dbPassword, |
/* Use the database connection to create a new adoSchema object. | /* Use the database connection to create a new adoSchema object. | ||
Line 157: | Line 157: | ||
$schema = new adoSchema( $db ); | $schema = new adoSchema( $db ); | ||
- | /* Call ParseSchema() to build SQL from the XML schema file. | + | /* Call parseSchema() to build SQL from the XML schema file. |
- | * Then call ExecuteSchema() to apply the resulting SQL to | + | * Then call executeSchema() to apply the resulting SQL to |
* the database. | * the database. | ||
*/ | */ | ||
- | $sql = $schema-> | + | $sql = $schema-> |
- | $result = $schema-> | + | $result = $schema-> |
</ | </ | ||
Line 169: | Line 169: | ||
<code php> | <code php> | ||
$db = ADONewConnection( ' | $db = ADONewConnection( ' | ||
- | $db->Connect( ' | + | $db->connect( ' |
</ | </ | ||
Line 178: | Line 178: | ||
</ | </ | ||
- | Third, call ParseSchema() to parse the schema and then '' | + | Third, call parseSchema() to parse the schema and then '' |
<code php> | <code php> | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
Line 192: | Line 192: | ||
AXMLS consists of two parts: the **schema description**, | AXMLS consists of two parts: the **schema description**, | ||
==== Executing the Schema ==== | ==== Executing the Schema ==== | ||
- | AXMLS provides two different methods for applying the SQL resulting from a parsed schema to the database: **inline execution** and **post execution**. Use the [[v5: | + | AXMLS provides two different methods for applying the SQL resulting from a parsed schema to the database: **inline execution** and **post execution**. Use the [[v5: |
**Inline Execution** applies each schema entity to the database immediately after that entity is parsed. I.e., the first table is read from the schema and applied to the database, then the second table, etc. | **Inline Execution** applies each schema entity to the database immediately after that entity is parsed. I.e., the first table is read from the schema and applied to the database, then the second table, etc. | ||
Line 200: | Line 200: | ||
// Inline Execution | // Inline Execution | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
Line 212: | Line 212: | ||
// Post Execution (default) | // Post Execution (default) | ||
$schema-> | $schema-> | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
v5/dictionary/xmlschema.1492768197.txt.gz · Last modified: 2017/04/21 11:49 by 127.0.0.1