feat(typegen): add swift template #1459
Annotations
3 errors
test/index.test.ts > list:
test/lib/tables.ts#L33
Error: Snapshot `list 9` mismatched
- Expected
+ Received
@@ -71,23 +71,23 @@
"table_name": "users",
},
],
"relationships": [
{
- "constraint_name": "user_details_user_id_fkey",
- "source_column_name": "user_id",
+ "constraint_name": "todos_user-id_fkey",
+ "source_column_name": "user-id",
"source_schema": "public",
- "source_table_name": "user_details",
+ "source_table_name": "todos",
"target_column_name": "id",
"target_table_name": "users",
"target_table_schema": "public",
},
{
- "constraint_name": "todos_user-id_fkey",
- "source_column_name": "user-id",
+ "constraint_name": "user_details_user_id_fkey",
+ "source_column_name": "user_id",
"source_schema": "public",
- "source_table_name": "todos",
+ "source_table_name": "user_details",
"target_column_name": "id",
"target_table_name": "users",
"target_table_schema": "public",
},
],
❯ test/lib/tables.ts:33:6
|
test/index.test.ts > list without columns:
test/lib/tables.ts#L156
Error: Snapshot `list without columns 2` mismatched
- Expected
+ Received
@@ -12,23 +12,23 @@
"table_name": "users",
},
],
"relationships": [
{
- "constraint_name": "user_details_user_id_fkey",
- "source_column_name": "user_id",
+ "constraint_name": "todos_user-id_fkey",
+ "source_column_name": "user-id",
"source_schema": "public",
- "source_table_name": "user_details",
+ "source_table_name": "todos",
"target_column_name": "id",
"target_table_name": "users",
"target_table_schema": "public",
},
{
- "constraint_name": "todos_user-id_fkey",
- "source_column_name": "user-id",
+ "constraint_name": "user_details_user_id_fkey",
+ "source_column_name": "user_id",
"source_schema": "public",
- "source_table_name": "todos",
+ "source_table_name": "user_details",
"target_column_name": "id",
"target_table_name": "users",
"target_table_schema": "public",
},
],
❯ test/lib/tables.ts:156:6
|
Test
Process completed with exit code 1.
|