SDK generation plugin
The sdks plugin generates a language-specific SDK from the database's
exported definitions. This release supports Go.
Configuration
Enable the plugin and set the output directory:
{:plugins {:database {:path "app.db"}
:sdks {:go {:directory "./sdk"}}}}| Setting | Requirement | Description |
|---|---|---|
sdks.go | Optional | Enables the Go generator. |
sdks.go.directory | Required when go is enabled; nonempty string | Directory for generated Go source; relative paths are resolved from the process working directory. |
With no language configured, sdks does not generate files. There is no default
output directory. Select stdlib
and database separately if the definitions
or application need them.
An enabled SDK is generated when the database opens and refreshed after definitions
are updated. The output directory contains sdk.go and schemas/schemas.go.
SDK generation
SDK generation for this language is not available in this release. The sdks
plugin currently generates Go source. Select Go above for generated API and usage examples.