a11y.skipToMainContent
1

SQL to ORM

Paste SQL CREATE TABLE ifadeleri ve onları Prisma şemasına dönüştürür, TypeORM varlığına veya modelleme model tanımlarına dönüştürür.

SQL CREATE TABLE
Generated ORM Model
More options
Was this tool helpful?
Send output to:
Advertisement

How to use SQL to ORM

  1. SQL CREATE TABLE ifadesinizi yapıştırın.
  2. Hedefi seçin ORM (Prisma, TypeORM veya Sequelize).
  3. Oluşturulan model kodunu görün.
  4. Kodu projenize kopyalayın.

What is SQL to ORM?

ORM dönüştürücüye bir SQL CREATE TABLE ifadelerini alır ve popüler ORMs için eşdeğer model tanımlarını üretir. SQL veri türlerini uygun ORM türlerine haritalar, ilişkileri korur ve uygun annotasyonlar yaratır.

Bu araç, Prisma, TypeORM ve Sequelize'yi destekler. birincil anahtarlar, yabancı anahtarlar, indeksler, varsayılan değerler ve kısıtlamalarla ilgilidir. Anında dönüşüm ile manuel model oluşturma saatleri tasarruf edin.

Advertisement

FAQ

Hangi ORM'ler destekleniyor?
Prisma, TypeORM ve Sequelize şu anda destekleniyor. Daha fazla ORMs gelecekte eklenebilir.
İlişkiler korunmuş mu?
Evet - yabancı anahtar ilişkiler uygun ORM ilişki sözlüğüne dönüştürülür.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement