Documentation
¶
Index ¶
- Constants
- type SQLiteSink
- func (s *SQLiteSink) Browse(ctx context.Context, table string, limit int) ([]hermod.Message, error)
- func (s *SQLiteSink) Close() error
- func (s *SQLiteSink) DiscoverColumns(ctx context.Context, table string) ([]hermod.ColumnInfo, error)
- func (s *SQLiteSink) DiscoverDatabases(ctx context.Context) ([]string, error)
- func (s *SQLiteSink) DiscoverTables(ctx context.Context) ([]string, error)
- func (s *SQLiteSink) Ping(ctx context.Context) error
- func (s *SQLiteSink) Sample(ctx context.Context, table string) (hermod.Message, error)
- func (s *SQLiteSink) Write(ctx context.Context, msg hermod.Message) error
- func (s *SQLiteSink) WriteBatch(ctx context.Context, msgs []hermod.Message) error
Constants ¶
View Source
const ( QueryUpsert = "Upsert" QueryDelete = "Delete" QueryListTables = "ListTables" QueryBrowse = "Browse" QueryCreateTable = "CreateTable" QueryListColumns = "ListColumns" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLiteSink ¶
type SQLiteSink struct {
// contains filtered or unexported fields
}
SQLiteSink implements the hermod.Sink interface for SQLite.
func NewSQLiteSink ¶
func (*SQLiteSink) Close ¶
func (s *SQLiteSink) Close() error
func (*SQLiteSink) DiscoverColumns ¶
func (s *SQLiteSink) DiscoverColumns(ctx context.Context, table string) ([]hermod.ColumnInfo, error)
func (*SQLiteSink) DiscoverDatabases ¶
func (s *SQLiteSink) DiscoverDatabases(ctx context.Context) ([]string, error)
func (*SQLiteSink) DiscoverTables ¶
func (s *SQLiteSink) DiscoverTables(ctx context.Context) ([]string, error)
func (*SQLiteSink) WriteBatch ¶
Click to show internal directories.
Click to hide internal directories.