Class JDatabaseImporterPdomysql
MySQL import driver for the PDO based MySQL database driver.
-
JDatabaseImporter
-
JDatabaseImporterPdomysql
Methods summary
protected
string
|
#
getAddColumnSql( string $table, SimpleXMLElement $field )
Get the SQL syntax to add a column.
Get the SQL syntax to add a column.
Parameters
- $table
string - $table The table name.
- $field
SimpleXMLElement - $field The XML field definition.
Returns
string
Since
3.4
|
protected
string
|
#
getAddKeySql( string $table, array $keys )
Get the SQL syntax to add a key.
Get the SQL syntax to add a key.
Parameters
- $table
string - $table The table name.
- $keys
array - $keys An array of the fields pertaining to this key.
Returns
string
Since
3.4
|
protected
array
|
#
getAlterTableSql( SimpleXMLElement $structure )
Get alters for table if there is a difference.
Get alters for table if there is a difference.
Parameters
Returns
array
Since
3.4
|
protected
string
|
#
getChangeColumnSql( string $table, SimpleXMLElement $field )
Get the syntax to alter a column.
Get the syntax to alter a column.
Parameters
- $table
string - $table The name of the database table to alter.
- $field
SimpleXMLElement - $field The XML definition for the field.
Returns
string
Since
3.4
|
protected
string
|
#
getColumnSql( SimpleXMLElement $field )
Get the SQL syntax for a single column that would be included in a table
create or alter statement.
Get the SQL syntax for a single column that would be included in a table
create or alter statement.
Parameters
Returns
string
Since
3.4
|
protected
string
|
#
getDropColumnSql( string $table, string $name )
Get the SQL syntax to drop a column.
Get the SQL syntax to drop a column.
Parameters
- $table
string - $table The table name.
- $name
string - $name The name of the field to drop.
Returns
string
Since
3.4
Overrides
|
protected
string
|
#
getDropKeySql( string $table, string $name )
Get the SQL syntax to drop a key.
Get the SQL syntax to drop a key.
Parameters
- $table
string - $table The table name.
- $name
string - $name The name of the key to drop.
Returns
string
Since
3.4
|
protected
string
|
#
getDropPrimaryKeySql( string $table )
Get the SQL syntax to drop a key.
Get the SQL syntax to drop a key.
Parameters
- $table
string - $table The table name.
Returns
string
Since
3.4
|
protected
array
|
#
getKeyLookup( array $keys )
Get the details list of keys for a table.
Get the details list of keys for a table.
Parameters
- $keys
array - $keys An array of objects that comprise the keys for the table.
Returns
array - The lookup array. array({key name} => array(object, ...))
Throws
Since
3.4
|
protected
string
|
#
getKeySql( array $columns )
Get the SQL syntax for a key.
Get the SQL syntax for a key.
Parameters
- $columns
array - $columns An array of SimpleXMLElement objects comprising the key.
Returns
string
Since
3.4
|
public
JDatabaseImporterPdomysql
|
#
check( )
Checks if all data and options are in order prior to exporting.
Checks if all data and options are in order prior to exporting.
Returns
Throws
Since
3.4
|
__construct()
,
asXml()
,
from()
,
getRealTableName()
,
mergeStructure()
,
setDbo()
,
withStructure()
Magic methods summary
Properties summary
$asFormat
,
$cache
,
$db
,
$from
,
$options