Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd785536

Browse files
committed
feat: using emit_module, emit_generators and emit_async flags you can now generate query code that suites your need
1 parentd5a393b commitd785536

File tree

6 files changed

+242
-232
lines changed

6 files changed

+242
-232
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.wasm

‎internal/config.go‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
package python
22

33
typeConfigstruct {
4+
EmitModulebool`json:"emit_module"`// If true emits functions in module, else wraps in a class.
5+
EmitGeneratorsbool`json:"emit_generators"`// Will we use generators or lists, defaults to true
6+
EmitAsyncbool`json:"emit_async"`// Emits async code instead of sync
47
EmitExactTableNamesbool`json:"emit_exact_table_names"`
5-
EmitSyncQuerierbool`json:"emit_sync_querier"`
6-
EmitAsyncQuerierbool`json:"emit_async_querier"`
8+
EmitSyncQuerierbool`json:"emit_sync_querier"`// DEPRECATED ALIAS FOR: emit_type = 'class', emit_generators = True
9+
EmitAsyncQuerierbool`json:"emit_async_querier"`// DEPRECATED ALIAS FOR: emit_type = 'class', emit_generators = True
710
Packagestring`json:"package"`
811
Outstring`json:"out"`
912
EmitPydanticModelsbool`json:"emit_pydantic_models"`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp