Generate an interface with the generated methods? #2831
-
What do you want to change?Create an interface for What database engines need to be changed?No response What programming language backends need to be changed?Go |
Beta Was this translation helpful? Give feedback.
Answered by
kyleconroy
Oct 12, 2023
Replies: 1 comment 1 reply
-
The {
"version": "1",
"packages": [
{
"path": "db",
"engine": "postgresql",
"schema": "query.sql",
"queries": "query.sql",
"emit_interface": true
}
]
} https://play.sqlc.dev/p/1f0fc5978c9788beadd198a562fea3f3ed073dc3b4eaca63cfe9c84eb7655e20 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kyleconroy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
emit_interface
option does exactly what you want.https://play.sqlc.dev/p/1f0fc5978c9788beadd198a562fea3f3ed073dc3b4eaca63cfe9c84eb7655e20