Skip to content

A lightweight and simple ORM on top of node-postgres

Notifications You must be signed in to change notification settings

Astrocoders/postgres-orm

Repository files navigation

@Astrocoders/postgres-orm ⚡️🔨

Installation

yarn add @astrocoders/postgres-orm postgres or npm install @astrocoders/postgres-orm postgres

Usage

import createORM from '@Astrocoders/postgres-orm'
import * as pg from 'postgres'

export const pool = new pg.Pool(config)
export const connect = () =>
  pool.connect().then(() => console.log('Connection successful'))

const orm = createORM({ entityMapperClass, tableName, debug, client: pool })

About

A lightweight and simple ORM on top of node-postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •