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/import update to re-pin.
Effect: mutating
#Arguments
| Name | Required | Description |
|---|---|---|
alias | no | Name 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
| Name | Required | Description |
|---|---|---|
alias | no | Name of the single [imports] alias to re-resolve and update; omit to update every declared alias |