Awesome
XML2SQL
Converts XML dumps to SQL queries in different formats.
Installation
- Use Composer to install dependencies.
- Copy the file
config/configuration.dist.json
toconfig/configuration.json
and adjust the values to meet your system.
Usage
Execute bin/xml2sql
from the command line.
Options
-i <filename>
Input file-o <filename>
Output file--format <format>
SQL output format (mysql, sqlite, postgres)
Joomla! specific options
--create
Create the XML dump from a Joomla! SQL file.--sampledata
Sample data will be included in the SQL file.
Joomla! Create all
Using the --createall
option the script will do "allInOne (step)":
- Create a dummy database.
- Read a joomla.sql install file for MySQL and "install" it to the created database.
- Create a XML dump from the database. This will be the base for the following SQL install files.
- Create install.sql files in all available formats.
Supported formats
- MySQL
- SQLite
- PostgreSQL
@todo