index.ts — drizzle-orm Source File
Architecture documentation for index.ts, a typescript file in the drizzle-orm codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 5425e03c_cd8c_825c_2738_101d93d1ae2a["index.ts"] c2197456_e6cc_1614_c507_f516244187b1["checker.ts"] 5425e03c_cd8c_825c_2738_101d93d1ae2a --> c2197456_e6cc_1614_c507_f516244187b1 a87d49b4_c045_d938_1292_d565a3172d59["analyzeImports"] 5425e03c_cd8c_825c_2738_101d93d1ae2a --> a87d49b4_c045_d938_1292_d565a3172d59 9362aba8_233e_0658_3468_ed6908784940["ChainLink"] 5425e03c_cd8c_825c_2738_101d93d1ae2a --> 9362aba8_233e_0658_3468_ed6908784940 0f00c7dd_5eba_f1f8_c559_a99431086500["chalk"] 5425e03c_cd8c_825c_2738_101d93d1ae2a --> 0f00c7dd_5eba_f1f8_c559_a99431086500 style 5425e03c_cd8c_825c_2738_101d93d1ae2a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import chalk from 'chalk';
import { analyzeImports, ChainLink } from './checker';
const issues = analyzeImports({
basePath: './drizzle-kit',
localPaths: ['src'],
whiteList: [
'@drizzle-team/brocli',
'json-diff',
'path',
'fs',
'fs/*',
'url',
'zod',
'node:*',
'hono',
'glob',
'hono/*',
'hono/**/*',
'@hono/*',
'crypto',
'hanji',
],
entry: './drizzle-kit/src/cli/index.ts',
logger: true,
ignoreTypes: true,
}).issues;
const chainToString = (chains: ChainLink[]) => {
if (chains.length === 0) throw new Error();
let out = chains[0]!.file + '\n';
let indentation = 0;
for (let chain of chains) {
out += ' '.repeat(indentation)
+ '└'
+ chain.import
+ ` ${chalk.gray(chain.file)}\n`;
indentation += 1;
}
return out;
};
console.log();
for (const issue of issues) {
console.log(chalk.red(issue.imports.map((it) => it.name).join('\n')));
console.log(issue.accessChains.map((it) => chainToString(it)).join('\n'));
}
Domain
Subdomains
Functions
Dependencies
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, RelationalQuery subdomain.
What functions are defined in index.ts?
index.ts defines 1 function(s): chainToString.
What does index.ts depend on?
index.ts imports 4 module(s): ChainLink, analyzeImports, chalk, checker.ts.
Where is index.ts in the architecture?
index.ts is located at drizzle-kit/imports-checker/index.ts (domain: DrizzleORM, subdomain: RelationalQuery, directory: drizzle-kit/imports-checker).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free