db

package
v0.0.0-...-9450479 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLRepository

type MySQLRepository struct {
	DB *sql.DB
}

func NewMySQLRepository

func NewMySQLRepository(db *sql.DB) *MySQLRepository

func (*MySQLRepository) GetTableData

func (repo *MySQLRepository) GetTableData(sourceTable string) (*sql.Rows, error)

type PostgresRepository

type PostgresRepository struct {
	Pool *pgxpool.Pool
}

func NewPostgresRepository

func NewPostgresRepository(pool *pgxpool.Pool) *PostgresRepository

func (*PostgresRepository) InsertTableData

func (repo *PostgresRepository) InsertTableData(ctx context.Context, destinationTable string, columns []string, values [][]interface{}) error

Jump to

Keyboard shortcuts

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