JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18826F
  • License MIT

PostgreSQL driver to fluent-orm

Package Exports

  • fluent-pg
  • fluent-pg/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fluent-pg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PostgreSQL driver for FLUENT-ORM

This package contains the postgresql driver to be used on fluent-orm package.

Usage

on the root project

npm install fluent-pg --save

on the fluent configuration file

const { configurator }  = require("fluent-orm");
const pg_driver = require("fluent-pg");
// Register Driver
configurator.use(pg_driver.configure);
// Configure driver connection
configurator.configure({
    'default': 'pgsql',
    'connections': {
        'pgsql': {
            'driver': 'pgsql',
            'host': '127.0.0.1',
            'port': '5432',
            'database': 'postgres',
            'user': 'postgres',
            'password': '1234'
        }
    }
});