sqlite

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sqlite provides a SQLite implementation of storage.Store interface.

Examples:

store := sqlitestore.New(
	"file:test.s3db?_auth&_auth_user=admin&_auth_pass=admin",
	sqlitestore.WithTableName("plugin_store"),
)

store := sqlitestore.New(":memory:")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conn string, opts ...Option) storage.Store

New returns a store that provides sqlite backed storage, the table will be created optimistically on initialization. Any errors are considered non-recoverable and will panic.

Types

type Option

type Option func(*store)

Option is a functional option for configuring the store.

func WithPrefix

func WithPrefix(prefix string) Option

WithPrefix overides the default prefix for table names.

Jump to

Keyboard shortcuts

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