mysql.ts — drizzle-orm Source File
Architecture documentation for mysql.ts, a typescript file in the drizzle-orm codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6f601260_d07b_9482_ab4d_f54c7d2d0ad2["mysql.ts"] 0fabdd81_61c9_bb7c_7ddf_dde7a6071abc["index.ts"] 6f601260_d07b_9482_ab4d_f54c7d2d0ad2 --> 0fabdd81_61c9_bb7c_7ddf_dde7a6071abc e2db8cff_d688_4f7a_2494_cbda1c3623cc["reset"] 6f601260_d07b_9482_ab4d_f54c7d2d0ad2 --> e2db8cff_d688_4f7a_2494_cbda1c3623cc ee61d65c_3a91_eebf_195c_778a484baf2b["seed"] 6f601260_d07b_9482_ab4d_f54c7d2d0ad2 --> ee61d65c_3a91_eebf_195c_778a484baf2b 93ed9350_daa0_6c21_81a6_ed6b2a48bbdf["mysql-core"] 6f601260_d07b_9482_ab4d_f54c7d2d0ad2 --> 93ed9350_daa0_6c21_81a6_ed6b2a48bbdf da5f49c7_67eb_d6c6_2fa2_c3592f35dc62["mysql2"] 6f601260_d07b_9482_ab4d_f54c7d2d0ad2 --> da5f49c7_67eb_d6c6_2fa2_c3592f35dc62 style 6f601260_d07b_9482_ab4d_f54c7d2d0ad2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { MySqlColumn } from 'drizzle-orm/mysql-core';
import { int, mysqlTable, text } from 'drizzle-orm/mysql-core';
import { drizzle as mysql2Drizzle } from 'drizzle-orm/mysql2';
import { reset, seed } from '../src/index.ts';
const mysqlUsers = mysqlTable('users', {
id: int().primaryKey().autoincrement(),
name: text(),
inviteId: int('invite_id').references((): MySqlColumn => mysqlUsers.id),
});
{
const db = mysql2Drizzle('');
await seed(db, { users: mysqlUsers });
await reset(db, { users: mysqlUsers });
}
Domain
Source
Frequently Asked Questions
What does mysql.ts do?
mysql.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleSeed domain.
What does mysql.ts depend on?
mysql.ts imports 5 module(s): index.ts, mysql-core, mysql2, reset, seed.
Where is mysql.ts in the architecture?
mysql.ts is located at drizzle-seed/type-tests/mysql.ts (domain: DrizzleSeed, directory: drizzle-seed/type-tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free