@@ -333,31 +333,31 @@ test('typegen: typescript', async () => {
333
333
Functions: {
334
334
blurb: {
335
335
Args: {
336
- "": unknown
336
+ "": Database["public"]["Tables"]["todos"]["Row"]
337
337
}
338
338
Returns: string
339
339
}
340
340
blurb_varchar: {
341
341
Args: {
342
- "": unknown
342
+ "": Database["public"]["Tables"]["todos"]["Row"]
343
343
}
344
344
Returns: string
345
345
}
346
346
details_is_long: {
347
347
Args: {
348
- "": unknown
348
+ "": Database["public"]["Tables"]["todos"]["Row"]
349
349
}
350
350
Returns: boolean
351
351
}
352
352
details_length: {
353
353
Args: {
354
- "": unknown
354
+ "": Database["public"]["Tables"]["todos"]["Row"]
355
355
}
356
356
Returns: number
357
357
}
358
358
details_words: {
359
359
Args: {
360
- "": unknown
360
+ "": Database["public"]["Tables"]["todos"]["Row"]
361
361
}
362
362
Returns: string[]
363
363
}
@@ -424,6 +424,9 @@ test('typegen: typescript', async () => {
424
424
composite_type_with_array_attribute: {
425
425
my_text_array: string[] | null
426
426
}
427
+ composite_type_with_record_attribute: {
428
+ todo: Database["public"]["Tables"]["todos"]["Row"] | null
429
+ }
427
430
}
428
431
}
429
432
}
@@ -877,31 +880,31 @@ test('typegen w/ one-to-one relationships', async () => {
877
880
Functions: {
878
881
blurb: {
879
882
Args: {
880
- "": unknown
883
+ "": Database["public"]["Tables"]["todos"]["Row"]
881
884
}
882
885
Returns: string
883
886
}
884
887
blurb_varchar: {
885
888
Args: {
886
- "": unknown
889
+ "": Database["public"]["Tables"]["todos"]["Row"]
887
890
}
888
891
Returns: string
889
892
}
890
893
details_is_long: {
891
894
Args: {
892
- "": unknown
895
+ "": Database["public"]["Tables"]["todos"]["Row"]
893
896
}
894
897
Returns: boolean
895
898
}
896
899
details_length: {
897
900
Args: {
898
- "": unknown
901
+ "": Database["public"]["Tables"]["todos"]["Row"]
899
902
}
900
903
Returns: number
901
904
}
902
905
details_words: {
903
906
Args: {
904
- "": unknown
907
+ "": Database["public"]["Tables"]["todos"]["Row"]
905
908
}
906
909
Returns: string[]
907
910
}
@@ -968,6 +971,9 @@ test('typegen w/ one-to-one relationships', async () => {
968
971
composite_type_with_array_attribute: {
969
972
my_text_array: string[] | null
970
973
}
974
+ composite_type_with_record_attribute: {
975
+ todo: Database["public"]["Tables"]["todos"]["Row"] | null
976
+ }
971
977
}
972
978
}
973
979
}
@@ -1421,31 +1427,31 @@ test('typegen: typescript w/ one-to-one relationships', async () => {
1421
1427
Functions: {
1422
1428
blurb: {
1423
1429
Args: {
1424
- "": unknown
1430
+ "": Database["public"]["Tables"]["todos"]["Row"]
1425
1431
}
1426
1432
Returns: string
1427
1433
}
1428
1434
blurb_varchar: {
1429
1435
Args: {
1430
- "": unknown
1436
+ "": Database["public"]["Tables"]["todos"]["Row"]
1431
1437
}
1432
1438
Returns: string
1433
1439
}
1434
1440
details_is_long: {
1435
1441
Args: {
1436
- "": unknown
1442
+ "": Database["public"]["Tables"]["todos"]["Row"]
1437
1443
}
1438
1444
Returns: boolean
1439
1445
}
1440
1446
details_length: {
1441
1447
Args: {
1442
- "": unknown
1448
+ "": Database["public"]["Tables"]["todos"]["Row"]
1443
1449
}
1444
1450
Returns: number
1445
1451
}
1446
1452
details_words: {
1447
1453
Args: {
1448
- "": unknown
1454
+ "": Database["public"]["Tables"]["todos"]["Row"]
1449
1455
}
1450
1456
Returns: string[]
1451
1457
}
@@ -1512,6 +1518,9 @@ test('typegen: typescript w/ one-to-one relationships', async () => {
1512
1518
composite_type_with_array_attribute: {
1513
1519
my_text_array: string[] | null
1514
1520
}
1521
+ composite_type_with_record_attribute: {
1522
+ todo: Database["public"]["Tables"]["todos"]["Row"] | null
1523
+ }
1515
1524
}
1516
1525
}
1517
1526
}
@@ -1803,6 +1812,10 @@ test('typegen: go', async () => {
1803
1812
1804
1813
type PublicCompositeTypeWithArrayAttribute struct {
1805
1814
MyTextArray interface{} \`json:"my_text_array"\`
1815
+ }
1816
+
1817
+ type PublicCompositeTypeWithRecordAttribute struct {
1818
+ Todo interface{} \`json:"todo"\`
1806
1819
}"
1807
1820
` )
1808
1821
} )
@@ -2144,6 +2157,12 @@ test('typegen: swift', async () => {
2144
2157
case MyTextArray = "my_text_array"
2145
2158
}
2146
2159
}
2160
+ internal struct CompositeTypeWithRecordAttribute: Codable, Hashable, Sendable {
2161
+ internal let Todo: TodosSelect
2162
+ internal enum CodingKeys: String, CodingKey {
2163
+ case Todo = "todo"
2164
+ }
2165
+ }
2147
2166
}"
2148
2167
` )
2149
2168
} )
@@ -2489,6 +2508,12 @@ test('typegen: swift w/ public access control', async () => {
2489
2508
case MyTextArray = "my_text_array"
2490
2509
}
2491
2510
}
2511
+ public struct CompositeTypeWithRecordAttribute: Codable, Hashable, Sendable {
2512
+ public let Todo: TodosSelect
2513
+ public enum CodingKeys: String, CodingKey {
2514
+ case Todo = "todo"
2515
+ }
2516
+ }
2492
2517
}"
2493
2518
` )
2494
2519
} )
0 commit comments