Documentation
¶
Index ¶
- type MSSQLSource
- func (m *MSSQLSource) Ack(ctx context.Context, msg hermod.Message) error
- func (m *MSSQLSource) Close() error
- func (m *MSSQLSource) DiscoverColumns(ctx context.Context, table string) ([]hermod.ColumnInfo, error)
- func (m *MSSQLSource) DiscoverDatabases(ctx context.Context) ([]string, error)
- func (m *MSSQLSource) DiscoverTables(ctx context.Context) ([]string, error)
- func (m *MSSQLSource) GetState() map[string]string
- func (m *MSSQLSource) IsReady(ctx context.Context) error
- func (m *MSSQLSource) Ping(ctx context.Context) error
- func (m *MSSQLSource) Read(ctx context.Context) (hermod.Message, error)
- func (m *MSSQLSource) Sample(ctx context.Context, table string) (hermod.Message, error)
- func (m *MSSQLSource) SetLogger(logger hermod.Logger)
- func (m *MSSQLSource) SetState(state map[string]string)
- func (m *MSSQLSource) Snapshot(ctx context.Context, tables ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MSSQLSource ¶
type MSSQLSource struct {
// contains filtered or unexported fields
}
MSSQLSource implements the hermod.Source interface for MSSQL CDC.
func NewMSSQLSource ¶
func NewMSSQLSource(connString string, tables []string, autoEnableCDC bool, useCDC bool) *MSSQLSource
func (*MSSQLSource) Close ¶
func (m *MSSQLSource) Close() error
func (*MSSQLSource) DiscoverColumns ¶
func (m *MSSQLSource) DiscoverColumns(ctx context.Context, table string) ([]hermod.ColumnInfo, error)
func (*MSSQLSource) DiscoverDatabases ¶
func (m *MSSQLSource) DiscoverDatabases(ctx context.Context) ([]string, error)
func (*MSSQLSource) DiscoverTables ¶
func (m *MSSQLSource) DiscoverTables(ctx context.Context) ([]string, error)
func (*MSSQLSource) GetState ¶
func (m *MSSQLSource) GetState() map[string]string
func (*MSSQLSource) SetLogger ¶
func (m *MSSQLSource) SetLogger(logger hermod.Logger)
func (*MSSQLSource) SetState ¶
func (m *MSSQLSource) SetState(state map[string]string)
Click to show internal directories.
Click to hide internal directories.