anatomic-pg
v0.4.0
Published
anatomic-pg ===========
Downloads
16
Readme
anatomic-pg
tl;dr
const anatomic = require("anatomic");
const pg = require("anatomic-pg");
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();