pgsync

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(ctx context.Context, options *SyncOptions) error

Sync imports the results of an mergestat query into a postgres table. CAUTION: will overwrite (DROP!) the specified table and replace it.

Types

type SyncOptions

type SyncOptions struct {
	Postgres   *sql.DB
	MergeStat  *sql.DB
	SchemaName string
	TableName  string
	Query      string
	Logger     *zerolog.Logger
}

Jump to

Keyboard shortcuts

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