Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2892b78
feat(exporter): add Prisma ORM exporter
L33gn21 Jun 20, 2026
88bde9e
test(exporter): add Prisma ORM snapshots
L33gn21 Jun 20, 2026
0c6f27b
refactor(exporter): split Prisma exporter into mod/render/types/enums
L33gn21 Jun 22, 2026
dcbff76
fix(exporter): correct Prisma constraint names, integer-enum defaults…
L33gn21 Jun 23, 2026
c93b6aa
fix(exporter): drop Prisma provider/clientOutput config, make relatio…
yyuneu Jul 6, 2026
be8b305
fix(exporter): build Prisma test config via deserialization instead o…
yyuneu Jul 6, 2026
4ba12f2
test(exporter): accept stale Prisma snapshots predating dcbff76's fixes
yyuneu Jul 6, 2026
cd560ef
fix(exporter): Prisma에 존재하지 않는 @db.Interval/@db.Cidr/@db.Macaddr 속성 제거
yyuneu Jul 9, 2026
891f8dc
style: 이전 커밋에서 누락된 cargo fmt 적용
yyuneu Jul 9, 2026
3990cb2
feat(exporter): Prisma 스키마 생성에 백엔드별 provider/@db.* 매핑 추가
yyuneu Jul 9, 2026
2f4095b
feat(cli): export --orm prisma에 --backend(-b) 플래그 추가
yyuneu Jul 9, 2026
ce6d60d
fix(exporter): 최신 Prisma 형식에 맞춰 datasource url 줄 제거
yyuneu Jul 9, 2026
803da81
chore: 릴리즈 버전 산정용 changepack 추가 (exporter/config/cli Minor)
yyuneu Jul 9, 2026
a69138e
test: 뮤테이션 테스트 대응
yyuneu Jul 9, 2026
f68a8bd
test: 커버리지 보정
yyuneu Jul 9, 2026
9e187a4
Merge branch 'main' into feat/prisma-exporter
yyuneu Jul 11, 2026
911c22f
chore: RustSec 권고 대응
yyuneu Jul 11, 2026
d4ea60b
test: ERD 커버리지 보정
yyuneu Jul 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changepacks/changepack_log_vKVGmtRxkfW3nE7rIhMcz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"changes":{"crates/vespertide-exporter/Cargo.toml":"Minor","crates/vespertide-config/Cargo.toml":"Minor","crates/vespertide-cli/Cargo.toml":"Minor"},"note":"Prisma ORM exporter 추가","date":"2026-07-09T14:25:30.6412773Z"}
31 changes: 16 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions crates/vespertide-cli/src/commands/erd/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,24 @@ fn malformed_inline_fk_reference_is_ignored() {
assert!(collect_foreign_key_relations(&[users, bad]).is_empty());
}

#[test]
fn table_level_fk_to_missing_table_is_ignored() {
let mut orphan = table(
"orphan",
vec![primary_key("id", integer()), column("ghost_id", integer())],
);
orphan.constraints.push(TableConstraint::ForeignKey {
name: Some("fk_orphan_ghost".into()),
columns: vec!["ghost_id".into()],
ref_table: "ghost".into(),
ref_columns: vec!["id".into()],
on_delete: None,
on_update: None,
orphan_strategy: Default::default(),
});
assert!(collect_foreign_key_relations(&[orphan]).is_empty());
}

#[test]
fn inline_unique_group_variants_drive_one_to_one_detection() {
let users = normalize(&table("users", vec![primary_key("id", integer())]));
Expand Down
Loading