message

package
v4.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MPL-2.0 Imports: 3 Imported by: 93 modules, 103 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteStale

type DeleteStale struct {
	Table      *schema.Table
	SourceName string
	SyncTime   time.Time
}

DeleteStale is a pretty specific message which requires the destination to be aware of a CLI use-case thus it might be deprecated in the future in favour of MessageDelete or MessageRawQuery The message indeciates that the destination needs to run something like "DELETE FROM table WHERE _cq_source_name=$1 and sync_time < $2"

func (DeleteStale) GetTable

func (m DeleteStale) GetTable() *schema.Table

type Insert

type Insert struct {
	Record arrow.Record
}

func (*Insert) GetTable

func (m *Insert) GetTable() *schema.Table

type Inserts

type Inserts []*Insert

func (Inserts) Exists

func (m Inserts) Exists(tableName string) bool

func (Inserts) GetRecordsForTable

func (m Inserts) GetRecordsForTable(table *schema.Table) []arrow.Record

type Message

type Message interface {
	GetTable() *schema.Table
}

type Messages

type Messages []Message

func (Messages) InsertItems

func (messages Messages) InsertItems() int64

func (Messages) InsertMessage

func (messages Messages) InsertMessage() Inserts

type MigrateTable

type MigrateTable struct {
	Table *schema.Table
}

func (MigrateTable) GetTable

func (m MigrateTable) GetTable() *schema.Table

type MigrateTables

type MigrateTables []*MigrateTable

func (MigrateTables) Exists

func (m MigrateTables) Exists(tableName string) bool

Jump to

Keyboard shortcuts

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