Skip to content

Commit c8eb1f3

Browse files
committed
chore: Move everything into an internal package
1 parent 7fecc58 commit c8eb1f3

File tree

13 files changed

+2020
-4
lines changed

13 files changed

+2020
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
all: sqlc-gen-python sqlc-gen-python.wasm
22

33
sqlc-gen-python:
4-
cd cmd/sqlc-gen-python && go build -o ~/bin/sqlc-gen-python ./main.go
4+
cd plugin && go build -o ~/bin/sqlc-gen-python ./main.go
55

66
sqlc-gen-python.wasm:
7-
cd cmd/sqlc-gen-python && tinygo build -o sqlc-gen-python.wasm -gc=leaking -scheduler=none -wasm-abi=generic -target=wasi main.go
8-
openssl sha256 cmd/sqlc-gen-python/sqlc-gen-python.wasm
7+
cd plugin && tinygo build -o sqlc-gen-python.wasm -gc=leaking -scheduler=none -wasm-abi=generic -target=wasi main.go
8+
openssl sha256 plugin/sqlc-gen-python.wasm
99

File renamed without changes.

internal/config.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package python
2+
3+
type Config struct {
4+
EmitExactTableNames bool `json:"emit_exact_table_names"`
5+
EmitSyncQuerier bool `json:"emit_sync_querier"`
6+
EmitAsyncQuerier bool `json:"emit_async_querier"`
7+
Package string `json:"package"`
8+
Out string `json:"out"`
9+
EmitPydanticModels bool `json:"emit_pydantic_models"`
10+
QueryParameterLimit *int32 `json:"query_parameter_limit"`
11+
InflectionExcludeTableNames []string `json:"inflection_exclude_table_names"`
12+
}

internal/config_easyjson.go

Lines changed: 178 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)