ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:parseschemastring

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.txt · Last modified: 2019/12/26 06:36 by peterdd