Skip to content

Commit 88bde9e

Browse files
L33gn21claude
andcommitted
test(exporter): add Prisma ORM snapshots
Generate the 60 missing Prisma insta snapshots so the Prisma backend is cross-compared with the other four ORMs through the shared orm_cases! matrix. The Orm::Prisma cases were already wired into every test; only the accepted snapshot files were absent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 2892b78 commit 88bde9e

60 files changed

Lines changed: 770 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model AllTypes {
6+
id Int @id
7+
small Int @db.SmallInt
8+
big BigInt
9+
real_num Float @db.Real
10+
double_num Float
11+
text_col String @db.Text
12+
bool_col Boolean
13+
date_col DateTime @db.Date
14+
time_col DateTime @db.Time
15+
ts_col DateTime @db.Timestamp
16+
tstz_col DateTime @db.Timestamptz
17+
interval_col String @db.Interval
18+
bytea_col Bytes
19+
uuid_col String @db.Uuid
20+
json_col Json
21+
inet_col String @db.Inet
22+
cidr_col String @db.Cidr
23+
macaddr_col String @db.Macaddr
24+
xml_col String @db.Xml
25+
26+
@@map("all_types")
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model Users {
6+
id Int @id
7+
display_name String? @db.Text
8+
9+
@@map("users")
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
/// User accounts table
6+
model Users {
7+
/// Primary key
8+
id Int @id @default(autoincrement())
9+
/// User email address
10+
email String @unique @db.Text
11+
name String? @db.Text
12+
13+
@@map("users")
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model ComplexTypes {
6+
id Int @id
7+
varchar_col String @db.VarChar(100)
8+
char_col String @db.Char(10)
9+
numeric_col Decimal @db.Decimal(10, 2)
10+
custom_col Unsupported("CUSTOM_TYPE")
11+
12+
@@map("complex_types")
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model OrderItems {
6+
order_id Int
7+
order Orders @relation(fields: [order_id], references: [id])
8+
product_id Int
9+
product Products @relation(fields: [product_id], references: [id])
10+
quantity Int
11+
12+
@@id([order_id, product_id])
13+
@@unique([order_id, product_id], name: "uq_order_items__order_product")
14+
@@index([order_id], name: "ix_order_items__order_id")
15+
@@map("order_items")
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model CompositeIndex {
6+
id Int @id
7+
tenant_id Int
8+
name String @db.Text
9+
10+
@@index([tenant_id, name], name: "idx_tenant_name")
11+
@@map("composite_index")
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model Accounts {
6+
id Int
7+
tenant_id BigInt
8+
9+
@@id([id, tenant_id])
10+
@@map("accounts")
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model Membership {
6+
tenant_id Int
7+
user_id Int
8+
role String @db.Text
9+
10+
@@id([tenant_id, user_id])
11+
@@map("membership")
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model AccountAliases {
6+
id Int @id
7+
tenant_id Int
8+
slug String @db.Text
9+
10+
@@unique([tenant_id, slug], name: "uq_account_aliases__tenant_slug")
11+
@@map("account_aliases")
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
source: crates/vespertide-exporter/src/tests/mod.rs
3+
expression: rendered
4+
---
5+
model CompositeUnique {
6+
id Int @id
7+
tenant_id Int
8+
name String @db.Text
9+
10+
@@unique([tenant_id, name], name: "uq_tenant_name")
11+
@@map("composite_unique")
12+
}

0 commit comments

Comments
 (0)