Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version string
Version represents an API version identifier.
func Apply ¶
Apply executes the API contract SQL for the specified version. This creates the public views and functions that deploy.sql depends on. Must be called after schema.sql and file loading.
func LatestVersion ¶
func LatestVersion() Version
LatestVersion returns the current latest API version.
func Load ¶
Load returns the SQL content for the specified API version. If version is empty, the latest version is used. Returns the SQL content, the resolved version, and any error.
func SupportedVersions ¶
func SupportedVersions() []Version
SupportedVersions returns a sorted list of all supported API versions.
Click to show internal directories.
Click to hide internal directories.