data

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpTable

func DumpTable(ctx context.Context, d *db.DB, t Table, outDir string) (int, string, error)

func InsertFile

func InsertFile(ctx context.Context, d *db.DB, t Table, path string, noTriggers bool) (int64, error)

func QuoteIdent

func QuoteIdent(id string) string

func TableExists

func TableExists(ctx context.Context, d *db.DB, t Table) (bool, error)

Types

type DropObj

type DropObj struct {
	Kind  string
	Ident string
	SQL   string
}

type DropPlan

type DropPlan struct {
	Schemas    []string
	Objects    []DropObj
	Extensions []string
}

func PlanDrop

func PlanDrop(objects map[string]string, schemas []string) *DropPlan

func (*DropPlan) Empty

func (p *DropPlan) Empty() bool

type Table

type Table struct {
	Schema string
	Name   string
}

func ParseTable

func ParseTable(qualified string) (Table, bool)

func Tables

func Tables(ctx context.Context, d *db.DB, schemas []string) ([]Table, error)

func (Table) FileName

func (t Table) FileName() string

func (Table) Qualified

func (t Table) Qualified() string

func (Table) Quoted

func (t Table) Quoted() string

Jump to

Keyboard shortcuts

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