Microdeck.tools 100% In-Browser
Schema & Code Converter 100% In-Browser

Convert MySQL CREATE TABLE to Drizzle mysqlTable Online

Transform MySQL table DDL queries into TypeScript Drizzle mysqlTable schemas.

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(),
});

Did this converter save you time? Completely optional · From $3 — keeps Microdeck fast and free.

ADVERTISEMENT
Privacy-Friendly Sponsor Unit
Contextual tech, developer, & creator tools sponsorship slot. Zero intrusive tracking.

Sample Conversion: MySQL DDL → Drizzle mysqlTable

Input (MySQL DDL)
CREATE TABLE tags (
  id INT AUTO_INCREMENT PRIMARY KEY,
  slug VARCHAR(50) UNIQUE NOT NULL
);
Output (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(),
});

Frequently Asked Questions

Does Drizzle have separate imports for MySQL?

Yes, MySQL schema builders are imported from drizzle-orm/mysql-core.

Other Popular Database Schema Conversions

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD): Selected: $5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.