@astrocoders/postgres-orm

PostgreSQL ORM

Usage no npm install needed!

<script type="module">
  import astrocodersPostgresOrm from 'https://cdn.skypack.dev/@astrocoders/postgres-orm';
</script>

README

@Astrocoders/postgres-orm ⚡️🔨

Installation

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

Usage

import PostgreSQLORM 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, })