8000 models.py -> db_models.py · sqlc-dev/sqlc-gen-python@4d2625e · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 4d2625e

Browse files
committed
models.py -> db_models.py
1 parent 21b4026 commit 4d2625e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/gen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ func Generate(_ context.Context, req *plugin.GenerateRequest) (*plugin.GenerateR
998998

999999
output := map[string]string{}
10001000
result := pyprint.Print(buildModelsTree(&tctx, i), pyprint.Options{})
1001-
tctx.SourceName = "models.py"
1002-
output["models.py"] = string(result.Python)
1001+
tctx.SourceName = "db_models.py"
1002+
output["db_models.py"] = string(result.Python)
10031003

10041004
files := map[string]struct{}{}
10051005
for _, q := range queries {

internal/imports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func queryValueUses(name string, qv QueryValue) bool {
6969
}
7070

7171
func (i *importer) Imports(fileName string) []string {
72-
if fileName == "models.py" {
72+
if fileName == "db_models.py" {
7373
return i.modelImports()
7474
}
7575
return i.queryImports(fileName)

0 commit comments

Comments
 (0)
0