forked from cerc-io/ipld-eth-server
20 lines
331 B
Markdown
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
|