perl-dbi
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i perl-dbi

Weekly Downloads

6

Version

0.7.0

License

GPL-2.0-or-later

Unpacked Size

45 kB

Total Files

10

Last publish

Collaborators

  • xguimard