UNPKG

dbcrawler

Version:

crawls mysql database and creates insert queries or returns data from multiple table depending on the relationship information of the tables provided

26 lines (23 loc) 661 B
var Util = require('util'); var DataUtils = { splitArrayToMultipleArray: function (arr, splitSize) { var splittedArray = []; var tempArr; for (start = 0; start < arr.length; start += splitSize) { tempArr = arr.slice(start, start + splitSize); splittedArray.push(tempArr); } return splittedArray; }, getSkeletonConstraints: function () { return { constraint: [] }; } }; module.exports = DataUtils; (function () { if (require.main == module) { console.log(DataUtils.splitArrayToMultipleArray([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 7)) } })();