forked from sqlc-dev/sqlc-gen-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.go
More file actions
21 lines (19 loc) · 900 Bytes
/
Copy pathconfig.go
File metadata and controls
21 lines (19 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package python
type Config struct {
EmitExactTableNames bool `json:"emit_exact_table_names"`
Package string `json:"package"`
Out string `json:"out"`
EmitPydanticModels bool `json:"emit_pydantic_models"`
QueryParameterLimit *int32 `json:"query_parameter_limit"`
InflectionExcludeTableNames []string `json:"inflection_exclude_table_names"`
TablePrefix string `json:"table_prefix"`
// When a query uses a table with RLS enforced fields, it will be required to
// parametrized those fields. Not covered:
// - Associate tables
// - sqlc.embed()
// - json_agg(tbl.*)
RLSEnforcedFields []string `json:"rls_enforced_fields"`
// Merge queries defined in different files into one output queries.py file
MergeQueryFiles bool `json:"merge_query_files"`
}
const MODELS_FILENAME = "db_models"