a11y.skipToMainContent
1

SQL から ORM

SQL CREATE TABLE ステートメントを貼り付け、Prisma スキーマ、TypeORM のエンティティティ、またはモデルの定義を分離します.

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 ステートメントを貼り付けます.
  2. 対象となるORM(Prisma、TypeORM、Sequelize)を選択します.
  3. 生成されたモデルコードを表示します.
  4. コードをプロジェクトにコピーします.

SQL から ORMとは?

ORM コンバーターへの SQL は SQL CREATE TABLE ステートメントをとり、一般的な ORM の同等のモデル定義を生成します。 適切なORMタイプにSQLデータタイプをマッピングし、関係を保ち、適切なアノテーションを生成します。

このツールは、プリスマ、TypeORM、Sequelizeをサポートしています。 主キー、外部キー、インデックス、デフォルト値、制約を処理する。 手動モデル作成の時間を即時変換で保存します。

Advertisement

FAQ

どの ORM がサポートされていますか?
Prisma, TypeORM, Sequelize が現在サポートされています。 今後、より多くのORMを追加することができます.
関係は保存されていますか?
はい。外部キー関係は、適切なORM関係の構文に変換されます.

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