File tree Expand file tree Collapse file tree 13 files changed +136
-108
lines changed
inflection_exclude_table_names
query_parameter_limit_two
query_parameter_limit_undefined
query_parameter_limit_zero Expand file tree Collapse file tree 13 files changed +136
-108
lines changed Original file line number Diff line number Diff line change 1
1
bin
2
- * .wasm
3
2
4
3
# Devenv
5
4
.envrc
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ package python
4
4
type Config struct {
5
5
EmitAsync bool `json:"emit_async"` // Emits async code instead of sync
6
6
EmitExactTableNames bool `json:"emit_exact_table_names"`
7
- EmitGenerators bool `json:"emit_generators"` // Will we use generators or lists, defaults to true
7
+ EmitGenerators bool `json:"emit_generators"` // Will we use generators or lists, defaults to false
8
8
EmitModule bool `json:"emit_module"` // If true emits functions in module, else wraps in a class.
9
9
EmitPydanticModels bool `json:"emit_pydantic_models"`
10
10
EmitSyncQuerier bool `json:"emit_sync_querier"` // DEPRECATED ALIAS FOR: emit_type = 'class', emit_generators = True
Original file line number Diff line number Diff line change @@ -100,8 +100,9 @@ func TestGenerate(t *testing.T) {
100
100
cmd := exec .Command (sqlc , "diff" )
101
101
cmd .Dir = dir
102
102
got , err := cmd .CombinedOutput ()
103
+ // TODO: We are diffing patches! Does this make sense and what should we provide to the end user?
103
104
if diff := cmp .Diff (string (want ), string (got )); diff != "" {
104
- t .Errorf ("sqlc diff mismatch (-want +got):\n %s" , diff )
105
+ t .Errorf ("sqlc diff mismatch (-want +got):\n %s" , string ( got ) )
105
106
}
106
107
if len (want ) == 0 && err != nil {
107
108
t .Error (err )
Original file line number Diff line number Diff line change 3
3
- name : py
4
4
wasm :
5
5
url : file://../../../../bin/sqlc-gen-python.wasm
6
- sha256 : " a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e "
6
+ sha256 : " c97fad53818679a948c68f3ffe84530d7ca4999f636d3f3d89202c6c08ee224d "
7
7
sql :
8
8
- schema : schema.sql
9
9
queries : query.sql
Original file line number Diff line number Diff line change 3
3
- name : py
4
4
wasm :
5
5
url : file://../../../../bin/sqlc-gen-python.wasm
6
- sha256 : " a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e "
6
+ sha256 : " c97fad53818679a948c68f3ffe84530d7ca4999f636d3f3d89202c6c08ee224d "
7
7
sql :
8
8
- schema : schema.sql
9
9
queries : query.sql
Original file line number Diff line number Diff line change 3
3
- name : py
4
4
wasm :
5
5
url : file://../../../../bin/sqlc-gen-python.wasm
6
- sha256 : " a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e "
6
+ sha256 : " c97fad53818679a948c68f3ffe84530d7ca4999f636d3f3d89202c6c08ee224d "
7
7
sql :
8
8
- schema : schema.sql
9
9
queries : query.sql
Original file line number Diff line number Diff line change 3
3
- name : py
4
4
wasm :
5
5
url : file://../../../../bin/sqlc-gen-python.wasm
6
- sha256 : " a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e "
6
+ sha256 : " c97fad53818679a948c68f3ffe84530d7ca4999f636d3f3d89202c6c08ee224d "
7
7
sql :
8
8
- schema : schema.sql
9
9
queries : query.sql
Original file line number Diff line number Diff line change 3
3
- name : py
4
4
wasm :
5
5
url : file://../../../../bin/sqlc-gen-python.wasm
6
- sha256 : " a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e "
6
+ sha256 : " c97fad53818679a948c68f3ffe84530d7ca4999f636d3f3d89202c6c08ee224d "
7
7
sql :
8
8
- schema : schema.sql
9
9
queries : query.sql
Original file line number Diff line number Diff line change 3
3
- name : py
4
4
wasm :
5
5
url : file://../../../../bin/sqlc-gen-python.wasm
6
- sha256 : " a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e "
6
+ sha256 : " c97fad53818679a948c68f3ffe84530d7ca4999f636d3f3d89202c6c08ee224d "
7
7
sql :
8
8
- schema : schema.sql
9
9
queries : query.sql
Original file line number Diff line number Diff line change 3
3
- name : py
4
4
wasm :
5
5
url : file://../../../../bin/sqlc-gen-python.wasm
6
- sha256 : " a6c5d174c407007c3717eea36ff0882744346e6ba991f92f71d6ab2895204c0e "
6
+ sha256 : " c97fad53818679a948c68f3ffe84530d7ca4999f636d3f3d89202c6c08ee224d "
7
7
sql :
8
8
- schema : schema.sql
9
9
queries : query.sql
You can’t perform that action at this time.
0 commit comments