postgresql

package
v0.0.0-...-e86d66a Latest Latest
Warning

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

Go to latest
Published: Jan 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 PostgresBackend

type PostgresBackend struct {
	*sqlx.DB
	DatabaseURL string
}

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