sql

package
v0.55.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SQL types.SQL
}

type Data added in v0.12.0

type Data []byte

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

func (*Data) Scan added in v0.12.0

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

Scan implements the Scanner interface.

func (Data) Value added in v0.12.0

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

Value implements the driver Valuer interface.

type Querier added in v0.8.0

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(conf Config) (*SQL, error)

func (*SQL) Filter

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

func (*SQL) Health

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

func (*SQL) PushAggregates

func (db *SQL) PushAggregates(ctx context.Context, aggregates ...*models.Aggregate) (err 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