Skip to content

add1ed/anatomic-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published