driver

package
v2.13.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generic

type Generic struct {
	DB *sql.DB
}

func (*Generic) Load

func (dwWrap *Generic) Load(ctx context.Context, query string, args []interface{}) (records []eventsource.Record, err error)

func (*Generic) NewTransaction

func (dwWrap *Generic) NewTransaction(ctx context.Context, query string, records ...eventsource.Record) (eventsource.StoreTransaction, error)

type PGX

type PGX struct {
	DB                  PgxPool
	NotificationChannel *string
}

func (*PGX) Load

func (pgx *PGX) Load(ctx context.Context, query string, args []interface{}) (records []eventsource.Record, err error)

func (*PGX) NewTransaction

func (pgx *PGX) NewTransaction(ctx context.Context, query string, records ...eventsource.Record) (eventsource.StoreTransaction, error)

type PgxPool added in v2.11.0

type PgxPool interface {
	Begin(context.Context) (pgx.Tx, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
}

Jump to

Keyboard shortcuts

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