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:

json142 B
{
  "plugins": {
    "database": {
      "path": "app.db"
    },
    "sdks": {
      "go": {
        "directory": "./sdk"
      }
    }
  }
}
SettingRequirementDescription
sdks.goOptionalEnables the Go generator.
sdks.go.directoryRequired when go is enabled; nonempty stringDirectory 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.