Fewer

Fewer

  • Getting Started
  • API
  • Github
  • Help

›Adapters

Introduction

  • Getting Started
  • Installation
  • Create an Association

Adapters

  • Postgres Adapter
  • MySQL Adapter

Advanced Topics

  • Multiple Databases

API Reference

  • API Reference
  • Database
  • Repository
  • Associations
  • Custom Pipes

Postgres Adapter

The postgres adapter is used to connect to postgres databases. It uses the pg module under the hood.

Installing

npm install @fewer/adapter-postgres

Usage

import { createDatabase } from 'fewer';
import { Adapter } from '@fewer/adapter-postgres';

createDatabase({
  adapter: new Adapter({
    host: 'localhost',
    port: 3306,
    username: 'test',
    password: 'test',
    database: 'test',
  }),
});

Connection Pooling

TODO:

← Create an AssociationMySQL Adapter →
Fewer
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
Stack OverflowProject ChatTwitter
More
GitHub
Copyright © 2019