ipld-eth-server/vendor/github.com/whyrusleeping/sql-datastore
Elizabeth Engelman 36533f7c3f Update vendor directory and make necessary code changes
Fixes for new geth version
2019-09-25 16:32:27 -05:00
..
postgres Update vendor directory and make necessary code changes 2019-09-25 16:32:27 -05:00
dstore.go Update vendor directory and make necessary code changes 2019-09-25 16:32:27 -05:00
LICENSE Update vendor directory and make necessary code changes 2019-09-25 16:32:27 -05:00
package.json Update vendor directory and make necessary code changes 2019-09-25 16:32:27 -05:00
README.md Update vendor directory and make necessary code changes 2019-09-25 16:32:27 -05:00

SQL Datastore

An implementation of the datastore interface that can be backed by any sql database.

Usage

import (
	"database/sql"
	"github.com/whyrusleeping/sql-datastore"
)

mydb, _ := sql.Open("yourdb", "yourdbparameters")

ds := sqlds.NewSqlDatastore(mydb)

License

MIT