util

package
v0.0.0-...-8cfd559 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NULL = "NULL"

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

type Dumper struct {
	Context        context.Context
	DatabaseURL    string
	DatabaseSchema string
	OutputDir      string
	AppIDs         []string
	TableNames     []string
	// contains filtered or unexported fields
}

func NewDumper

func NewDumper(
	context context.Context,
	databaseURL string,
	databaseSchema string,
	outputDir string,
	appIDs []string,
	tableNames []string,
) *Dumper

func (*Dumper) Dump

func (d *Dumper) Dump() error

type Restorer

type Restorer struct {
	Context        context.Context
	DatabaseURL    string
	DatabaseSchema string
	InputDir       string
	AppIDs         []string
	TableNames     []string
	// contains filtered or unexported fields
}

func NewRestorer

func NewRestorer(
	context context.Context,
	databaseURL string,
	databaseSchema string,
	inputDir string,
	appIDs []string,
	tableNames []string,
) *Restorer

func (*Restorer) Restore

func (r *Restorer) Restore() error

Jump to

Keyboard shortcuts

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