Documentation
¶
Index ¶
- Variables
- type SQLite3Backend
- func (b *SQLite3Backend) Close()
- func (b SQLite3Backend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
- func (b SQLite3Backend) DeleteEvent(ctx context.Context, evt *nostr.Event) error
- func (b *SQLite3Backend) Init() error
- func (b SQLite3Backend) QueryEvents(ctx context.Context, filter nostr.Filter) (ch chan *nostr.Event, err error)
- func (b *SQLite3Backend) ReplaceEvent(ctx context.Context, evt *nostr.Event) error
- func (b *SQLite3Backend) SaveEvent(ctx context.Context, evt *nostr.Event) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SQLite3Backend ¶
type SQLite3Backend struct {
sync.Mutex
*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 (SQLite3Backend) DeleteEvent ¶
func (*SQLite3Backend) Init ¶
func (b *SQLite3Backend) Init() error
func (SQLite3Backend) QueryEvents ¶
func (*SQLite3Backend) ReplaceEvent ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.