ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:parseschema

This is an old revision of the document!


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.1452648368.txt.gz · Last modified: 2017/04/21 11:22 (external edit)