SQL to TypeORM Entity Generator
Convert SQL CREATE TABLE statements into TypeScript TypeORM entity classes with decorators for NestJS and Node.js.
At a glance
SQL to TypeORM Entity Generator is a free developer utility that transforms SQL CREATE TABLE DDL statements into TypeScript TypeORM entity classes. It generates @Entity(), @PrimaryGeneratedColumn(), @Column(), @CreateDateColumn(), and @UpdateDateColumn() decorators with accurate types 100% client-side in browser memory.
100% Client-Side SQL to TypeORM Entity Generator
Zero Server UploadsConvert raw SQL CREATE TABLE DDL queries into TypeScript TypeORM entity classes with decorators (@Entity, @PrimaryGeneratedColumn, @Column, @CreateDateColumn) directly in browser memory.
Why Use This SQL to TypeORM Entity Generator?
How to Use SQL to TypeORM Entity Generator
Input SQL DDL
Paste your SQL CREATE TABLE statements or upload a .sql file into the input pane.
Configure Options
Toggle optional entity constructor generation or TypeORM import statements.
Copy TypeORM Entity
Instantly preview, copy, or download the generated TypeScript TypeORM entity class code.
SQL to TypeORM Conversion example
Demonstrates converting an SQL CREATE TABLE statement into a TypeScript TypeORM entity class with decorators.
CREATE TABLE users ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';
@Entity('users')
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column({ type: 'varchar', length: 255 })
name: string;
@CreateDateColumn()
createdAt: Date;
}
Technical Specifications & Engine Details
| Specification | Details |
|---|---|
| Supported Formats | SQL, TEXT → TYPESCRIPT, TEXT |
| Execution Mode | 100% Client-Side In-Browser (client) |
| Browser Requirements | Modern browser with JavaScript enabled. |
| Performance Constraints | Runs 100% client-side in browser memory. Bounded only by local device RAM. |
100% Client-Side Privacy Guarantee
Your database DDL statements remain strictly on your local device. Zero data is transmitted to external servers.
Frequently Asked Questions
Does SQL to TypeORM Entity Generator require an active database connection?
Does it work with NestJS?
Is my schema code secure?
Methodology
This tool runs entirely in your browser. The example above shows a representative input and the result it produces.
Last updated .