Skip to content

Transform mariadb "describe table;" result into a mediawiki table

License

Notifications You must be signed in to change notification settings

io-systems/io_sql2mw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 !

About

Transform mariadb "describe table;" result into a mediawiki table

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published