Constructor
Horde_SQL_Manager
Horde_SQL_Manager
(MDB2_Schema $writer, [MDB2_Schema $reader = null])
-
MDB2_Schema
$writer: DB manager for the write database.
-
MDB2_Schema
$reader: DB manager for the read database (defaults to using $writer).
Dump XML schema info for $tables
string
dumpSchema
([array $tables = array()])
-
array
$tables: Tables to get XML for
Create a new schema manager.
void
getInstance
([array $dsn = array()])
-
array
$dsn: Overrides global Horde SQL config.
Wraps MDB2_Schema code to avoid overly strict validation and to allow dumping a selective table list.
void
getTableDefinitions
([array $tables = array()])
-
array
$tables: Tables to get definitions for. If empty, all tables are dumped.
Update the database using an XML schema file
void
updateSchema
(string $schema_file, [boolean $debug = false])
-
string
$schema_file: The local filename of a .xml schema file.
-
boolean
$debug: Whether to return the SQL statements instead doing the upgrade.
Scheme dumping callback for MDB2_Schema_Writer
void
_collectXml
( $xml)