delete.ts — drizzle-orm Source File
Architecture documentation for delete.ts, a typescript file in the drizzle-orm codebase. 14 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR a48944c4_ea91_ad5b_6028_9e0244f4093d["delete.ts"] 835b37b8_5537_93b3_6081_c47371e60b11["common.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> 835b37b8_5537_93b3_6081_c47371e60b11 ae5f6568_e61c_e2e0_88cb_92eabc9ba98e["utils.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> ae5f6568_e61c_e2e0_88cb_92eabc9ba98e eddcad33_13f3_4404_771b_ef95ebab4084["extractUsedTable"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> eddcad33_13f3_4404_771b_ef95ebab4084 e6e44a09_c7fd_f1ce_bd2f_ab45da60f424["select.types.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> e6e44a09_c7fd_f1ce_bd2f_ab45da60f424 27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> 27705a9d_afe9_57dd_8c97_e52d8a67d426 6acf5c54_62a7_1da1_984a_7374cbb9983e["query-promise.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> 6acf5c54_62a7_1da1_984a_7374cbb9983e 591617cf_1376_c0a1_4ba1_ecd59ca13a5b["selection-proxy.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> 591617cf_1376_c0a1_4ba1_ecd59ca13a5b e0cf6f45_6d77_2e69_af64_53d1b57b73fe["dialect.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> e0cf6f45_6d77_2e69_af64_53d1b57b73fe bcc9bd6a_4fcb_dad1_57e0_d5511375fe53["session.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> bcc9bd6a_4fcb_dad1_57e0_d5511375fe53 744f5864_8de4_6d1f_dcfc_5ef4ae408c9a["table.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> 744f5864_8de4_6d1f_dcfc_5ef4ae408c9a be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd["sql.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd 4d55618d_fa7b_8e54_edb2_b85ae393d95b["subquery.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> 4d55618d_fa7b_8e54_edb2_b85ae393d95b 1fd6ac27_a0fb_a054_a358_c8766c3fcbd7["table.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> 1fd6ac27_a0fb_a054_a358_c8766c3fcbd7 ecce3253_1e75_a87f_27b3_ca87e81a3024["utils.ts"] a48944c4_ea91_ad5b_6028_9e0244f4093d --> ecce3253_1e75_a87f_27b3_ca87e81a3024 style a48944c4_ea91_ad5b_6028_9e0244f4093d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { entityKind } from '~/entity.ts';
import { QueryPromise } from '~/query-promise.ts';
import { SelectionProxyHandler } from '~/selection-proxy.ts';
import type { SingleStoreDialect } from '~/singlestore-core/dialect.ts';
import type {
AnySingleStoreQueryResultHKT,
PreparedQueryHKTBase,
PreparedQueryKind,
SingleStorePreparedQueryConfig,
SingleStoreQueryResultHKT,
SingleStoreQueryResultKind,
SingleStoreSession,
} from '~/singlestore-core/session.ts';
import type { SingleStoreTable } from '~/singlestore-core/table.ts';
import type { Placeholder, Query, SQL, SQLWrapper } from '~/sql/sql.ts';
import type { Subquery } from '~/subquery.ts';
import { Table } from '~/table.ts';
import type { ValueOrArray } from '~/utils.ts';
import type { SingleStoreColumn } from '../columns/common.ts';
import { extractUsedTable } from '../utils.ts';
import type { SelectedFieldsOrdered } from './select.types.ts';
export type SingleStoreDeleteWithout<
T extends AnySingleStoreDeleteBase,
TDynamic extends boolean,
K extends keyof T & string,
> = TDynamic extends true ? T
: Omit<
SingleStoreDeleteBase<
T['_']['table'],
T['_']['queryResult'],
T['_']['preparedQueryHKT'],
TDynamic,
T['_']['excludedMethods'] | K
>,
T['_']['excludedMethods'] | K
>;
export type SingleStoreDelete<
TTable extends SingleStoreTable = SingleStoreTable,
TQueryResult extends SingleStoreQueryResultHKT = AnySingleStoreQueryResultHKT,
TPreparedQueryHKT extends PreparedQueryHKTBase = PreparedQueryHKTBase,
> = SingleStoreDeleteBase<TTable, TQueryResult, TPreparedQueryHKT, true, never>;
export interface SingleStoreDeleteConfig {
where?: SQL | undefined;
limit?: number | Placeholder;
orderBy?: (SingleStoreColumn | SQL | SQL.Aliased)[];
table: SingleStoreTable;
returning?: SelectedFieldsOrdered;
withList?: Subquery[];
}
export type SingleStoreDeletePrepare<T extends AnySingleStoreDeleteBase> = PreparedQueryKind<
T['_']['preparedQueryHKT'],
SingleStorePreparedQueryConfig & {
execute: SingleStoreQueryResultKind<T['_']['queryResult'], never>;
iterator: never;
},
true
// ... (156 more lines)
Domain
Subdomains
Classes
Types
Dependencies
- common.ts
- dialect.ts
- entity.ts
- extractUsedTable
- query-promise.ts
- select.types.ts
- selection-proxy.ts
- session.ts
- sql.ts
- subquery.ts
- table.ts
- table.ts
- utils.ts
- utils.ts
Imported By
Source
Frequently Asked Questions
What does delete.ts do?
delete.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, QueryBuilders subdomain.
What does delete.ts depend on?
delete.ts imports 14 module(s): common.ts, dialect.ts, entity.ts, extractUsedTable, query-promise.ts, select.types.ts, selection-proxy.ts, session.ts, and 6 more.
What files import delete.ts?
delete.ts is imported by 1 file(s): dialect.ts.
Where is delete.ts in the architecture?
delete.ts is located at drizzle-orm/src/singlestore-core/query-builders/delete.ts (domain: DrizzleORM, subdomain: QueryBuilders, directory: drizzle-orm/src/singlestore-core/query-builders).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free