10000 Add support for box · cortea-ai/sqlc-gen-python@1c0ff72 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c0ff72

Browse files
committed
Add support for box
1 parent d7ff135 commit 1c0ff72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/postgresql_type.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ func postgresType(req *plugin.GenerateRequest, conf Config, col *plugin.Column)
4646
return "tuple[tuple[float, float], ...]"
4747
case "vector":
4848
return "list[float]"
49+
case "box":
50+
return "tuple[tuple[float, float], tuple[float, float]]"
4951
default:
5052
for _, schema := range req.Catalog.Schemas {
5153
if schema.Name == "pg_catalog" || schema.Name == "information_schema" {

0 commit comments

Comments
 (0)
0