ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:parseschemastring

This is an old revision of the document!


parseSchemaString

See Also

executeSqlArray()

Syntax
array ParseSchemaString (
  string $xmlstring,
  optional bool $returnSchema = FALSE
  )

Description

Converts an XML schema string to SQL.

Call this method to parse a string containing an XML schema (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, or optionally, the passed in schema string.

In order to execute the array of queries, they must be passed to the executeSqlArray() method.

v5/axmls/parseschemastring.1450320186.txt.gz · Last modified: 2017/04/21 11:22 (external edit)