Skip to content

brainkim/sharedb-knex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharedb-knex

⚠️⚠️⚠️ experimental and untested ⚠️⚠️⚠️

Knex database adapter for sharedb. This driver can be used both as a snapshot store and oplog.

Doesn’t support queries.

Usage

  1. Create a knex migration and copy over migrations/sharedb-knex-v1.js.

  2. Pass in a knex instance into db:

import Knex from "knex";
import ShareDBKnex from "sharedb-knex";
const knex = Knex({
  // your knex config
});
const db = new ShareDBKnex({ knex });
const backend = new ShareDB({ db });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published