db

package
v0.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMarshallingError

func IsMarshallingError(err error) bool

Types

type ChangeItemMarshaller

type ChangeItemMarshaller func(item abstract.ChangeItem) ([]any, error)

type Client

type Client interface {
	QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
	QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
	ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
}

type DDLExecutor

type DDLExecutor interface {
	ExecDDL(fn DDLFactory) error
}

type DDLFactory

type DDLFactory func(distributed bool, cluster string) (string, error)

type MarshallingError

type MarshallingError interface {
	IsMarshallingError()
	error
}

type StreamInserter

type StreamInserter interface {
	StreamInsert(query string, marshaller ChangeItemMarshaller) (Streamer, error)
}

type Streamer

type Streamer interface {
	Append(row abstract.ChangeItem) error
	Commit() error
	Close() error
}

Jump to

Keyboard shortcuts

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