db.ts — drizzle-orm Source File
Architecture documentation for db.ts, a typescript file in the drizzle-orm codebase. 6 imports, 11 dependents.
Entity Profile
Dependency Diagram
graph LR 9a56da77_7540_380c_f8b9_d8bde4914940["db.ts"] ccd8f141_31dd_df9e_0535_43efaea4d6db["better-sqlite3"] 9a56da77_7540_380c_f8b9_d8bde4914940 --> ccd8f141_31dd_df9e_0535_43efaea4d6db 8925695b_3773_48b7_06d1_2b60c9ed1057["bun:sqlite"] 9a56da77_7540_380c_f8b9_d8bde4914940 --> 8925695b_3773_48b7_06d1_2b60c9ed1057 624d2a88_860d_15ce_acab_25f738d1d62b["index.ts"] 9a56da77_7540_380c_f8b9_d8bde4914940 --> 624d2a88_860d_15ce_acab_25f738d1d62b 97c04174_1d72_67cf_2768_367a06e6ce2e["index.ts"] 9a56da77_7540_380c_f8b9_d8bde4914940 --> 97c04174_1d72_67cf_2768_367a06e6ce2e 0be89669_4401_6c9a_8b6c_37129ff5bf70["index.ts"] 9a56da77_7540_380c_f8b9_d8bde4914940 --> 0be89669_4401_6c9a_8b6c_37129ff5bf70 a825b012_51cd_9c20_a79e_1a4345972864["index.ts"] 9a56da77_7540_380c_f8b9_d8bde4914940 --> a825b012_51cd_9c20_a79e_1a4345972864 808dddbe_a2dc_8130_dac5_692f02af29ef["count.ts"] 808dddbe_a2dc_8130_dac5_692f02af29ef --> 9a56da77_7540_380c_f8b9_d8bde4914940 91cfe141_d94d_725f_35e0_6a96a9f02128["delete.ts"] 91cfe141_d94d_725f_35e0_6a96a9f02128 --> 9a56da77_7540_380c_f8b9_d8bde4914940 d773d7b2_5be0_bd52_0651_e26348aa2329["generated-columns.ts"] d773d7b2_5be0_bd52_0651_e26348aa2329 --> 9a56da77_7540_380c_f8b9_d8bde4914940 40aaa4f8_fa63_89fa_80a7_f806d7c20c5d["insert.ts"] 40aaa4f8_fa63_89fa_80a7_f806d7c20c5d --> 9a56da77_7540_380c_f8b9_d8bde4914940 0de803b9_c75e_e94e_019a_0c694228f60e["other.ts"] 0de803b9_c75e_e94e_019a_0c694228f60e --> 9a56da77_7540_380c_f8b9_d8bde4914940 0ff94ef8_b176_7009_9517_327e186dd2d1["select.ts"] 0ff94ef8_b176_7009_9517_327e186dd2d1 --> 9a56da77_7540_380c_f8b9_d8bde4914940 20d20271_669e_bb2d_537b_ef209a0ba63d["set-operators.ts"] 20d20271_669e_bb2d_537b_ef209a0ba63d --> 9a56da77_7540_380c_f8b9_d8bde4914940 37bb944f_c341_9402_552c_323dacda08be["subquery.ts"] 37bb944f_c341_9402_552c_323dacda08be --> 9a56da77_7540_380c_f8b9_d8bde4914940 style 9a56da77_7540_380c_f8b9_d8bde4914940 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import Database from 'better-sqlite3';
import { Database as BunDatabase } from 'bun:sqlite';
import { drizzle as drizzleBetterSqlite3 } from '~/better-sqlite3/index.ts';
import { drizzle as drizzleBun } from '~/bun-sqlite/index.ts';
import { drizzle as drizzleD1 } from '~/d1/index.ts';
import { drizzle as durableSqlite } from '~/durable-sqlite/index.ts';
const client = new Database(':memory:');
const bunClient = new BunDatabase(':memory:');
declare const d1: D1Database;
declare const durableSql: DurableObjectStorage;
export const db = drizzleBetterSqlite3(client);
export const bunDb = drizzleBun(bunClient);
export const d1Db = drizzleD1(d1);
export const durableSqliteDb = durableSqlite(durableSql);
Domain
Classes
Dependencies
- better-sqlite3
- bun:sqlite
- index.ts
- index.ts
- index.ts
- index.ts
Imported By
- drizzle-orm/type-tests/sqlite/count.ts
- drizzle-orm/type-tests/sqlite/delete.ts
- drizzle-orm/type-tests/sqlite/generated-columns.ts
- drizzle-orm/type-tests/sqlite/insert.ts
- drizzle-orm/type-tests/sqlite/other.ts
- drizzle-orm/type-tests/sqlite/select.ts
- drizzle-orm/type-tests/sqlite/set-operators.ts
- drizzle-orm/type-tests/sqlite/subquery.ts
- drizzle-orm/type-tests/sqlite/tables.ts
- drizzle-orm/type-tests/sqlite/update.ts
- drizzle-orm/type-tests/sqlite/with.ts
Source
Frequently Asked Questions
What does db.ts do?
db.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What does db.ts depend on?
db.ts imports 6 module(s): better-sqlite3, bun:sqlite, index.ts, index.ts, index.ts, index.ts.
What files import db.ts?
db.ts is imported by 11 file(s): count.ts, delete.ts, generated-columns.ts, insert.ts, other.ts, select.ts, set-operators.ts, subquery.ts, and 3 more.
Where is db.ts in the architecture?
db.ts is located at drizzle-orm/type-tests/sqlite/db.ts (domain: DrizzleORM, directory: drizzle-orm/type-tests/sqlite).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free