pgdesign v0.26.0 /pgdesign import
On this page

Pin and vendor imported schema surfaces from other pgdesign projects

#pgdesign import

Pin and vendor imported schema surfaces from other pgdesign projects

#import lock

Resolve each [imports] alias's git pin, vendor the referenced surface (tables + type closure) into imports//, and write the lockfile. Refuses to overwrite an existing lockfile — use import update to re-pin.

Effect: mutating

#Arguments

Arguments
NameRequiredDescription
aliasnoName of the single [imports] alias to lock; omit to lock every alias declared in pgdesign.toml

#import update

Re-resolve each [imports] alias's git ref, re-extract the surface your schema actually references, and rewrite the lockfile at the new commit. Each declared framework is cloned into a temp directory that is removed on return, and only the tables your schema uses are vendored. Requires an existing lockfile — use import lock for the first pin. Pass an alias to update just that one.

Effect: mutating

#Arguments

Arguments
NameRequiredDescription
aliasnoName of the single [imports] alias to re-resolve and update; omit to update every declared alias
Search