The highest tagged major version is
v6 .
Discover Packages
github.com/msales/streams/v4
sql
package
Version:
v4.0.1
Opens a new window with list of versions in this module.
Published: Apr 22, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ExecFunc func(*sql .Tx , streams.Message) error
ExecFunc represents a function implementing an Executor.
Exec executes a query on the given transaction.
type Executor interface {
Exec(*sql .Tx , streams.Message) error
}
Executor represents a SQL query executor.
Sink represents a SQL sink processor.
NewSink creates a new batch sql insert sink.
Close closes the processor.
Commit commits a processors batch.
func (p *Sink ) Process(msg streams.Message) error
Process processes the stream record.
func (p *Sink ) WithPipe(pipe streams.Pipe)
WithPipe sets the pipe on the Processor.
Transaction represents a SQL transaction handler.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.