Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeferredDefaults ¶
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.
Click to show internal directories.
Click to hide internal directories.