v5:axmls:axmls_index
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
v5:axmls:axmls_index [2016/01/13 04:02] – ↷ Links adapted because of a move operation mnewnham | v5:axmls:axmls_index [2018/07/01 22:15] – prefer functions start lowercase (#430) peterdd | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP right box> | ||
+ | [[v5: | ||
+ | </ | ||
======= ADOdb-xmlschema ====== | ======= ADOdb-xmlschema ====== | ||
+ | ----------------------------------- | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
<WRAP right box round 300px> | <WRAP right box round 300px> | ||
Line 151: | Line 155: | ||
*/ | */ | ||
$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 161: | Line 165: | ||
* the database. | * the database. | ||
*/ | */ | ||
- | $sql = $schema-> | + | $sql = $schema-> |
- | $result = $schema-> | + | $result = $schema-> |
</ | </ | ||
Line 169: | Line 173: | ||
<code php> | <code php> | ||
$db = ADONewConnection( ' | $db = ADONewConnection( ' | ||
- | $db->Connect( ' | + | $db->connect( ' |
</ | </ | ||
Line 181: | Line 185: | ||
<code php> | <code php> | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
Line 192: | Line 196: | ||
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 204: | ||
// Inline Execution | // Inline Execution | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
Line 212: | Line 216: | ||
// Post Execution (default) | // Post Execution (default) | ||
$schema-> | $schema-> | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
v5/axmls/axmls_index.txt · Last modified: 2020/01/13 15:52 by dregad