0.5.26 • Published 1 month ago

@stackpress/inquire-pg v0.5.26

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

💬 Inquire - PG

PG connection for the Inquire library.

Install

$ npm i @stackpress/inquire-pg

Usage

import { Client, Pool } from 'pg';
import connect from '@stackpress/inquire-pg';

//this is the raw resource, anything you want
const connection = usePool 
  ? await (async () => {
    const pool = new Pool({
      database: 'inquire',
      user: 'postgres'
    });
    return await pool.connect();
  })() 
  : await (async () => {
    const resource = new Client({
      database: 'inquire',
      user: 'postgres'
    });
    await resource.connect();
    return resource;
  })();

//this maps the resource to the engine
const engine = connect(connection);
0.5.26

1 month ago

0.5.25

1 month ago

0.5.24

1 month ago

0.5.23

1 month ago

0.5.22

2 months ago

0.5.19

2 months ago

0.5.17

2 months ago

0.5.16

2 months ago

0.5.15

3 months ago

0.5.14

3 months ago

0.5.12

3 months ago

0.5.11

3 months ago

0.5.10

3 months ago

0.5.9

3 months ago

0.5.8

3 months ago

0.5.7

3 months ago

0.5.6

3 months ago

0.5.5

4 months ago

0.5.4

4 months ago

0.5.1

4 months ago

0.4.10

4 months ago

0.4.6

4 months ago

0.4.5

4 months ago

0.4.4

4 months ago

0.4.3

4 months ago

0.4.2

4 months ago

0.4.1

4 months ago

0.3.36

4 months ago

0.3.34

4 months ago

0.3.33

4 months ago

0.3.32

4 months ago

0.3.31

4 months ago

0.3.30

5 months ago

0.3.29

5 months ago

0.3.28

5 months ago

0.3.27

5 months ago

0.3.26

5 months ago

0.3.25

6 months ago

0.3.24

6 months ago

0.3.23

6 months ago

0.3.21

6 months ago

0.3.17

6 months ago

0.3.16

6 months ago

0.3.15

6 months ago

0.2.12

7 months ago

0.2.11

7 months ago

0.2.10

7 months ago

0.2.9

7 months ago

0.2.8

7 months ago

0.2.6

7 months ago

0.2.5

7 months ago

0.2.4

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago