ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:parseschema

parseSchema

See Also

ParseSchemaString()
executeSchema

Syntax
array parseSchema (
  mixed $filename, 
  optional bool $returnSchema = FALSE,
  optional string $file
  )

Description

Loads an XML schema from a file and converts it to SQL.

Call this method to load the specified schema from a file (see the DTD for the proper format) and generate the SQL necessary to create the database described by the schema.

The method returns an array of SQL queries, ready to execute. The returned array must be executed using executeSchema or executeSqlArray

v5/axmls/parseschema.txt · Last modified: 2016/01/13 02:26 by mnewnham