Skip to content

Latest commit

 

History

History
30 lines (29 loc) · 897 Bytes

File metadata and controls

30 lines (29 loc) · 897 Bytes

io_sql2mw

Quick description

Transform mariadb "describe table;" result into a mediawiki table. All options are set in the command line.

Install

# clone repository
$ git clone https://github.com/jledun/io_sql2mw.git
# change directory
$ cd io_sql2mw
# install dependencies
$ npm install

Command line options

  • --host= : specifies where MariaDB is hosted
  • --user= : MariaDB username
  • --password= : User password
  • --base= : Database's name
  • --table= : Table's name

Example

$ node sql2mw.js --host=localhost --user=username --password=password --base=mydatabase

will show the result of "SHOW TABLES;"

$ node sql2mw.js --host=localhost --user=username --password=password --base=mydatabase --table=mytable

will show the result of "DESCRIBE mytable;', formatted into a MediaWiki table.
Just copy and paste the result into your MediaWiki page !