sqlrunner

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBatchSize = 1024

Variables

This section is empty.

Functions

func StreamRows

func StreamRows(ctx context.Context, rows *sql.Rows, sender arrowipc.ChunkSender, opts StreamRowsOptions) (int64, error)

Types

type Config

type Config struct {
	Sources           []SourceConfig
	DefaultDriverName string
	PingOnStart       bool
}

type Executor

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

func NewExecutor

func NewExecutor(ctx context.Context, cfg Config) (*Executor, error)

func (*Executor) Close

func (e *Executor) Close() error

func (*Executor) ExecuteQuery

type SourceConfig

type SourceConfig struct {
	SourceID   string
	DB         *sql.DB
	DriverName string
	DSN        string
	DSNEnv     string
	Tables     []datasource.TableConfig
	BatchSize  int
}

type StreamRowsOptions

type StreamRowsOptions struct {
	BatchSize int
}

Jump to

Keyboard shortcuts

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