pouchdb-adapter-mysql
LevelDOWN Adapter for running pouchdb and pouchdb server using an mysql backend.
PouchDB Example
const PouchDB = PouchDBconst db = db
You can also run PouchDB Server
var PouchDB = PouchDBconst MPouchDB = PouchDBvar express = var app = appconst db = app
CAVEAT: Assumes mysql is running locally on 3306 with no password for root
How to run with Custom MySql uri
You can run with a custom mysql uri using the MYSQL_URI
env variable containing the
custom connection info.
URI Pattern mysql://user:pass@server:PORT/database
export MYSQL_URI=mysql://user:pass@server.com:3306/mydb
node server.js
Then you do not need a prefix, just supply the pouchdb dbName
const db =
How to run with an encrypted connection
Running an encrypted connection is all about getting the ca certificate and supplying it as an env var
MSQL_SSL=...cert here...
Contributing
All contributions are welcome
License
MIT