daizch / sqlmock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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')
});

About

License:MIT License


Languages

Language:JavaScript 100.0%