pgdump

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpData

func DumpData(ctx context.Context, conn pgd.DBTX, out io.Writer, skipTables []string) error

func DumpDataWithSchema added in v0.33.0

func DumpDataWithSchema(ctx context.Context, conn pgd.DBTX, out io.Writer, skipTables []string, schema *Schema) error

DumpDataWithSchema will return all data from all tables (except those in skipTables) in a structured format.

func DumpDataWithSchemaParallel added in v0.33.0

func DumpDataWithSchemaParallel(ctx context.Context, conn *pgxpool.Pool, out io.Writer, skipTables []string, schema *Schema) error

DumpDataWithSchema will return all data from all tables (except those in skipTables) in a structured format.

Types

type Column added in v0.31.0

type Column struct {
	Name         string
	Type         string
	NotNull      bool
	DefaultValue string
}

func (Column) EntityName added in v0.33.0

func (c Column) EntityName() string

func (Column) String added in v0.31.0

func (c Column) String() string

type Constraint added in v0.31.0

type Constraint struct {
	Name string
	Def  string
}

func (Constraint) EntityName added in v0.33.0

func (c Constraint) EntityName() string

func (Constraint) String added in v0.31.0

func (c Constraint) String() string

type Enum added in v0.31.0

type Enum struct {
	Name   string
	Values []string
}

func (Enum) EntityName added in v0.33.0

func (e Enum) EntityName() string

func (Enum) String added in v0.31.0

func (e Enum) String() string

type Extension added in v0.31.0

type Extension struct {
	Name string
}

func (Extension) EntityName added in v0.33.0

func (e Extension) EntityName() string

func (Extension) String added in v0.31.0

func (e Extension) String() string

type Function added in v0.31.0

type Function struct {
	Name string
	Def  string
}

func (Function) EntityName added in v0.33.0

func (f Function) EntityName() string

func (Function) String added in v0.31.0

func (f Function) String() string

type Index added in v0.31.0

type Index struct {
	Name string
	Def  string
}

func (Index) EntityName added in v0.33.0

func (idx Index) EntityName() string

func (Index) String added in v0.31.0

func (idx Index) String() string

type Schema added in v0.31.0

type Schema struct {
	Extensions []Extension
	Functions  []Function
	Tables     []Table
	Enums      []Enum
	Sequences  []Sequence
}

func DumpSchema added in v0.31.0

func DumpSchema(ctx context.Context, conn pgd.DBTX) (*Schema, error)

func (Schema) String added in v0.31.0

func (s Schema) String() string

type Sequence added in v0.31.0

type Sequence struct {
	Name       string
	StartValue int64
	Increment  int64
	MinValue   int64
	MaxValue   int64
	Cache      int64

	OwnedBy string
}

func (Sequence) EntityName added in v0.33.0

func (s Sequence) EntityName() string

func (Sequence) String added in v0.31.0

func (s Sequence) String() string

type Table added in v0.31.0

type Table struct {
	Name string

	Columns     []Column
	Constraints []Constraint
	Indexes     []Index
	Triggers    []Trigger
	Sequences   []Sequence
}

func (Table) EntityName added in v0.33.0

func (t Table) EntityName() string

func (Table) String added in v0.31.0

func (t Table) String() string

type TableData added in v0.33.0

type TableData struct {
	TableName string
	Columns   []string
	Rows      [][]string
}

type Trigger added in v0.31.0

type Trigger struct {
	Name string
	Def  string
}

func (Trigger) EntityName added in v0.33.0

func (t Trigger) EntityName() string

func (Trigger) String added in v0.31.0

func (t Trigger) String() string

Directories

Path Synopsis
cmd
pgdump-lite command

Jump to

Keyboard shortcuts

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