Skip to content

포매터 및 코드

JSON을 Drizzle ORM 스키마로

Drizzle pgTable definition with $inferSelect / $inferInsert.

Runs in your browser

편집자 노트

Understanding · A schema that's also a value.

이 심층 챕터는 현재 영어로만 제공됩니다. 위의 변환 도구는 귀하의 언어로 작동하지만, 긴 설명 글은 아직 번역되지 않았습니다.

자주 묻는 질문

Quick answers.

How are column types determined?

The generator maps JSON primitives to PostgreSQL types. Strings are mapped to `text`, numbers to `integer` or `numeric`, and booleans to `boolean`.

Does it support nested objects?

JSON columns are defined using the `jsonb` type. For relational structures, you should define separate tables and establish foreign keys manually.

Is the output compatible with TypeScript?

Yes. The generated code includes `InferSelectModel` and `InferInsertModel` types to provide full type-safety for your database queries.

Are my data structures shared with a server?

No. The transformation happens entirely within your browser's memory, so your private schema designs are never transmitted or stored.

사람들이 다음도 검색합니다.

관련 도구

More in this room.

모두 보기 포매터 및 코드