Converts XML files to SQL in different formats
PHP
Pull request Compare This branch is 1 commit ahead, 8 commits behind elkuku:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
formats
samples
configuration.php
formatter.php
mysqliexporter.php
readme.md
xml2sql.php

readme.md

XML2SQL

Converts XML dumps (currently only from MySQL dumps) to SQL queries in different formats.

Using the --createall option the script will do "allInOne (step)":

  1. Create a dummy database.
  2. Read a joomla.sql install file for MySQL and "install" it to the created database.
  3. Create a XML dump from the database. This will be the base for the following SQL install files.
  4. Create install.sql files in all available formats.

-- Supported formats: MySQL, SQLite, Postgres, ...

Other 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.