Documentation
¶
Index ¶
- func GetSchema(ctx context.Context, db *pgxpool.Pool, table string) (*schema.Schema, error)
- type PostgresAdapter
- func (a *PostgresAdapter) ApplySchema(ctx context.Context, s *schema.Schema) error
- func (a *PostgresAdapter) Close() error
- func (a *PostgresAdapter) Connect(ctx context.Context, cfg config.DBConfig) error
- func (a *PostgresAdapter) Partitions(ctx context.Context, table string, n int) ([]adapter.Partition, error)
- func (a *PostgresAdapter) ReadPartition(ctx context.Context, p adapter.Partition, ch chan<- *record.Record, ...)
- func (a *PostgresAdapter) Schema(ctx context.Context, table string) (*schema.Schema, error)
- func (a *PostgresAdapter) WriteBatch(ctx context.Context, batch []*record.Record) (int, error)
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresAdapter ¶
type PostgresAdapter struct {
// contains filtered or unexported fields
}
func NewPostgresAdapter ¶
func NewPostgresAdapter() *PostgresAdapter
func (*PostgresAdapter) ApplySchema ¶
func (*PostgresAdapter) Close ¶
func (a *PostgresAdapter) Close() error
func (*PostgresAdapter) Partitions ¶
func (*PostgresAdapter) ReadPartition ¶
func (*PostgresAdapter) WriteBatch ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader handles parallel reading from PostgreSQL.
func (*Reader) Partitions ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer handles bulk writing to PostgreSQL using the COPY protocol.
func (*Writer) ApplySchema ¶
Click to show internal directories.
Click to hide internal directories.