sql

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data []byte

Data represents a byte array that may be null. Data implements the sql.Scanner interface

func (*Data) Scan

func (data *Data) Scan(value interface{}) error

Scan implements the Scanner interface.

func (Data) Value

func (data Data) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Querier

type Querier interface {
	Query(query string, args ...interface{}) (*sql.Rows, error)
}

type SQL

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

func Start

func Start(client *sql.DB) *SQL

func (*SQL) Filter

func (db *SQL) Filter(ctx context.Context, searchQuery *es_models.SearchQueryFactory) (events []*es_models.Event, err error)

func (*SQL) Health

func (db *SQL) Health(ctx context.Context) error

func (*SQL) InstanceIDs

func (db *SQL) InstanceIDs(ctx context.Context, queryFactory *es_models.SearchQueryFactory) ([]string, error)

func (*SQL) LatestSequence

func (db *SQL) LatestSequence(ctx context.Context, queryFactory *es_models.SearchQueryFactory) (uint64, error)

type Sequence

type Sequence uint64

Sequence represents a number that may be null. Sequence implements the sql.Scanner interface

func (*Sequence) Scan

func (seq *Sequence) Scan(value interface{}) error

Scan implements the Scanner interface.

func (Sequence) Value

func (seq Sequence) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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