-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathconfig.go
More file actions
18 lines (17 loc) · 1.3 KB
/
config.go
File metadata and controls
18 lines (17 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package python
// TODO: Where are these properly documented?
type Config struct {
EmitAsync bool `json:"emit_async"` // Emits async code instead of sync
EmitExactTableNames bool `json:"emit_exact_table_names"`
EmitGenerators bool `json:"emit_generators"` // Will we use generators or lists, defaults to true
EmitModule bool `json:"emit_module"` // If true emits functions in module, else wraps in a class.
EmitPydanticModels bool `json:"emit_pydantic_models"`
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
InflectionExcludeTableNames []string `json:"inflection_exclude_table_names"`
Out string `json:"out"`
OutputModelsFileName *string `json:"output_models_file_name,omitempty"` // Can be string or null to exclude generating models file
OutputQuerierFile bool `json:"output_querier_file,omitempty"` // Skips outputting queries
Package string `json:"package"`
QueryParameterLimit *int32 `json:"query_parameter_limit"`
}