lib/bootstrap.js
Function exports
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(knex) {
return knex.raw(`
SET client_min_messages TO WARNING;
DO $$ BEGIN
CREATE EXTENSION IF NOT EXISTS plv8;
Function createStoredProcedure
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createStoredProcedure (name, paramObj, ret, func, init) {
const signature = _.map(paramObj, (type, key) => {
return {
arg: (type === 'v8.json') ? `JSON.parse('${key}')` : key,
param: `${key} ${type}`
Function createStoredProcedure
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createStoredProcedure (name, paramObj, ret, func, init) {