Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 668 Bytes

File metadata and controls

29 lines (24 loc) · 668 Bytes

perl-dbi

perl-dbi is a wrapper around knex that accept Perl DBI style arguments.

To use it, you should install the related driver:

npm install perl-dbi
npm install pg
# or
npm install mysql
# or
npm install sqlite3

Example:

import PerlDBI from 'perl-dbi';

var conn = new PerlDBI({
  dbiChain:    'dbi:Pg:dbname=mydb;host=1.2.3.4',
  dbiUser:     'pguser',
  dbiPassword: 'pgpassword'
});

then use it like a knex object

perl-dbi is a component of lemonldap-ng-handler, a Node.js handler for LemonLDAP::NG WebSSO.