sqlite3

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Unlicense Imports: 10 Imported by: 13 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite3Backend

type SQLite3Backend struct {
	*sqlx.DB
	DatabaseURL       string
	QueryLimit        int
	QueryIDsLimit     int
	QueryAuthorsLimit int
	QueryKindsLimit   int
	QueryTagsLimit    int
}

func (*SQLite3Backend) Close

func (b *SQLite3Backend) Close()

func (SQLite3Backend) CountEvents

func (b SQLite3Backend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)

func (SQLite3Backend) DeleteEvent

func (b SQLite3Backend) DeleteEvent(ctx context.Context, evt *nostr.Event) error

func (*SQLite3Backend) Init

func (b *SQLite3Backend) Init() error

func (SQLite3Backend) QueryEvents

func (b SQLite3Backend) QueryEvents(ctx context.Context, filter nostr.Filter) (ch chan *nostr.Event, err error)

func (*SQLite3Backend) SaveEvent

func (b *SQLite3Backend) SaveEvent(ctx context.Context, evt *nostr.Event) error

Jump to

Keyboard shortcuts

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