Skip to content

Commit 45ffc14

Browse files
committed
feat: support multi-line comments
1 parent 53fa0b2 commit 45ffc14

File tree

28 files changed

+105
-101
lines changed

28 files changed

+105
-101
lines changed

devenv.lock

Lines changed: 23 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -20,50 +20,51 @@
2020
"flake-compat": {
2121
"flake": false,
2222
"locked": {
23-
"lastModified": 1673956053,
24-
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
25-
"owner": "edolstra",
23+
"lastModified": 1767039857,
24+
"owner": "NixOS",
2625
"repo": "flake-compat",
27-
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
26+
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
2827
"type": "github"
2928
},
3029
"original": {
31-
"owner": "edolstra",
30+
"owner": "NixOS",
3231
"repo": "flake-compat",
3332
"type": "github"
3433
}
3534
},
36-
"flake-utils": {
35+
"git-hooks": {
3736
"inputs": {
38-
"systems": "systems"
37+
"flake-compat": "flake-compat",
38+
"gitignore": "gitignore",
39+
"nixpkgs": [
40+
"nixpkgs"
41+
]
3942
},
4043
"locked": {
41-
"lastModified": 1685518550,
42-
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
43-
"owner": "numtide",
44-
"repo": "flake-utils",
45-
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
44+
"lastModified": 1769939035,
45+
"owner": "cachix",
46+
"repo": "git-hooks.nix",
47+
"rev": "a8ca480175326551d6c4121498316261cbb5b260",
4648
"type": "github"
4749
},
4850
"original": {
49-
"owner": "numtide",
50-
"repo": "flake-utils",
51+
"owner": "cachix",
52+
"repo": "git-hooks.nix",
5153
"type": "github"
5254
}
5355
},
5456
"gitignore": {
5557
"inputs": {
5658
"nixpkgs": [
57-
"pre-commit-hooks",
59+
"git-hooks",
5860
"nixpkgs"
5961
]
6062
},
6163
"locked": {
62-
"lastModified": 1660459072,
63-
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
64+
"lastModified": 1762808025,
6465
"owner": "hercules-ci",
6566
"repo": "gitignore.nix",
66-
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
67+
"rev": "cb5e3fdca1de58ccbc3ef53de65bd372b48f567c",
6768
"type": "github"
6869
},
6970
"original": {
@@ -88,66 +89,14 @@
8889
"type": "github"
8990
}
9091
},
91-
"nixpkgs-stable": {
92-
"locked": {
93-
"lastModified": 1685801374,
94-
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
95-
"owner": "NixOS",
96-
"repo": "nixpkgs",
97-
"rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
98-
"type": "github"
99-
},
100-
"original": {
101-
"owner": "NixOS",
102-
"ref": "nixos-23.05",
103-
"repo": "nixpkgs",
104-
"type": "github"
105-
}
106-
},
107-
"pre-commit-hooks": {
108-
"inputs": {
109-
"flake-compat": "flake-compat",
110-
"flake-utils": "flake-utils",
111-
"gitignore": "gitignore",
112-
"nixpkgs": [
113-
"nixpkgs"
114-
],
115-
"nixpkgs-stable": "nixpkgs-stable"
116-
},
117-
"locked": {
118-
"lastModified": 1698227354,
119-
"narHash": "sha256-Fi5H9jbaQLmLw9qBi/mkR33CoFjNbobo5xWdX4tKz1Q=",
120-
"owner": "cachix",
121-
"repo": "pre-commit-hooks.nix",
122-
"rev": "bd38df3d508dfcdff52cd243d297f218ed2257bf",
123-
"type": "github"
124-
},
125-
"original": {
126-
"owner": "cachix",
127-
"repo": "pre-commit-hooks.nix",
128-
"type": "github"
129-
}
130-
},
13192
"root": {
13293
"inputs": {
13394
"devenv": "devenv",
95+
"git-hooks": "git-hooks",
13496
"nixpkgs": "nixpkgs",
135-
"pre-commit-hooks": "pre-commit-hooks"
136-
}
137-
},
138-
"systems": {
139-
"locked": {
140-
"lastModified": 1681028828,
141-
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
142-
"owner": "nix-systems",
143-
"repo": "default",
144-
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
145-
"type": "github"
146-
},
147-
"original": {
148-
"owner": "nix-systems",
149-
"repo": "default",
150-
"type": "github"
97+
"pre-commit-hooks": [
98+
"git-hooks"
99+
]
151100
}
152101
}
153102
},

internal/endtoend/testdata/emit_pydantic_models/db/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code generated by sqlc. DO NOT EDIT.
22
# versions:
3-
# sqlc v1.28.0
3+
# sqlc v1.30.0
44
import pydantic
55
from typing import Optional
66

internal/endtoend/testdata/emit_pydantic_models/db/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code generated by sqlc. DO NOT EDIT.
22
# versions:
3-
# sqlc v1.28.0
3+
# sqlc v1.30.0
44
# source: query.sql
55
from typing import AsyncIterator, Iterator, Optional
66

internal/endtoend/testdata/emit_pydantic_models/sqlc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
- name: py
44
wasm:
55
url: file://../../../../bin/sqlc-gen-python.wasm
6-
sha256: "d6846ffad948181e611e883cedd2d2be66e091edc1273a0abc6c9da18399e0ca"
6+
sha256: "b0a49a02a79fac9fd3a4c205a5a9ae267a9c188202c3fcde781ee2df979e3366"
77
sql:
88
- schema: schema.sql
99
queries: query.sql

internal/endtoend/testdata/emit_str_enum/db/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code generated by sqlc. DO NOT EDIT.
22
# versions:
3-
# sqlc v1.28.0
3+
# sqlc v1.30.0
44
import dataclasses
55
import enum
66
from typing import Optional

internal/endtoend/testdata/emit_str_enum/db/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code generated by sqlc. DO NOT EDIT.
22
# versions:
3-
# sqlc v1.28.0
3+
# sqlc v1.30.0
44
# source: query.sql
55
from typing import AsyncIterator, Iterator, Optional
66

internal/endtoend/testdata/emit_str_enum/sqlc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
- name: py
44
wasm:
55
url: file://../../../../bin/sqlc-gen-python.wasm
6-
sha256: "d6846ffad948181e611e883cedd2d2be66e091edc1273a0abc6c9da18399e0ca"
6+
sha256: "b0a49a02a79fac9fd3a4c205a5a9ae267a9c188202c3fcde781ee2df979e3366"
77
sql:
88
- schema: schema.sql
99
queries: query.sql

internal/endtoend/testdata/exec_result/python/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code generated by sqlc. DO NOT EDIT.
22
# versions:
3-
# sqlc v1.28.0
3+
# sqlc v1.30.0
44
import dataclasses
55

66

internal/endtoend/testdata/exec_result/python/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code generated by sqlc. DO NOT EDIT.
22
# versions:
3-
# sqlc v1.28.0
3+
# sqlc v1.30.0
44
# source: query.sql
55
import sqlalchemy
66
import sqlalchemy.ext.asyncio

internal/endtoend/testdata/exec_result/sqlc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
- name: py
44
wasm:
55
url: file://../../../../bin/sqlc-gen-python.wasm
6-
sha256: "d6846ffad948181e611e883cedd2d2be66e091edc1273a0abc6c9da18399e0ca"
6+
sha256: "b0a49a02a79fac9fd3a4c205a5a9ae267a9c188202c3fcde781ee2df979e3366"
77
sql:
88
- schema: schema.sql
99
queries: query.sql

0 commit comments

Comments
 (0)