MDB2_Schema |
[ class tree: MDB2_Schema ] [ index: MDB2_Schema ] [ all elements ] |
Packages: MDB2_Schema Classes:
MDB2_Schema
Files:MDB2_Schema_Error MDB2_Schema_Example MDB2_Schema_Parser MDB2_Schema_Parser2 MDB2_Schema_Tool MDB2_Schema_Tool_ParameterException MDB2_Schema_Validate MDB2_Schema_Writer
action.php
class.inc.php ibase.php index.php mssql.php mysql.php oci8.php ParameterException.php parse.php Parser.php Parser2.php pgsql.php result.php Schema.php Tool.php Validate.php Writer.php |
[ Top ] $warnings = array()[line 86]
[ Top ] Method DetailalterDatabase [line 2174]
Execute the necessary actions to implement the requested changes in a database structure.
Parameters:
[ Top ]
alterDatabaseIndexes [line 1946]
Execute the necessary actions to implement the requested changes in the indexes inside a database structure.
Parameters:
[ Top ]
alterDatabaseSequences [line 2112]
Execute the necessary actions to implement the requested changes in the sequences inside a database structure.
Parameters:
[ Top ]
alterDatabaseTables [line 2027]
Execute the necessary actions to implement the requested changes in the tables inside a database structure.
Parameters:
[ Top ]
apiVersion [line 108]
Return the MDB2 API version
[ Top ]
arrayMergeClobber [line 127]
Clobbers two arrays together
Parameters:
[ Top ]
buildFieldValue [line 1027]
Appends the contents of second argument + '=' to the beginning of first argument. Used with array_walk() in initializeTable() for UPDATEs.
Parameters:
[ Top ]
compareDefinitions [line 1455]
Compare a previous definition with the currently parsed definition
Parameters:
[ Top ]
compareSequenceDefinitions [line 1808]
Compare a previous definition with the currently parsed definition
Parameters:
[ Top ]
compareTableDefinitions [line 1718]
Compare a previous definition with the currently parsed definition
Parameters:
[ Top ]
compareTableFieldsDefinitions [line 1531]
Compare a previous definition with the currently parsed definition
Parameters:
[ Top ]
compareTableIndexesDefinitions [line 1614]
Compare a previous definition with the currently parsed definition
Parameters:
[ Top ]
connect [line 266]
Create a new MDB2 connection object and connect to the specified database
Parameters:
[ Top ]
createDatabase [line 1308]
Create a database space within which may be created database objects like tables, indexes and sequences. The implementation of this function is highly DBMS specific and may require special permissions to run successfully. Consult the documentation or the DBMS drivers that you use to be aware of eventual configuration requirements.
Parameters:
[ Top ]
createSequence [line 1221]
Create a sequence
Parameters:
[ Top ]
createTable [line 866]
Create a table and inititialize the table if data is available
Parameters:
[ Top ]
createTableConstraints [line 807]
A method to create foreign keys for an existing table
Parameters:
[ Top ]
createTableIndexes [line 711]
A method to create indexes for an existing table
Parameters:
[ Top ]
disconnect [line 312]dumpDatabase [line 2428]
Dump a previously parsed database structure in the Metabase schema XML based format suitable for the Metabase parser. This function may optionally dump the database definition with initialization commands that specify the data that is currently present in the tables.
Parameters:
[ Top ]
dumpDatabaseChanges [line 2248]
Dump the changes between two database definitions.
Parameters:
[ Top ]
errorMessage [line 2677]
Return a textual error message for a MDB2 error code
Parameters:
[ Top ]
factory [line 237]
Create a new MDB2 object for the specified database type type
Parameters:
[ Top ]
getDefinitionFromDatabase [line 430]
Attempt to reverse engineer a schema structure from an existing MDB2 This method can be used if no xml schema file exists yet. The resulting xml schema file may need some manual adjustments.
[ Top ]
getExpression [line 1050]
Generates a string that represents a value that would be associated with a column in a DML instruction.
Parameters:
[ Top ]
getInstructionFields [line 1167]
Walks the parsed DML instruction array, field by field, storing them and their processed values inside a new array.
Parameters:
[ Top ]
getInstructionWhere [line 1198]
Translates the parsed WHERE expression of a DML instruction (array structure) to a SQL WHERE clause (string).
Parameters:
[ Top ]
getOperator [line 1121]
Returns the matching SQL operator
Parameters:
[ Top ]
getOption [line 210]
returns the value of an option
Parameters:
[ Top ]
getWarnings [line 168]
Get all warnings in reverse order This means that the last warning is the first element in the array
[ Top ]
initializeTable [line 938]
Inititialize the table with data
Parameters:
[ Top ]
isError [line 2750]
Tell whether a value is an MDB2_Schema error.
Parameters:
[ Top ]
parseDatabaseDefinition [line 337]
Parse a database definition from a file or an array
Parameters:
[ Top ]
parseDatabaseDefinitionFile [line 374]
Parse a database definition file by creating a schema format parser object and passing the file contents as parser input data stream.
Parameters:
[ Top ]
raiseError [line 2729]
This method is used to communicate an error and invoke error callbacks etc. Basically a wrapper for PEAR::raiseError without the message string.
Parameters:
[ Top ]
resetWarnings [line 151]setOption [line 185]
Sets the option for the db class
Parameters:
[ Top ]
updateDatabase [line 2593]
Compare the correspondent files of two versions of a database schema definition: the previously installed and the one that defines the schema that is meant to update the database. If the specified previous definition file does not exist, this function will create the database from the definition specified in the current schema file. If both files exist, the function assumes that the database was previously installed based on the previous schema file and will update it by just applying the changes. If this function succeeds, the contents of the current schema file are copied to replace the previous schema file contents. Any subsequent schema changes should only be done on the file specified by the $current_schema_file to let this function make a consistent evaluation of the exact changes that need to be applied.
Parameters:
[ Top ]
verifyAlterDatabase [line 1878]
Verify that the changes requested are supported
Parameters:
[ Top ]
writeInitialization [line 2500]
Write initialization and sequences
Parameters:
[ Top ]
Documentation generated on Mon, 11 Mar 2019 16:04:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004. |