sqlite

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB, prefix string, opts ...Option) (trend.Store, error)

func Open

func Open(u *url.URL) (trend.Store, error)

Types

type Option added in v0.3.0

type Option = cached.Option

Option configures the SQLite store.

func WithCache added in v0.3.0

func WithCache(enabled bool) Option

WithCache enables or disables the local read-through cache.

func WithCacheSize added in v0.3.0

func WithCacheSize(size int) Option

WithCacheSize sets the local cache size limit in megabytes. Zero means unlimited.

func WithCacheTTL added in v0.3.0

func WithCacheTTL(ttl time.Duration) Option

WithCacheTTL sets the local cache entry lifetime.

Jump to

Keyboard shortcuts

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