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 (*Executor) ExecuteQuery ¶
func (e *Executor) ExecuteQuery(ctx context.Context, req grpcdatasource.QueryRequest, sender grpcdatasource.QueryChunkSender) error
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
}
Click to show internal directories.
Click to hide internal directories.