index.ts — drizzle-orm Source File
Architecture documentation for index.ts, a typescript file in the drizzle-orm codebase. 8 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6946043a_dab4_e149_5ebe_24dacb75bdf1["index.ts"] 0bbf0c75_4416_6c62_3575_2808eff71cb3["migrations.js"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> 0bbf0c75_4416_6c62_3575_2808eff71cb3 07a8aff3_2ca2_7ac8_e9e6_21e0764198aa["chai"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> 07a8aff3_2ca2_7ac8_e9e6_21e0764198aa 48017cb9_2d42_b6cc_71fa_57c160595fa8["cloudflare:workers"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> 48017cb9_2d42_b6cc_71fa_57c160595fa8 690f7dfc_0aea_9ee8_d6e7_26bbb3689031["drizzle-orm"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> 690f7dfc_0aea_9ee8_d6e7_26bbb3689031 5b944186_8c6f_5335_ba18_8080f8f1afd0["durable-sqlite"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> 5b944186_8c6f_5335_ba18_8080f8f1afd0 da7ac986_db52_7fd7_9e53_b3f810d24abd["migrator"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> da7ac986_db52_7fd7_9e53_b3f810d24abd 25248a9d_ba06_2b33_4421_8575da2f9c34["sqlite-core"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> 25248a9d_ba06_2b33_4421_8575da2f9c34 be4f1824_b255_ba95_9daf_35a679c997bf["utils"] 6946043a_dab4_e149_5ebe_24dacb75bdf1 --> be4f1824_b255_ba95_9daf_35a679c997bf style 6946043a_dab4_e149_5ebe_24dacb75bdf1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/// <reference types="@cloudflare/workers-types" />
import { expect } from 'chai';
import { DurableObject } from 'cloudflare:workers';
import {
and,
asc,
avg,
avgDistinct,
count,
countDistinct,
eq,
exists,
getTableColumns,
gt,
gte,
inArray,
lt,
max,
min,
Name,
notInArray,
sql,
sum,
sumDistinct,
} from 'drizzle-orm';
import { drizzle, type DrizzleSqliteDODatabase } from 'drizzle-orm/durable-sqlite';
import { migrate } from 'drizzle-orm/durable-sqlite/migrator';
import {
alias,
type BaseSQLiteDatabase,
blob,
except,
getViewConfig,
int,
integer,
intersect,
numeric,
primaryKey,
sqliteTable,
sqliteTableCreator,
sqliteView,
text,
union,
unionAll,
} from 'drizzle-orm/sqlite-core';
import { type Equal, Expect } from '~/utils';
import migrations from './drizzle/migrations';
export const usersTable = sqliteTable('users', {
id: integer('id').primaryKey(),
name: text('name').notNull(),
verified: integer('verified', { mode: 'boolean' }).notNull().default(false),
json: blob('json', { mode: 'json' }).$type<string[]>(),
createdAt: integer('created_at', { mode: 'timestamp' }).notNull().default(sql`strftime('%s', 'now')`),
});
export const usersOnUpdate = sqliteTable('users_on_update', {
id: integer('id').primaryKey({ autoIncrement: true }),
name: text('name').notNull(),
// ... (3560 more lines)
Domain
Subdomains
Classes
Dependencies
- chai
- cloudflare:workers
- drizzle-orm
- durable-sqlite
- migrations.js
- migrator
- sqlite-core
- utils
Source
Frequently Asked Questions
What does index.ts do?
index.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 index.ts?
index.ts defines 4 function(s): default.fetch, pkExampleTable, setupAggregateFunctionsTest, setupSetOperationTest.
What does index.ts depend on?
index.ts imports 8 module(s): chai, cloudflare:workers, drizzle-orm, durable-sqlite, migrations.js, migrator, sqlite-core, utils.
Where is index.ts in the architecture?
index.ts is located at integration-tests/tests/sqlite/durable-objects/index.ts (domain: DrizzleORM, subdomain: SQLDialects, directory: integration-tests/tests/sqlite/durable-objects).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free