config

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBConnections

func NewDBConnections(cfg *Config) (*sql.DB, *pgxpool.Pool, error)

Types

type Config

type Config struct {
	MySQLDSN    string        `yaml:"mysql_dsn"`
	PostgresDSN string        `yaml:"postgres_dsn"`
	Concurrency int           `yaml:"concurrency"`
	Tables      []TableConfig `yaml:"tables"`
}

func LoadConfig

func LoadConfig(filename string) (*Config, error)

type TableConfig

type TableConfig struct {
	SourceTable      string `yaml:"source_table"`
	DestinationTable string `yaml:"destination_table"`
}

Jump to

Keyboard shortcuts

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