store

package
v0.0.0-...-b19cdf9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClosableStorer

type ClosableStorer interface {
	discspy.Storer
	Close() error
}

ClosableStorer is a Storer that uses a SQL database.

func Open

func Open(ctx context.Context, urlStr string, ro bool) (ClosableStorer, error)

Open opens a new Storer. The returned Storer must be closed after use.

The following schemes are supported:

  • sqlite

func OpenSQLite

func OpenSQLite(ctx context.Context, path string, ro bool) (ClosableStorer, error)

OpenSQLite creates a new SQLite database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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