sqlite

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	DeleteOnClose bool
	Compressed    bool
	ReadOnly      bool
}

type SQLiteCache

type SQLiteCache struct {
	*sql.DB
	// contains filtered or unexported fields
}

Low level encapsulation of an SQLite cache.

func New

func New(dir, name string, opts *Options) (*SQLiteCache, error)

func (*SQLiteCache) Close

func (s *SQLiteCache) Close() error

func (*SQLiteCache) Decode

func (s *SQLiteCache) Decode(stored []byte) ([]byte, error)

func (*SQLiteCache) Encode

func (s *SQLiteCache) Encode(raw []byte) []byte

Jump to

Keyboard shortcuts

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