feat(typegen): add functions setof type introspection #1800
Triggered via pull request
September 16, 2025 14:39
Status
Failure
Total duration
2m 22s
Artifacts
–
Annotations
8 errors
Test
Process completed with exit code 1.
|
test/index.test.ts > typegen: swift w/ public access control:
test/server/typegen.ts#L5154
Error: Snapshot `typegen: swift w/ public access control 1` mismatched
- Expected
+ Received
@@ -370,6 +370,8 @@
public let Todo: TodosSelect
public enum CodingKeys: String, CodingKey {
case Todo = "todo"
}
}
+ }
+ public enum TestSchemaSchema {
}"
❯ test/server/typegen.ts:5154:16
|
test/index.test.ts > typegen: swift:
test/server/typegen.ts#L4769
Error: Snapshot `typegen: swift 1` mismatched
- Expected
+ Received
@@ -370,6 +370,8 @@
internal let Todo: TodosSelect
internal enum CodingKeys: String, CodingKey {
case Todo = "todo"
}
}
+ }
+ internal enum TestSchemaSchema {
}"
❯ test/server/typegen.ts:4769:16
|
test/index.test.ts > typegen: typescript w/ postgrestVersion:
test/server/typegen.ts#L3212
Error: Snapshot `typegen: typescript w/ postgrestVersion 1` mismatched
- Expected
+ Received
@@ -850,10 +850,11 @@
Returns: {
error: true
} & "Could not choose the best candidate function between: public.postgrest_unresolvable_function(a => int4), public.postgrest_unresolvable_function(a => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved"
}
| { Args: never; Returns: undefined }
+ test_func: { Args: { a: number; b: number }; Returns: number }
test_internal_query: { Args: never; Returns: undefined }
test_unnamed_row_composite: {
Args: { "": Database["public"]["Tables"]["users"]["Row"] }
Returns: Database["public"]["CompositeTypes"]["composite_type_with_array_attribute"]
SetofOptions: {
@@ -938,10 +939,27 @@
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
}
}
+ test_schema: {
+ Tables: {
+ [_ in never]: never
+ }
+ Views: {
+ [_ in never]: never
+ }
+ Functions: {
+ [_ in never]: never
+ }
+ Enums: {
+ [_ in never]: never
+ }
+ CompositeTypes: {
+ [_ in never]: never
+ }
+ }
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
@@ -1063,8 +1081,11 @@
public: {
Enums: {
meme_status: ["new", "old", "retired"],
user_status: ["ACTIVE", "INACTIVE"],
},
+ },
+ test_schema: {
+ Enums: {},
},
} as const
"
❯ test/server/typegen.ts:3212:16
|
test/index.test.ts > typegen: typescript w/ one-to-one relationships:
test/server/typegen.ts#L2135
Error: Snapshot `typegen: typescript w/ one-to-one relationships 1` mismatched
- Expected
+ Received
@@ -845,10 +845,11 @@
Returns: {
error: true
} & "Could not choose the best candidate function between: public.postgrest_unresolvable_function(a => int4), public.postgrest_unresolvable_function(a => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved"
}
| { Args: never; Returns: undefined }
+ test_func: { Args: { a: number; b: number }; Returns: number }
test_internal_query: { Args: never; Returns: undefined }
test_unnamed_row_composite: {
Args: { "": Database["public"]["Tables"]["users"]["Row"] }
Returns: Database["public"]["CompositeTypes"]["composite_type_with_array_attribute"]
SetofOptions: {
@@ -933,10 +934,27 @@
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
}
}
+ test_schema: {
+ Tables: {
+ [_ in never]: never
+ }
+ Views: {
+ [_ in never]: never
+ }
+ Functions: {
+ [_ in never]: never
+ }
+ Enums: {
+ [_ in never]: never
+ }
+ CompositeTypes: {
+ [_ in never]: never
+ }
+ }
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
@@ -1058,8 +1076,11 @@
public: {
Enums: {
meme_status: ["new", "old", "retired"],
user_status: ["ACTIVE", "INACTIVE"],
},
+ },
+ test_schema: {
+ Enums: {},
},
} as const
"
❯ test/server/typegen.ts:2135:16
|
test/index.test.ts > typegen w/ one-to-one relationships:
test/server/typegen.ts#L1058
Error: Snapshot `typegen w/ one-to-one relationships 1` mismatched
- Expected
+ Received
@@ -845,10 +845,11 @@
Returns: {
error: true
} & "Could not choose the best candidate function between: public.postgrest_unresolvable_function(a => int4), public.postgrest_unresolvable_function(a => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved"
}
| { Args: never; Returns: undefined }
+ test_func: { Args: { a: number; b: number }; Returns: number }
test_internal_query: { Args: never; Returns: undefined }
test_unnamed_row_composite: {
Args: { "": Database["public"]["Tables"]["users"]["Row"] }
Returns: Database["public"]["CompositeTypes"]["composite_type_with_array_attribute"]
SetofOptions: {
@@ -933,10 +934,27 @@
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
}
}
+ test_schema: {
+ Tables: {
+ [_ in never]: never
+ }
+ Views: {
+ [_ in never]: never
+ }
+ Functions: {
+ [_ in never]: never
+ }
+ Enums: {
+ [_ in never]: never
+ }
+ CompositeTypes: {
+ [_ in never]: never
+ }
+ }
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
@@ -1058,8 +1076,11 @@
public: {
Enums: {
meme_status: ["new", "old", "retired"],
user_status: ["ACTIVE", "INACTIVE"],
},
+ },
+ test_schema: {
+ Enums: {},
},
} as const
"
❯ test/server/typegen.ts:1058:16
|
test/index.test.ts > typegen: typescript:
test/server/typegen.ts#L6
Error: Snapshot `typegen: typescript 1` mismatched
- Expected
+ Received
@@ -820,10 +820,11 @@
Returns: {
error: true
} & "Could not choose the best candidate function between: public.postgrest_unresolvable_function(a => int4), public.postgrest_unresolvable_function(a => text). Try renaming the parameters or the function itself in the database so function overloading can be resolved"
}
| { Args: never; Returns: undefined }
+ test_func: { Args: { a: number; b: number }; Returns: number }
test_internal_query: { Args: never; Returns: undefined }
test_unnamed_row_composite: {
Args: { "": Database["public"]["Tables"]["users"]["Row"] }
Returns: Database["public"]["CompositeTypes"]["composite_type_with_array_attribute"]
SetofOptions: {
@@ -908,10 +909,27 @@
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
}
}
+ test_schema: {
+ Tables: {
+ [_ in never]: never
+ }
+ Views: {
+ [_ in never]: never
+ }
+ Functions: {
+ [_ in never]: never
+ }
+ Enums: {
+ [_ in never]: never
+ }
+ CompositeTypes: {
+ [_ in never]: never
+ }
+ }
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
@@ -1033,8 +1051,11 @@
public: {
Enums: {
meme_status: ["new", "old", "retired"],
user_status: ["ACTIVE", "INACTIVE"],
},
+ },
+ test_schema: {
+ Enums: {},
},
} as const
"
❯ test/server/typegen.ts:6:16
|
test/index.test.ts > retrieve, create, update, delete:
test/lib/functions.ts#L236
Error: Snapshot `retrieve, create, update, delete 10` mismatched
- Expected
+ Received
@@ -2,18 +2,18 @@
"data": {
"args": [
{
"has_default": false,
"mode": "in",
- "name": "a",
+ "name": "b",
"table_name": null,
"type_id": 21,
},
{
"has_default": false,
"mode": "in",
- "name": "b",
+ "name": "a",
"table_name": null,
"type_id": 21,
},
],
"argument_types": "a smallint, b smallint",
❯ test/lib/functions.ts:236:15
|