Documentation ¶
Index ¶
- Variables
- type CursorError
- type DSN
- type Loader
- func (l *Loader) Delete(tableName string, primaryKey string) error
- func (l *Loader) Flush(ctx context.Context, moduleHash string, cursor *sink.Cursor) (err error)
- func (l *Loader) GetAvailableTablesInSchema() string
- func (l *Loader) GetCursor(ctx context.Context, outputModuleHash string) (*sink.Cursor, error)
- func (l *Loader) GetIdentifier() string
- func (l *Loader) GetSchema() string
- func (l *Loader) HasTable(tableName string) bool
- func (l *Loader) Insert(tableName string, primaryKey string, data map[string]string) error
- func (l *Loader) LoadTables() error
- func (l *Loader) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (l *Loader) Setup(ctx context.Context, schemaFile string) error
- func (l *Loader) Update(tableName string, primaryKey string, data map[string]string) error
- func (l *Loader) UpdateCursorQuery(moduleHash string, c *sink.Cursor) string
- func (l *Loader) WriteCursor(ctx context.Context, moduleHash string, c *sink.Cursor) error
- type Operation
- type OperationType
- type Queryable
- type TypeGetter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCursorNotFound = errors.New("cursor not found")
Functions ¶
This section is empty.
Types ¶
type CursorError ¶
type CursorError struct {
// contains filtered or unexported fields
}
type Loader ¶
func (*Loader) Delete ¶
Delete a row in the DB, it is assumed the table exists, you can do a check before with HasTable()
func (*Loader) GetAvailableTablesInSchema ¶
func (*Loader) GetIdentifier ¶
GetIdentifier returns <database>/<schema> suitable for user presentation
func (*Loader) Insert ¶
Insert a row in the DB, it is assumed the table exists, you can do a check before with HasTable()
func (*Loader) LoadTables ¶
func (*Loader) MarshalLogObject ¶
func (l *Loader) MarshalLogObject(encoder zapcore.ObjectEncoder) error
func (*Loader) Update ¶
Update a row in the DB, it is assumed the table exists, you can do a check before with HasTable()
func (*Loader) UpdateCursorQuery ¶
type OperationType ¶
type OperationType string
const ( OperationTypeInsert OperationType = "INSERT" OperationTypeUpdate OperationType = "UPDATE" OperationTypeDelete OperationType = "DELETE" )
Click to show internal directories.
Click to hide internal directories.