anatomic-postgres
v0.4.0
Published
An anatomic component for postgres
Downloads
1
Readme
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();