sqlite3

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: Unlicense Imports: 13 Imported by: 0

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
}

func (*SQLite3Backend) AfterSave

func (b *SQLite3Backend) AfterSave(evt *nostr.Event)

func (*SQLite3Backend) BeforeSave

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

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, id string, pubkey string) 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