JDatabaseImporterMySQL: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JDatabaseImporterMySQL== | =={{JVer|11.1}} JDatabaseImporterMySQL== | ||
===Description=== | ===Description=== | ||
===Methods=== | ===Methods=== | ||
| Line 99: | 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]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseImporterMySQL | category=JDatabaseImporterMySQL | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
Latest revision as of 02:36, 25 March 2017
JDatabaseImporterMySQL
Description
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
User contributed notes
Code Examples