ipld-eth-server/vendor/github.com/whyrusleeping/sql-datastore/README.md

20 lines
331 B
Markdown

# SQL Datastore
An implementation of [the datastore interface](https://github.com/ipfs/go-datastore)
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