Skip to content

feat: emit_module, emit_generators and emit_async flags #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Next Next commit
feat: using emit_module, emit_generators and emit_async flags you can…
… now generate query code that suites your need
  • Loading branch information
kevinvalk committed Aug 22, 2023
commit d785536c7e0161d0e1f8b51fbb9b725a23ea4c52
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.wasm
7 changes: 5 additions & 2 deletions internal/config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package python

type Config struct {
EmitModule bool `json:"emit_module"` // If true emits functions in module, else wraps in a class.
EmitGenerators bool `json:"emit_generators"` // Will we use generators or lists, defaults to true
EmitAsync bool `json:"emit_async"` // Emits async code instead of sync
EmitExactTableNames bool `json:"emit_exact_table_names"`
EmitSyncQuerier bool `json:"emit_sync_querier"`
EmitAsyncQuerier bool `json:"emit_async_querier"`
EmitSyncQuerier bool `json:"emit_sync_querier"` // DEPRECATED ALIAS FOR: emit_type = 'class', emit_generators = True
EmitAsyncQuerier bool `json:"emit_async_querier"` // DEPRECATED ALIAS FOR: emit_type = 'class', emit_generators = True
Package string `json:"package"`
Out string `json:"out"`
EmitPydanticModels bool `json:"emit_pydantic_models"`
Expand Down
Loading