sqlmock

0.0.2 • Public • Published

SQLMock

quickly generating mock data by the fields description of thedatabase table.

install

$ npm i sqlmock --save-dev

usage

var SQLMock = require('sqlmock');
var mockIns = new SQLMock({
    host: 'localhost',
    user: 'root',
    password: '1234',
    database: 'db_test'
});
 
mockIns.loadMockData({
    table: 't_test_table',
    total: 10
}).then(function () {
    console.log('done')
});

Readme

Keywords

none

Package Sidebar

Install

npm i sqlmock

Weekly Downloads

3

Version

0.0.2

License

ISC

Last publish

Collaborators

  • daizch