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 16:12] – mnewnham | v5:axmls:axmls_index [2018/07/01 22:15] – prefer functions start lowercase (#430) peterdd | ||
---|---|---|---|
Line 155: | 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 165: | Line 165: | ||
* the database. | * the database. | ||
*/ | */ | ||
- | $sql = $schema-> | + | $sql = $schema-> |
- | $result = $schema-> | + | $result = $schema-> |
</ | </ | ||
Line 173: | Line 173: | ||
<code php> | <code php> | ||
$db = ADONewConnection( ' | $db = ADONewConnection( ' | ||
- | $db->Connect( ' | + | $db->connect( ' |
</ | </ | ||
Line 185: | Line 185: | ||
<code php> | <code php> | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
Line 196: | 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 204: | Line 204: | ||
// Inline Execution | // Inline Execution | ||
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
- | $schema-> | + | $schema-> |
</ | </ | ||
Line 216: | 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