postgresql

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Unlicense Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresBackend

type PostgresBackend struct {
	*sqlx.DB
	DatabaseURL string
}

func (*PostgresBackend) AfterSave added in v1.7.1

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

func (*PostgresBackend) BeforeSave added in v1.7.1

func (b *PostgresBackend) BeforeSave(evt *nostr.Event)

func (PostgresBackend) DeleteEvent

func (b PostgresBackend) DeleteEvent(id string, pubkey string) error

func (*PostgresBackend) Init

func (b *PostgresBackend) Init() error

func (PostgresBackend) QueryEvents

func (b PostgresBackend) QueryEvents(filter *nostr.Filter) (events []nostr.Event, err error)

func (*PostgresBackend) SaveEvent

func (b *PostgresBackend) SaveEvent(evt *nostr.Event) error

Jump to

Keyboard shortcuts

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