@opdb/postgres

OpDB PostrgeSQL Adapter

Usage no npm install needed!

<script type="module">
  import opdbPostgres from 'https://cdn.skypack.dev/@opdb/postgres';
</script>

README

@opdb/postgres

This is an adapter for @opdb/base for connecting to PostgreSQL servers.

Run this to register and setup your PostgreSQL connection:

import { Base } from '@opdb/base';
import { providePostgresConnection } from '@opdb/postgres';

providePostgresConnection({
  // your PostgreSQL config here
  // Config options: https://node-postgres.com/api/client, https://node-postgres.com/api/pool
});

// Will be executed using your PostgreSQL connection, see @opdb/base for more details
Base.execute('SELECT * FROM users');

More Information