[Plugins] Should the plugin
package be moved out of internal
?
#1703
-
Version1.14.0 What happened?I wanted to play around with authoring a plugin, but after reading the documentation and looking at the example code, I realized that the Am I missing something obvious that makes it possible to write a process-based plugin? Or does the Relevant log outputNo response Database schemaNo response SQL queriesNo response ConfigurationNo response Playground URLNo response What operating system are you using?No response What database engines are you using?No response What type of code are you generating?No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
My comment in #1578 is stale. WASM-plugins are close (#1684) and will be available in 0.15.0. Process-based plugins exist as an escape hatch for plugin developers that can't use a language that targets WASM. It's not listed from in version 0.14.0 of the docs, but I've written a guide for authoring plugins. Can you give that a read over? Curious if it answers your questions. |
Beta Was this translation helpful? Give feedback.
-
You can copy the entire plugin folder to your own project so you can import it. |
Beta Was this translation helpful? Give feedback.
-
This has been fixed as of 1.16.0. The Python and Kotlin plugins are now separate and take advantage of the https://github.com/tabbed/sqlc-go repository. You can see how a plugin works here: https://github.com/tabbed/sqlc-gen-python |
Beta Was this translation helpful? Give feedback.
This has been fixed as of 1.16.0. The Python and Kotlin plugins are now separate and take advantage of the https://github.com/tabbed/sqlc-go repository.
You can see how a plugin works here: https://github.com/tabbed/sqlc-gen-python