File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1- # Authoring plugins
1+ # Using plugins
22
3- To use plugins, you must be using [ Version 2] ( ../reference/config.md ) of
3+ To use plugins, you must be using [ Version 2] ( ../reference/config.md#version-2 ) of
44the configuration file. The top-level ` plugins ` array defines the available
55plugins.
66
77## WASM plugins
88
9- > WASM plugins are fully sandboxed. Plugins do not have access to the network,
9+ > WASM plugins are fully sandboxed; they do not have access to the network,
1010> filesystem, or environment variables.
1111
1212In the ` codegen ` section, the ` out ` field dictates what directory will contain
1313the new files. The ` plugin ` key must reference a plugin defined in the
14- top-level ` plugins ` map. The ` options ` are serialized to a string and passed on
15- to the plugin itself.
14+ top-level ` plugins ` map. Any ` options ` are serialized to a string as JSON and
15+ passed on to the plugin itself.
1616
1717
1818``` yaml
2929 codegen :
3030 - out : gen
3131 plugin : greeter
32+ options :
33+ lang : en-US
3234` ` `
3335
3436For a complete working example see the following files:
@@ -44,8 +46,8 @@ For a complete working example see the following files:
4446
4547In the ` codegen` section, the `out` field dictates what directory will contain
4648the new files. The `plugin` key must reference a plugin defined in the
47- top-level `plugins` map. The `options` are serialized to a string and passed on
48- to the plugin itself.
49+ top-level `plugins` map. Any `options` are serialized to a string as JSON and
50+ passed on to the plugin itself.
4951
5052` ` ` yaml
5153version: '2'
Original file line number Diff line number Diff line change 44database types to Go types. Choices for more complex types are described below.
55
66If you're unsatisfied with the default, you can override any type using the
7- [ overrides list] ( config.html#type-overriding ) in your ` sqlc ` config file.
7+ [ overrides list] ( ./ config.html#type-overriding) in your ` sqlc ` config file.
88
99## Arrays
1010
You can’t perform that action at this time.
0 commit comments