0.1.12 • Published 1 year ago

@auser/pmem v0.1.12

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

0.1.10

1 year ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago