Documentation ¶
Index ¶
- func LockDatabase(path string)
- func NewColumnCheckOperator(manager connectionFetcher) *ansisql.ColumnCheckOperator
- func NewMaterializer(fullRefresh bool) *pipeline.Materializer
- func UnlockDatabase(path string)
- type AcceptedValuesCheck
- type BasicOperator
- type Client
- func (c *Client) GetDBConnectionURI() (string, error)
- func (c *Client) GetIngestrURI() (string, error)
- func (c *Client) RunQueryWithoutResult(ctx context.Context, query *query.Query) error
- func (c *Client) Select(ctx context.Context, query *query.Query) ([][]interface{}, error)
- func (c *Client) SelectWithSchema(ctx context.Context, queryObject *query.Query) (*query.QueryResult, error)
- type Config
- type DuckDBClient
- type DuckDBConfig
- type EphemeralConnection
- type Mutex
- type PatternCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LockDatabase ¶ added in v0.11.88
func LockDatabase(path string)
func NewColumnCheckOperator ¶
func NewColumnCheckOperator(manager connectionFetcher) *ansisql.ColumnCheckOperator
func NewMaterializer ¶
func NewMaterializer(fullRefresh bool) *pipeline.Materializer
func UnlockDatabase ¶ added in v0.11.88
func UnlockDatabase(path string)
Types ¶
type AcceptedValuesCheck ¶
type AcceptedValuesCheck struct {
// contains filtered or unexported fields
}
func (*AcceptedValuesCheck) Check ¶
func (c *AcceptedValuesCheck) Check(ctx context.Context, ti *scheduler.ColumnCheckInstance) error
type BasicOperator ¶
type BasicOperator struct {
// contains filtered or unexported fields
}
func NewBasicOperator ¶
func NewBasicOperator(conn connectionFetcher, extractor queryExtractor, materializer materializer) *BasicOperator
func (BasicOperator) Run ¶
func (o BasicOperator) Run(ctx context.Context, ti scheduler.TaskInstance) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(c DuckDBConfig) (*Client, error)
func (*Client) GetDBConnectionURI ¶ added in v0.11.90
func (*Client) GetIngestrURI ¶
func (*Client) RunQueryWithoutResult ¶
func (*Client) SelectWithSchema ¶ added in v0.11.103
type Config ¶
type Config struct {
Path string
}
func (Config) GetIngestrURI ¶
func (Config) ToDBConnectionURI ¶
ToDBConnectionURI returns a connection URI to be used with the pgx package.
type DuckDBClient ¶
type DuckDBConfig ¶
type EphemeralConnection ¶ added in v0.11.88
type EphemeralConnection struct {
// contains filtered or unexported fields
}
func NewEphemeralConnection ¶ added in v0.11.88
func NewEphemeralConnection(c DuckDBConfig) (*EphemeralConnection, error)
func (*EphemeralConnection) ExecContext ¶ added in v0.11.88
func (*EphemeralConnection) QueryContext ¶ added in v0.11.88
type Mutex ¶ added in v0.11.88
type Mutex struct {
// contains filtered or unexported fields
}
Mutex is the mutex with synchronized map, it allows reducing unnecessary locks among different keys. This implementation comes from the mapmutex package, I simply copied it here instead of adding it as a dependency. See the code here: https://github.com/EagleChen/mapmutex/blob/master/mutex.go
func NewCustomizedMapMutex ¶ added in v0.11.88
NewCustomizedMapMutex returns a customized mapmutex.
func NewMapMutex ¶ added in v0.11.88
func NewMapMutex() *Mutex
NewMapMutex returns a mapmutex with default configs.
type PatternCheck ¶
type PatternCheck struct {
// contains filtered or unexported fields
}
func (*PatternCheck) Check ¶
func (c *PatternCheck) Check(ctx context.Context, ti *scheduler.ColumnCheckInstance) error
Click to show internal directories.
Click to hide internal directories.