8000 Add vector type · cortea-ai/sqlc-gen-python@078c2fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 078c2fe

Browse files
committed
Add vector type
1 parent d284393 commit 078c2fe

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
@@ -42,6 +42,8 @@ func postgresType(req *plugin.GenerateRequest, col *plugin.Column) string {
4242
return "str"
4343
case "ltree", "lquery", "ltxtquery":
4444
return "str"
45+
case "vector":
46+
return "list[float]"
4547
default:
4648
for _, schema := range req.Catalog.Schemas {
4749
if schema.Name == "pg_catalog" || schema.Name == "information_schema" {

0 commit comments

Comments
 (0)
0