Documentation
¶
Index ¶
- func DumpData(ctx context.Context, conn pgd.DBTX, out io.Writer, skipTables []string) error
- func DumpDataWithSchema(ctx context.Context, conn pgd.DBTX, out io.Writer, skipTables []string, ...) error
- func DumpDataWithSchemaParallel(ctx context.Context, conn *pgxpool.Pool, out io.Writer, skipTables []string, ...) error
- type Column
- type Constraint
- type Enum
- type Extension
- type Function
- type Index
- type Schema
- type Sequence
- type Table
- type TableData
- type Trigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶ added in v0.31.0
func (Column) EntityName ¶ added in v0.33.0
type Constraint ¶ added in v0.31.0
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
func (Enum) EntityName ¶ added in v0.33.0
type Extension ¶ added in v0.31.0
type Extension struct {
Name string
}
func (Extension) EntityName ¶ added in v0.33.0
type Function ¶ added in v0.31.0
func (Function) EntityName ¶ added in v0.33.0
type Index ¶ added in v0.31.0
func (Index) EntityName ¶ added in v0.33.0
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
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
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
Click to show internal directories.
Click to hide internal directories.