ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:xmlschema

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
v5:dictionary:xmlschema [2016/01/19 19:42] – ↷ Links adapted because of a move operation 66.249.64.103v5:dictionary:xmlschema [2018/06/11 10:04] – [Executing A Script] function calls starting with lowercase (#426) dregad
Line 151: Line 151:
  */  */
 $db = ADONewConnection( $platform ); $db = ADONewConnection( $platform );
-$db->Connect( $dbHost, $dbUser, $dbPassword, $dbName );+$db->connect( $dbHost, $dbUser, $dbPassword, $dbName );
  
 /* 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->ParseSchema( $schemaFile ); +$sql = $schema->parseSchema( $schemaFile ); 
-$result = $schema->ExecuteSchema();+$result = $schema->executeSchema();
 </code> </code>
  
Line 169: Line 169:
 <code php> <code php>
 $db = ADONewConnection( 'mysql' ); $db = ADONewConnection( 'mysql' );
-$db->Connect( 'host', 'user', 'password', 'database' );+$db->connect( 'host', 'user', 'password', 'database' );
 </code> </code>
  
Line 178: Line 178:
 </code> </code>
  
-Third, call ParseSchema() to parse the schema and then ''executeSchema()'' to apply it to the database. You must pass ''parseSchema()'' the path and filename of your schema file.+Third, call parseSchema() to parse the schema and then ''executeSchema()'' to apply it to the database. You must pass ''parseSchema()'' the path and filename of your schema file.
  
 <code php> <code php>
-$schema->ParseSchema( $schemaFile );  +$schema->parseSchema( $schemaFile );  
-$schema->ExecuteSchema(); +$schema->executeSchema(); 
 </code> </code>
  
v5/dictionary/xmlschema.txt · Last modified: 2018/06/11 10:05 by dregad