API17:JDatabaseImporterMySQL
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JDatabaseImporterMySQL
Description
Description:JDatabaseImporterMySQL [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | asXml | Set the output option for the exporter to XML format. |
| public | check | Checks if all data and options are in order prior to exporting. |
| public | from | Specifies the data source to import. |
| public | setDbo | Sets the database connector to use for exporting structure and/or data from MySQL. |
| public | withStructure | Sets an internal option to merge the structure based on the input data. |
| protected | getAddColumnSQL | Get the SQL syntax to add a column. |
| protected | getAddKeySQL | Get the SQL syntax to add a key. |
| protected | getAlterTableSQL | Get alters for table if there is a difference. |
| protected | getChangeColumnSQL | Get the syntax to alter a column. |
| protected | getColumns | Get the details list of columns for a table. |
| protected | getColumnSQL | Get the SQL syntax for a single column that would be included in a table create or alter statement. |
| protected | getDropColumnSQL | Get the SQL syntax to drop a column. |
| protected | getDropKeySQL | Get the SQL syntax to drop a key. |
| protected | getDropPrimaryKeySQL | Get the SQL syntax to drop a key. |
| protected | getKeyLookup | Get the details list of keys for a table. |
| protected | getKeys | Get the details list of keys for a table. |
| protected | getKeySQL | Get the SQL syntax for a key. |
| protected | getRealTableName | Get the real name of the table, converting the prefix wildcard string if present. |
| protected | mergeStructure | Merges the incoming structure definition with the existing structure. |
- Defined in libraries/joomla/database/database/mysqlimporter.php
Importing
jimport( 'joomla.database.database.mysqlimporter' );
See also
-
JDatabaseImporterMySQL source code on BitBucket
-
Subpackage Database
- Other versions of JDatabaseImporterMySQL
SeeAlso:JDatabaseImporterMySQL [Edit See Also]
User contributed notes
<CodeExamplesForm />
