JDatabaseExporterPgsql
Extends \JDatabaseExporterPostgresqlPDO PostgreSQL Database Exporter.
since |
3.9.0 |
---|---|
package |
Joomla.Platform |
Methods
__construct
Constructor.
__construct()
Sets up the default options for the exporter.
since |
3.2.0 |
---|
__toString
Magic function to exports the data to a string.
__toString() : string
since |
3.2.0 |
---|---|
throws |
|
Response
string
asXml
Set the output option for the exporter to XML format.
asXml() : \JDatabaseExporter
buildXml
Builds the XML data for the tables to export.
buildXml() : string
since |
3.2.0 |
---|---|
throws |
|
Response
string
An XML string
buildXmlStructure
Builds the XML structure to export.
buildXmlStructure() : array
since |
3.2.0 |
---|---|
throws |
|
Response
array
An array of XML lines (strings).
check
Checks if all data and options are in order prior to exporting.
check() : \JDatabaseDriver
since |
3.2.0 |
---|---|
throws |
|
Response
\JDatabaseDriver
Method supports chaining.
from
Specifies a list of table names to export.
from(mixed $from) : \JDatabaseExporter
since |
3.2.0 |
---|---|
throws |
|
Arguments
- $from
mixed
The name of a single table, or an array of the table names to export.
Response
\JDatabaseExporter
Method supports chaining.
getGenericTableName
Get the generic name of the table, converting the database prefix to the wildcard string.
getGenericTableName(string $table) : string
since |
3.2.0 |
---|
Arguments
- $table
string
The name of the table.
Response
string
The name of the table with the database prefix replaced with #__.
setDbo
Sets the database connector to use for exporting structure and/or data from MySQL.
setDbo(\JDatabaseDriver $db) : \JDatabaseExporter
since |
3.2.0 |
---|
Arguments
- $db
\JDatabaseDriver
The database connector.
Response
\JDatabaseExporter
Method supports chaining.
withStructure
Sets an internal option to export the structure of the input table(s).
withStructure(boolean $setting = true) : \JDatabaseExporter
since |
3.2.0 |
---|
Arguments
- $setting
boolean
True to export the structure, false to not.
Response
\JDatabaseExporter
Method supports chaining.
Properties
asFormat
The type of output format (xml).
since |
3.2.0 |
---|
Type(s)
string
cache
An array of cached data.
since |
3.2.0 |
---|
Type(s)
array
db
The database connector to use for exporting structure and/or data.
from
An array input sources (table names).
since |
3.2.0 |
---|
Type(s)
array
options
An array of options for the exporter.
since |
3.2.0 |
---|
Type(s)
object
db
The database connector to use for exporting structure and/or data.
The database connector to use for exporting structure and/or data.
Type(s)
\JDatabaseDriverPostgresql