Documentation ¶
Index ¶
- Variables
- func New(ctx context.Context, logger zerolog.Logger, spec []byte, ...) (plugin.Client, error)
- type Client
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) DeleteStale(ctx context.Context, msgs message.WriteDeleteStales) error
- func (c *Client) MigrateTables(ctx context.Context, msgs message.WriteMigrateTables) error
- func (c *Client) Read(ctx context.Context, table *schema.Table, res chan<- arrow.Record) error
- func (c *Client) Write(ctx context.Context, msgs <-chan message.WriteMessage) error
- func (c *Client) WriteTableBatch(ctx context.Context, tableName string, msgs message.WriteInserts) error
- type CustomUnit64
- type Spec
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONSchema string
Functions ¶
Types ¶
type Client ¶
type Client struct { plugin.UnimplementedSource batchwriter.UnimplementedDeleteRecord // contains filtered or unexported fields }
func (*Client) DeleteStale ¶
func (*Client) MigrateTables ¶
func (*Client) WriteTableBatch ¶
type CustomUnit64 ¶
type CustomUnit64 uint64
type Spec ¶
type Spec struct { // MongoDB URI as described in the official MongoDB [documentation](https://www.mongodb.com/docs/manual/reference/connection-string/). ConnectionString string `json:"connection_string" jsonschema:"required,minLength=1"` // Database to sync the data to. Database string `json:"database" jsonschema:"required,minLength=1"` // Maximum number of items that may be grouped together to be written in a single write. BatchSize int `json:"batch_size,omitempty" jsonschema:"minimum=1,default=1000"` // Maximum size of items that may be grouped together to be written in a single write. BatchSizeBytes int `json:"batch_size_bytes,omitempty" jsonschema:"minimum=1,default=4194304"` }
func (*Spec) SetDefaults ¶
func (s *Spec) SetDefaults()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.