modulepackage
0.0.0-20191105113501-15a4c8e2fea5
Repository: https://github.com/opaolini/go-ds-sql.git
Documentation: pkg.go.dev
# README
SQL Datastore
An implementation of the datastore interface that can be backed by any sql database.
Usage
import (
"database/sql"
"github.com/opaolini/go-ds-sql"
)
mydb, _ := sql.Open("yourdb", "yourdbparameters")
ds := sqlds.NewSqlDatastore(mydb)
License
MIT
# Functions
NewDatastore returns a new datastore.
No description provided by the author
QueryWithParams applies prefix, limit, and offset params in pg query.
# Variables
No description provided by the author
# Interfaces
No description provided by the author