Microdeck.tools 100 % en el navegador
Conversor de esquemas y código 100 % en tu navegador

Convertir MySQL CREATE TABLE a Drizzle mysqlTable Online

Transforma consultas DDL de tablas MySQL en esquemas mysqlTable de Drizzle ORM en TypeScript al instante.

SQL Dialect:
Target Output:
drizzle Output✓ Parsed 1 table (AST transpiler)
import { mysqlTable, int, varchar, timestamp } from "drizzle-orm/mysql-core";

export const tags = mysqlTable("tags", {
  id: int("id").autoincrement().primaryKey(),
  slug: varchar("slug", { length: 50 }).notNull().unique(),
  created_at: timestamp("created_at").defaultNow(),
});

¿Te ahorró tiempo esta herramienta? Ayuda a mantener Microdeck gratis y al día. Opcional · Desde $3.

Ejemplo de conversión: MySQL DDL → Drizzle mysqlTable

Entrada (MySQL DDL)
CREATE TABLE tags (
  id INT AUTO_INCREMENT PRIMARY KEY,
  slug VARCHAR(50) UNIQUE NOT NULL
);
Salida (Drizzle mysqlTable)
import { mysqlTable, int, varchar } from "drizzle-orm/mysql-core";

export const tags = mysqlTable("tags", {
  id: int("id").autoincrement().primaryKey(),
  slug: varchar("slug", { length: 50 }).notNull().unique(),
});

Preguntas frecuentes (FAQ)

¿Drizzle utiliza importaciones separadas para MySQL?

Sí, los constructores de esquemas para MySQL se importan desde el paquete drizzle-orm/mysql-core.

Otras conversiones populares de bases de datos

Apoyar a Microdeck

Totalmente opcional · Desde $3 · Sin cuenta

Elige un importe (USD):Seleccionado:$5

El aporte mínimo es de $3 USD.

Totalmente opcional · Desde $3 · Pago seguro en Gumroad.