Skip to content

Palabola/JSON-MySQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON-MySQL

  • Small module to generate MySQL Table from any given JSON.

How to use

const json_mysql = require("json-mysql");

let test_json = JSON.parse('{"name": "Jon Snow", "age": 35}');

let table_name = 'Actors';

let table = new json_mysql(table_name,test_json);

console.log(table.query);

/* CREATE TABLE IF NOT EXISTS Actors ( name VARCHAR (255) NOT NULL, age INT (10) NOT NULL DEFAULT '0' ) ENGINE=INNODB DEFAULT CHARSET=utf8; */

About

NPM package create optimal SQL stucture from given JSON structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published