sqlstore

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(driverName string, db *sql.DB) (store.Backend, error)

NewBackend creates a new store.Backend implementation using the given driverName and *sql.DB. The driverName must match the value used to open the database.

Closing the returned Backend will also close db.

Types

type Params

type Params struct {
	ConnectionString string `yaml:"connection-string"`
}

Params holds the specification for the parameters used in the config file.

func (Params) NewBackend

func (p Params) NewBackend() (store.Backend, error)

NewBackend implements store.BackendFactory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL