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:

TRON139 B
Offset (hex)Bytes (hex)Meaning
0054 52 4F 4Emagic TRON
044C 70617468txt "path"
096C 6170702E6462txt "app.db"
100F 0A 04000000 0900 0000map leaf, size 10: @4 → @9
1A9C 6469726563746F 7279txt "directory"
245C 2E2F73646Btxt "./sdk"
2A0F 0A 1A000000 2400 0000map leaf, size 10: @1A → @24
342C 676Ftxt "go"
370F 0A 34000000 2A00 0000map leaf, size 10: @34 → @2A
418C 64617461626173 65txt "database"
4A0F 0A 41000000 1000 0000map leaf, size 10: @41 → @10
544C 73646B73txt "sdks"
590F 0A 54000000 3700 0000map leaf, size 10: @54 → @37
6307 0E 00500000 4A00 0000 59000000map branch, size 14, depth 0 (root), slots 12, 14: @4A → @59
717C 706C7567696E73txt "plugins"
790F 0A 71000000 6300 0000map leaf, size 10: @71 → @63
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.