sync

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(cfg Config) error

Types

type Config

type Config struct {
	Filter    string   `arg:"-f" help:"filter type: gt, lt, gte, or lte"`
	Value     string   `arg:"-v" help:"filter value"`
	NoDelete  bool     `arg:"-n,--nodelete" help:"don't delete records from target"`
	Tables    []string `arg:"-t,--tables,separate" help:"tables to sync (if not specified, syncs all tables)"`
	SrcDbPath string   `arg:"positional,required" help:"source database path"`
	DstDbPath string   `arg:"positional,required" help:"target database path"`
}

Modify the existing Config struct to add arg tags

func (Config) Description

func (Config) Description() string

type Table

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

Jump to

Keyboard shortcuts

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