0.4.0 • Published 11 months ago

anatomic-postgres v0.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

anatomic-postgres

An anatomic component for postgres.

tl;dr

const anatomic = require("anatomic");
const pg = require("anatomic-postgres");

async function main() {
  const system = anatomic()
    .add('postgres', pg()).dependsOn("config")
    .configure({ postgres: { connectionString: 'postgres://localhost:5432' } });

  const { postgres } = await system.start();
  console.log(await postgres.query`SELECT version();`);
  await system.stop();
}

main();
0.4.0

11 months ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.0

1 year ago