Documentation ¶
Index ¶
- Constants
- type Container
- type Email
- type Exec
- type FileBasedQueryReader
- type Function
- type HTTPInput
- type HTTPRequest
- type Input
- type InputIntegration
- type InputIntegrationBase
- type InputIntegrationEmail
- func (i *InputIntegrationEmail) PostMessage(ctx context.Context, input modconfig.Input) (*modconfig.Output, error)
- func (*InputIntegrationEmail) ReceiveMessage(c *gin.Context) (*modconfig.Output, error)
- func (inputEmail *InputIntegrationEmail) ValidateInputIntegrationEmail(ctx context.Context, i modconfig.Input) error
- type InputIntegrationSlack
- type InputType
- type JSONPayload
- type MySQLQueryReader
- type MySQLRowReader
- type PostgresQueryReader
- type Primitive
- type Query
- type QueryReader
- type QueryReaderImpl
- func (q *QueryReaderImpl) Close()
- func (q *QueryReaderImpl) GetConnectionString() string
- func (q *QueryReaderImpl) Initialize() error
- func (q *QueryReaderImpl) Query(ctx context.Context, queryString string, args ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error)
- func (q *QueryReaderImpl) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error)
- type RowReader
- type RowReaderImpl
- type RunPipeline
- type SQLiteQueryReader
- type Sleep
- type Transform
Constants ¶
View Source
const ( DriverPostgres = "postgres" DriverPostgresql = "postgresql" DriverMySQL = "mysql" DriverDuckDB = "duckdb" DriverSQLite3 = "sqlite3" DriverSQLite = "sqlite" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBasedQueryReader ¶ added in v0.2.1
type FileBasedQueryReader struct {
QueryReaderImpl
}
func (*FileBasedQueryReader) Initialize ¶ added in v0.2.1
func (s *FileBasedQueryReader) Initialize() error
type InputIntegration ¶
type InputIntegrationBase ¶
type InputIntegrationEmail ¶
type InputIntegrationEmail struct {
InputIntegrationBase
}
func (*InputIntegrationEmail) PostMessage ¶
func (*InputIntegrationEmail) ReceiveMessage ¶
func (*InputIntegrationEmail) ValidateInputIntegrationEmail ¶
type InputIntegrationSlack ¶
type InputIntegrationSlack struct {
InputIntegrationBase
}
func (*InputIntegrationSlack) PostMessage ¶
func (ip *InputIntegrationSlack) PostMessage(input modconfig.Input) error
func (*InputIntegrationSlack) ReceiveMessage ¶
type JSONPayload ¶
type MySQLQueryReader ¶ added in v0.2.1
type MySQLQueryReader struct {
QueryReaderImpl
}
func (*MySQLQueryReader) Query ¶ added in v0.2.1
func (m *MySQLQueryReader) Query(ctx context.Context, queryString string, args ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error)
func (*MySQLQueryReader) RowsToCty ¶ added in v0.2.1
func (m *MySQLQueryReader) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error)
type MySQLRowReader ¶ added in v0.2.1
type MySQLRowReader struct {
RowReaderImpl
}
func (*MySQLRowReader) Read ¶ added in v0.2.1
func (m *MySQLRowReader) Read(rows *sql.Rows, columnTypeMap map[string]*sql.ColumnType) ([]map[string]interface{}, error)
func (*MySQLRowReader) RowToCty ¶ added in v0.2.1
func (m *MySQLRowReader) RowToCty(row map[string]interface{}, columnTypes map[string]*sql.ColumnType) (cty.Value, error)
type PostgresQueryReader ¶ added in v0.2.1
type PostgresQueryReader struct {
QueryReaderImpl
}
func (*PostgresQueryReader) Initialize ¶ added in v0.2.1
func (p *PostgresQueryReader) Initialize() error
type Query ¶
type Query struct {
QueryReader QueryReader
}
func (*Query) RunWithMetadata ¶ added in v0.2.1
type QueryReader ¶ added in v0.2.1
type QueryReader interface { GetConnectionString() string Initialize() error Query(context.Context, string, ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error) Close() }
func NewQueryReader ¶ added in v0.2.1
func NewQueryReader(dbConnectionString string) (QueryReader, error)
type QueryReaderImpl ¶ added in v0.2.1
type QueryReaderImpl struct {
// contains filtered or unexported fields
}
func (*QueryReaderImpl) Close ¶ added in v0.2.1
func (q *QueryReaderImpl) Close()
func (*QueryReaderImpl) GetConnectionString ¶ added in v0.2.1
func (q *QueryReaderImpl) GetConnectionString() string
func (*QueryReaderImpl) Initialize ¶ added in v0.2.1
func (q *QueryReaderImpl) Initialize() error
func (*QueryReaderImpl) Query ¶ added in v0.2.1
func (q *QueryReaderImpl) Query(ctx context.Context, queryString string, args ...interface{}) ([]map[string]interface{}, map[string]*sql.ColumnType, error)
func (*QueryReaderImpl) RowsToCty ¶ added in v0.2.1
func (q *QueryReaderImpl) RowsToCty(rows []map[string]interface{}, columnTypes map[string]*sql.ColumnType) ([]cty.Value, error)
type RowReaderImpl ¶ added in v0.2.1
type RowReaderImpl struct { }
func (*RowReaderImpl) Read ¶ added in v0.2.1
func (r *RowReaderImpl) Read(rows *sql.Rows, columnTypeMap map[string]*sql.ColumnType) ([]map[string]interface{}, error)
func (*RowReaderImpl) RowToCty ¶ added in v0.2.1
func (r *RowReaderImpl) RowToCty(row map[string]interface{}, columnTypes map[string]*sql.ColumnType) (cty.Value, error)
Attempt to have a generic function to convert a row to cty. It may not work for all the database that Flowpipe will support, the types are structured so it can be extended to various different DB Row Readers
type RunPipeline ¶
type RunPipeline struct{}
func (*RunPipeline) ValidateInput ¶
type SQLiteQueryReader ¶ added in v0.2.1
type SQLiteQueryReader struct {
QueryReaderImpl
}
func (*SQLiteQueryReader) Initialize ¶ added in v0.2.1
func (s *SQLiteQueryReader) Initialize() error
Click to show internal directories.
Click to hide internal directories.