Class Horde_SQL_Manager

Description

Located in /SQL/SQL/Manager.php (line 20)


	
			
Variable Summary
 MDB2_Schema $_reader
 MDB2_Schema $_writer
Method Summary
 Horde_SQL_Manager Horde_SQL_Manager (MDB2_Schema $writer, [MDB2_Schema $reader = null])
 string dumpSchema ([array $tables = array()])
 void getInstance ([array $dsn = array()])
 void getTableDefinitions ([array $tables = array()])
 void updateSchema (string $schema_file, [boolean $debug = false])
 void _collectXml ( $xml)
Variables
MDB2_Schema $_reader (line 32)

Database manager for read operations

MDB2_Schema $_writer (line 26)

Database manager for write operations

Methods
Constructor Horde_SQL_Manager (line 76)

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).
dumpSchema (line 93)

Dump XML schema info for $tables

  • return: XML schema
string dumpSchema ([array $tables = array()])
  • array $tables: Tables to get XML for
getInstance (line 39)

Create a new schema manager.

void getInstance ([array $dsn = array()])
  • array $dsn: Overrides global Horde SQL config.
getTableDefinitions (line 164)

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.
updateSchema (line 123)

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.
_collectXml (line 153)

Scheme dumping callback for MDB2_Schema_Writer

  • deprecated:
void _collectXml ( $xml)
  • $xml

Documentation generated on Sun, 30 Jan 2011 05:19:27 +0000 by phpDocumentor 1.4.3