postgres

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Create

func Create(config config.DatabaseConnectionConfig) *Client

func (*Client) Close

func (client *Client) Close()

type DataLoader

type DataLoader struct {
	// contains filtered or unexported fields
}

func CreateDataLoader

func CreateDataLoader(client *Client) *DataLoader

func (*DataLoader) LoadData

func (l *DataLoader) LoadData(ctx context.Context, schema string, table string, columns []string, fetcher domain.ChunkIterator) error

type TableRepository

type TableRepository struct {
	// contains filtered or unexported fields
}

func CreateTableRepository

func CreateTableRepository(client *Client) *TableRepository

func (*TableRepository) CreateTable

func (r *TableRepository) CreateTable(ctx context.Context, schema string, table string, columns []domain.Field) error

func (*TableRepository) IsTableExist

func (r *TableRepository) IsTableExist(ctx context.Context, schema string, table string) (bool, error)

func (*TableRepository) TruncateTable

func (r *TableRepository) TruncateTable(ctx context.Context, schema string, table string) error

Jump to

Keyboard shortcuts

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