JDatabaseImporterMySQL: Difference between revisions
From Joomla! Documentation
m moving preparation |
m clean up |
||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JDatabaseImporterMySQL== | =={{JVer|11.1}} JDatabaseImporterMySQL== | ||
===Description=== | ===Description=== | ||
{{Description:JDatabaseImporterMySQL}} | {{subst:Description:JDatabaseImporterMySQL}} | ||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
| Line 101: | Line 99: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage Database|Database]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage Database|Database]] | ||
* [[API17:JDatabaseImporterMySQL|Other versions of JDatabaseImporterMySQL]] | * [[API17:JDatabaseImporterMySQL|Other versions of JDatabaseImporterMySQL]] | ||
{{SeeAlso:JDatabaseImporterMySQL}} | {{subst:SeeAlso:JDatabaseImporterMySQL}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 15:01, 24 March 2017
JDatabaseImporterMySQL
Description
{{subst:Description:JDatabaseImporterMySQL}}
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
{{subst:SeeAlso:JDatabaseImporterMySQL}}
User contributed notes
<CodeExamplesForm />