dump

package
v1.3.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeferredDefaults

func DeferredDefaults(ctx context.Context, d *db.DB, ident string) ([]string, error)

DeferredDefaults returns ALTER TABLE SET DEFAULT statements for the table's columns whose default calls a schema qualified function. These apply after the table and its function both exist, sidestepping the case where a table sits before its default's function in apply order.

func LiveDefinition

func LiveDefinition(ctx context.Context, d *db.DB, kind, ident string, schemas []string) (string, error)

LiveDefinition returns idempotent SQL that recreates the named object as it exists in the live database. An empty string means the object is absent. schemas scopes name only lookups for triggers and indexes to the owning step's schemas, so dynamically attached twins on other schemas stay out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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