coriane / jwpl

Automatically exported from code.google.com/p/jwpl
0 stars 0 forks source link

[mwdumper] mwdumper should create tables if they do not exist #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The mwdumper should add SQL commands to create tables like:

CREATE TABLE IF NOT EXISTS tableName ...

Otherwise the the usage of the following command is useless:

java -jar mwdumper.jar --format=mysql:1.5 pages_full.xml.bz2 |
    mysql -u <username> -p <databasename>

Original issue reported on code.google.com by je.ha...@gmail.com on 13 Apr 2012 at 7:22

GoogleCodeExporter commented 9 years ago
The mwdumper is only used internally by JWPL components and never called 
explicitly to create SQL tables. If you choose to use the mwdumper stand alone 
this does not fall within the scope of JWPL issues. If you want to supply a 
concrete patch so that the code becomes usable for your purpose, we'll be happy 
to integrate it into our fork of the mwdumper. Officially, the mwdumper is 
provided by mediawiki.org [1], but as far as I know, it is no longer 
maintained. 

[1] http://www.mediawiki.org/wiki/Manual:MWDumper

Original comment by oliver.ferschke on 13 Apr 2012 at 8:26