sqlite3

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawEventRow

type RawEventRow struct {
	// contains filtered or unexported fields
}

type StorageSQLite3

type StorageSQLite3 struct {
	DbName string
}

func Init

func Init(dbName string) *StorageSQLite3

func (StorageSQLite3) AddEventRow

func (s StorageSQLite3) AddEventRow(payload payload.Payload) bool

Add stores an event payload in the database.

func (StorageSQLite3) DeleteAllEventRows

func (s StorageSQLite3) DeleteAllEventRows() int64

DeleteAllEventRows removes all events from the database.

func (StorageSQLite3) DeleteEventRows

func (s StorageSQLite3) DeleteEventRows(ids []int) int64

DeleteEventRows removes a range of ids from the database.

func (StorageSQLite3) GetAllEventRows

func (s StorageSQLite3) GetAllEventRows() []storageiface.EventRow

GetAllEventRows returns all events in the database.

func (StorageSQLite3) GetEventRowsWithinRange

func (s StorageSQLite3) GetEventRowsWithinRange(eventRange int) []storageiface.EventRow

GetEventRowsWithinRange returns a specified range of events from the database.

Jump to

Keyboard shortcuts

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