-
-
Notifications
You must be signed in to change notification settings - Fork 8
feat(exporter): Prisma ORM exporter 추가 (PR #151 이어받음) #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 38 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
2892b78
feat(exporter): add Prisma ORM exporter
L33gn21 88bde9e
test(exporter): add Prisma ORM snapshots
L33gn21 0c6f27b
refactor(exporter): split Prisma exporter into mod/render/types/enums
L33gn21 dcbff76
fix(exporter): correct Prisma constraint names, integer-enum defaults…
L33gn21 c93b6aa
fix(exporter): drop Prisma provider/clientOutput config, make relatio…
yyuneu be8b305
fix(exporter): build Prisma test config via deserialization instead o…
yyuneu 4ba12f2
test(exporter): accept stale Prisma snapshots predating dcbff76's fixes
yyuneu cd560ef
fix(exporter): Prisma에 존재하지 않는 @db.Interval/@db.Cidr/@db.Macaddr 속성 제거
yyuneu 891f8dc
style: 이전 커밋에서 누락된 cargo fmt 적용
yyuneu 3990cb2
feat(exporter): Prisma 스키마 생성에 백엔드별 provider/@db.* 매핑 추가
yyuneu 2f4095b
feat(cli): export --orm prisma에 --backend(-b) 플래그 추가
yyuneu ce6d60d
fix(exporter): 최신 Prisma 형식에 맞춰 datasource url 줄 제거
yyuneu 803da81
chore: 릴리즈 버전 산정용 changepack 추가 (exporter/config/cli Minor)
yyuneu a69138e
test: 뮤테이션 테스트 대응
yyuneu f68a8bd
test: 커버리지 보정
yyuneu 9e187a4
Merge branch 'main' into feat/prisma-exporter
yyuneu 911c22f
chore: RustSec 권고 대응
yyuneu d4ea60b
test: ERD 커버리지 보정
yyuneu 12d239c
style(cli): export 주석의 깨진 화살표 문자 복원
yyuneu 925dd80
refactor(config): Prisma relationMode 옵션 및 PrismaConfig 제거
yyuneu 7f25710
refactor(exporter): PrismaProvider를 DatabaseBackend로 통합
yyuneu de11f22
test(cli): export Prisma 테스트를 tests 모듈로 분리
yyuneu 158dd43
refactor(exporter): Prisma 스키마 생성 백엔드 중립화
yyuneu 115b585
feat(exporter): Prisma uuid 필드에 MySQL binary(16) 주석 추가
yyuneu aadc00e
chore: clippy 1.97 신규 린트 대응
yyuneu 3173c60
test: 뮤테이션 테스트 대응
yyuneu 5048a6f
refactor(exporter): Prisma PascalCase 변환을 vespertide-naming으로 통합
yyuneu 8cdb962
fix(exporter): Prisma 미래 타입 분기를 unreachable로 정렬
yyuneu 081f593
refactor(exporter): Prisma uuid 주석 제거
yyuneu 8751b39
refactor(exporter): Prisma 출력에서 datasource/generator 블록 제거
yyuneu eaff5ac
refactor(naming): SCREAMING_SNAKE 변환 헬퍼 추가 및 ORM 백엔드 통합
yyuneu 8240d8d
test(exporter): numeric default 픽스처를 숫자형으로 교정
yyuneu 332938a
test: 다중 입력 테스트를 rstest 케이스로 전환
yyuneu 3134c37
test(exporter): Prisma default/enum 렌더링 계약 테스트 보강
yyuneu ea6319f
fix(exporter): Prisma 필드명 충돌·동명 enum 병합·default 따옴표 절단 수정
yyuneu 373196f
fix(exporter): 식별자로 쓸 수 없는 테이블·컬럼·enum·관계 이름을 백엔드별 규칙으로 정규화
yyuneu 0a01b89
docs(exporter): ORM 개수 표기를 5개로 맞추고 충돌 픽스처 주석 정정
yyuneu 49b0169
fix(exporter): Prisma 모델 수준 제약이 참조하는 컬럼 이름도 정규화
yyuneu 3dd63f1
refactor(exporter): 리뷰 반영 — ERD 래퍼 제거·Prisma 스키마 테스트 스냅샷 전환
yyuneu c587be6
docs(exporter): 백엔드 전용 진입점의 스냅샷 테스트 예외를 정책에 명시
yyuneu 59dc670
fix(exporter): Prisma 복합 FK 관계 방출
yyuneu c7db9ae
fix(exporter): Prisma 출력을 SQL 계층 산출물과 일치 — 참조 액션 명시, 인덱스 이름 map
yyuneu f52edb4
docs: ORM Export 목록에 JPA·Prisma 반영
yyuneu e926045
refactor(exporter,cli): 리뷰 반영 — OrmArg 제거·확장자 impl 통합·Prisma 중복 구조체 제거
yyuneu b3c17fa
refactor(exporter): --orm 값 규칙을 Orm 전체 변형에 균일 적용
yyuneu c91cdd6
refactor(exporter,cli): 소유값에 걸린 불필요한 clone 제거
yyuneu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"changes":{"crates/vespertide-naming/Cargo.toml":"Minor","crates/vespertide-exporter/Cargo.toml":"Minor","crates/vespertide-cli/Cargo.toml":"Minor"},"note":"Prisma ORM exporter 추가","date":"2026-07-09T14:25:30.6412773Z"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런함수는 좋지 않아보입니다, 차라리 vespertide_naming에 있어야할 것 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
래퍼를 지우고 호출부(dot.rs, mermaid.rs)가 vespertide_naming::sanitize_identifier를 직접 호출하도록 바꿨습니다. 다른 백엔드들이 이미 쓰는 형태와 같게 작성했습니다. 래퍼에 붙어 있던 단위 테스트 4개는 vespertide-naming 쪽 rstest가 같은 케이스를 커버해서 함께 정리했고, 빠져 있던 내부 숫자 보존 케이스 하나만 그쪽 rstest에 추가했습니다.