Documentation
¶
Index ¶
- Variables
- type Connector
- type DBCommand
- type Field
- type JsonData
- type Schema
- type Writer
- func (writer *Writer) Init() error
- func (writer *Writer) ProcessData(reference interface{}, record *gravity_sdk_types_record.Record, ...) error
- func (writer *Writer) Publish(reference interface{}, record *gravity_sdk_types_record.Record, message string, ...)
- func (writer *Writer) SetCompletionHandler(fn database.CompletionHandler)
- func (writer *Writer) Truncate(table string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DataType_name = map[int32]string{
0: "boolean",
1: "binary",
2: "string",
3: "uint64",
4: "int64",
5: "float64",
6: "array",
7: "map",
}
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
type DBCommand ¶
type DBCommand struct { PipelineID uint64 Sequence uint64 Reference interface{} Record *gravity_sdk_types_record.Record QueryStr string Args map[string]interface{} Tables []string }
func (*DBCommand) GetPipelineID ¶
func (*DBCommand) GetReference ¶
func (cmd *DBCommand) GetReference() interface{}
func (*DBCommand) GetSequence ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) ProcessData ¶
func (writer *Writer) ProcessData(reference interface{}, record *gravity_sdk_types_record.Record, tables []string) error
func (*Writer) SetCompletionHandler ¶
func (writer *Writer) SetCompletionHandler(fn database.CompletionHandler)
Click to show internal directories.
Click to hide internal directories.