Socket
Socket
Sign inDemoInstall

bi-service-knex

Package Overview
Dependencies
281
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bi-service-knex

integrates knex SQL query builder with bi-service based projects


Version published
Maintainers
1
Install size
8.13 MB
Created

Readme

Source

Build Status npm version

bi-service plugin which integrates Knex

const Service = require('bi-service');
const config = require('bi-config');
const knexBuilder = require('bi-service-knex');

const knex = knexBuilder({/*knex options*/});

const service = new Service(config);

//enables integrity inspection features
service.resourceManager.register('postgres', knex);

Define minimum required db server version:

const knex = knexBuilder({
    client: 'postgres',
    version: '10.5.0'
});

if the defined version requirement isn't satisfied, the service initialization process will fail with an error.

SQL query debugging:

> export SQL_DEBUG=1
> npm start

Tests

npm test

Keywords

FAQs

Last updated on 28 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc