message

package
v4.2.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 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 SyncInsert

type SyncInsert struct {
	Record arrow.Record
	// contains filtered or unexported fields
}

func (*SyncInsert) GetTable

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

func (*SyncInsert) IsSyncMessage

func (*SyncInsert) IsSyncMessage() bool

type SyncInserts

type SyncInserts []*SyncInsert

func (SyncInserts) Exists

func (m SyncInserts) Exists(tableName string) bool

func (SyncInserts) GetRecordsForTable

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

type SyncMessage

type SyncMessage interface {
	GetTable() *schema.Table
	IsSyncMessage() bool
}

type SyncMessages

type SyncMessages []SyncMessage

func (SyncMessages) InsertItems

func (messages SyncMessages) InsertItems() int64

func (SyncMessages) InsertMessage

func (messages SyncMessages) InsertMessage() SyncInserts

type SyncMigrateTable

type SyncMigrateTable struct {
	Table *schema.Table
	// contains filtered or unexported fields
}

func (SyncMigrateTable) GetTable

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

func (*SyncMigrateTable) IsSyncMessage

func (*SyncMigrateTable) IsSyncMessage() bool

type SyncMigrateTables

type SyncMigrateTables []*SyncMigrateTable

func (SyncMigrateTables) Exists

func (m SyncMigrateTables) Exists(tableName string) bool

type WriteDeleteStale

type WriteDeleteStale struct {
	Table      *schema.Table
	SourceName string
	SyncTime   time.Time
	// contains filtered or unexported fields
}

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 (WriteDeleteStale) GetTable

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

func (*WriteDeleteStale) IsWriteMessage

func (*WriteDeleteStale) IsWriteMessage() bool

type WriteInsert

type WriteInsert struct {
	Record arrow.Record
	// contains filtered or unexported fields
}

func (*WriteInsert) GetTable

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

func (*WriteInsert) IsWriteMessage

func (*WriteInsert) IsWriteMessage() bool

type WriteInserts

type WriteInserts []*WriteInsert

func (WriteInserts) Exists

func (m WriteInserts) Exists(tableName string) bool

func (WriteInserts) GetRecordsForTable

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

type WriteMessage

type WriteMessage interface {
	GetTable() *schema.Table
	IsWriteMessage() bool
}

type WriteMessages

type WriteMessages []WriteMessage

func (WriteMessages) GetInserts

func (messages WriteMessages) GetInserts() WriteInserts

func (WriteMessages) InsertItems

func (messages WriteMessages) InsertItems() int64

type WriteMigrateTable

type WriteMigrateTable struct {
	Table        *schema.Table
	MigrateForce bool
	// contains filtered or unexported fields
}

func (WriteMigrateTable) GetTable

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

func (*WriteMigrateTable) IsWriteMessage

func (*WriteMigrateTable) IsWriteMessage() bool

type WriteMigrateTables

type WriteMigrateTables []*WriteMigrateTable

func (WriteMigrateTables) Exists

func (m WriteMigrateTables) Exists(tableName string) bool

Jump to

Keyboard shortcuts

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