sqlsink

package
v0.0.0-...-1472157 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLSink

func NewSQLSink(query Query, opt sink.SinkOption) sink.Sink

Types

type Query

type Query struct {
	DB *sql.DB

	CS map[string]sql.Stmt
	US map[string]sql.Stmt
	DS map[string]sql.Stmt

	// data must be a struct pointer
	Create map[string]func(topicId []byte, data interface{}, tp time.Time) error
	Update map[string]func(topicId []byte, data interface{}, tp time.Time) error
	Delete map[string]func(topicId []byte, tp time.Time) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL