0.1.12 • Published 3 years ago

@auser/pmem v0.1.12

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

pmem

Want to run some database driven tests? So did we... but testing against a database between isolated tests is hard. That's where pmem comes into play.

Usage

First create an instance of the database system:

const db = new Database()
await db.start();

When you want to create a new database, run new_db():

const new_uri = await db.new_db();

When you're done with the database, kill it:

await db.stop(new_uri);

When you're done, clean up!

await db.cleanup();

TODO

  • Change database creation into it's own instance
  • Explore using vectors of DBLocks
0.1.12

3 years ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago