update.ts — drizzle-orm Source File
Architecture documentation for update.ts, a typescript file in the drizzle-orm codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR bfd52db3_60a3_dfc2_584e_351f51cdf63e["update.ts"] 0e3c50de_fbb6_eb17_22a4_8121934f6fdf["db.ts"] bfd52db3_60a3_dfc2_584e_351f51cdf63e --> 0e3c50de_fbb6_eb17_22a4_8121934f6fdf 19c69e5c_3d0f_1262_b345_f1446e5c039c["tables.ts"] bfd52db3_60a3_dfc2_584e_351f51cdf63e --> 19c69e5c_3d0f_1262_b345_f1446e5c039c caa52a1a_16f9_3a9a_258d_b90f0234f2fd["users"] bfd52db3_60a3_dfc2_584e_351f51cdf63e --> caa52a1a_16f9_3a9a_258d_b90f0234f2fd 25b05299_f48f_bceb_01ca_1343d330a8f7["utils.ts"] bfd52db3_60a3_dfc2_584e_351f51cdf63e --> 25b05299_f48f_bceb_01ca_1343d330a8f7 1da0a48e_f7fe_5ea4_cee2_3ed7d3f39f31["index.ts"] bfd52db3_60a3_dfc2_584e_351f51cdf63e --> 1da0a48e_f7fe_5ea4_cee2_3ed7d3f39f31 448167d3_8d18_0b48_8b09_8fb7e076b05f["session.ts"] bfd52db3_60a3_dfc2_584e_351f51cdf63e --> 448167d3_8d18_0b48_8b09_8fb7e076b05f be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd["sql.ts"] bfd52db3_60a3_dfc2_584e_351f51cdf63e --> be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd style bfd52db3_60a3_dfc2_584e_351f51cdf63e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { type Equal, Expect } from 'type-tests/utils.ts';
import type { MySqlUpdate } from '~/mysql-core/index.ts';
import type { MySqlRawQueryResult } from '~/mysql2/session.ts';
import { sql } from '~/sql/sql.ts';
import { db } from './db.ts';
import { users } from './tables.ts';
{
function dynamic<T extends MySqlUpdate>(qb: T) {
return qb.where(sql``);
}
const qbBase = db.update(users).set({}).$dynamic();
const qb = dynamic(qbBase);
const result = await qb;
Expect<Equal<MySqlRawQueryResult, typeof result>>;
}
{
db
.update(users)
.set({})
.where(sql``)
// @ts-expect-error method was already called
.where(sql``);
}
{
db.update(users).set({}).where(sql``).limit(1).orderBy(sql``);
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does update.ts do?
update.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, SQLDialects subdomain.
What functions are defined in update.ts?
update.ts defines 1 function(s): dynamic.
What does update.ts depend on?
update.ts imports 7 module(s): db.ts, index.ts, session.ts, sql.ts, tables.ts, users, utils.ts.
Where is update.ts in the architecture?
update.ts is located at drizzle-orm/type-tests/mysql/update.ts (domain: DrizzleORM, subdomain: SQLDialects, directory: drizzle-orm/type-tests/mysql).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free