Home / File/ select.ts — drizzle-orm Source File

select.ts — drizzle-orm Source File

Architecture documentation for select.ts, a typescript file in the drizzle-orm codebase. 21 imports, 2 dependents.

File typescript DrizzleORM QueryBuilders 21 imports 2 dependents 2 functions 2 classes

Entity Profile

Dependency Diagram

graph LR
  49cf912b_062f_f482_ab61_a2b8c881ec4d["select.ts"]
  5eb95521_a13c_5ed6_36c8_8869eb8138fc["utils.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 5eb95521_a13c_5ed6_36c8_8869eb8138fc
  8cb72a5a_ac64_bab7_7080_4d49b2e823f9["extractUsedTable"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 8cb72a5a_ac64_bab7_7080_4d49b2e823f9
  b06d3b34_7e4c_4558_fa21_f40ea239b8a4["view-base.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> b06d3b34_7e4c_4558_fa21_f40ea239b8a4
  18a5fcd5_994e_4f8e_c531_decae9341796["select.types.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 18a5fcd5_994e_4f8e_c531_decae9341796
  47a9c453_10f1_a759_6246_695fcce2b20a["types.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 47a9c453_10f1_a759_6246_695fcce2b20a
  27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 27705a9d_afe9_57dd_8c97_e52d8a67d426
  d31ad410_b8fc_5d88_a194_70aa7419676a["query-builder.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> d31ad410_b8fc_5d88_a194_70aa7419676a
  8fb028b7_6ce0_27fa_29b6_39545ba11529["select.types.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 8fb028b7_6ce0_27fa_29b6_39545ba11529
  6acf5c54_62a7_1da1_984a_7374cbb9983e["query-promise.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 6acf5c54_62a7_1da1_984a_7374cbb9983e
  05d1039e_d7d0_0fa1_6f52_956655638080["runnable-query.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 05d1039e_d7d0_0fa1_6f52_956655638080
  591617cf_1376_c0a1_4ba1_ecd59ca13a5b["selection-proxy.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 591617cf_1376_c0a1_4ba1_ecd59ca13a5b
  be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd["sql.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd
  21a1af42_6b20_ae23_eb1a_f0f50e662d62["index.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 21a1af42_6b20_ae23_eb1a_f0f50e662d62
  3d205d67_2ef4_984a_3241_ff4981527231["dialect.ts"]
  49cf912b_062f_f482_ab61_a2b8c881ec4d --> 3d205d67_2ef4_984a_3241_ff4981527231
  style 49cf912b_062f_f482_ab61_a2b8c881ec4d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { CacheConfig, WithCacheConfig } from '~/cache/core/types.ts';
import { entityKind, is } from '~/entity.ts';
import { TypedQueryBuilder } from '~/query-builders/query-builder.ts';
import type {
	BuildSubquerySelection,
	GetSelectTableName,
	GetSelectTableSelection,
	JoinNullability,
	JoinType,
	SelectMode,
	SelectResult,
	SetOperator,
} from '~/query-builders/select.types.ts';
import { QueryPromise } from '~/query-promise.ts';
import type { RunnableQuery } from '~/runnable-query.ts';
import { SelectionProxyHandler } from '~/selection-proxy.ts';
import { SQL, View } from '~/sql/sql.ts';
import type { ColumnsSelection, Placeholder, Query, SQLWrapper } from '~/sql/sql.ts';
import type { SQLiteColumn } from '~/sqlite-core/columns/index.ts';
import type { SQLiteDialect } from '~/sqlite-core/dialect.ts';
import type { SQLiteSession } from '~/sqlite-core/session.ts';
import type { SubqueryWithSelection } from '~/sqlite-core/subquery.ts';
import type { SQLiteTable } from '~/sqlite-core/table.ts';
import { Subquery } from '~/subquery.ts';
import { Table } from '~/table.ts';
import {
	applyMixins,
	getTableColumns,
	getTableLikeName,
	haveSameKeys,
	orderSelectedFields,
	type ValueOrArray,
} from '~/utils.ts';
import { ViewBaseConfig } from '~/view-common.ts';
import { extractUsedTable } from '../utils.ts';
import { SQLiteViewBase } from '../view-base.ts';
import type {
	AnySQLiteSelect,
	CreateSQLiteSelectFromBuilderMode,
	GetSQLiteSetOperators,
	SelectedFields,
	SetOperatorRightSelect,
	SQLiteCreateSetOperatorFn,
	SQLiteSelectConfig,
	SQLiteSelectCrossJoinFn,
	SQLiteSelectDynamic,
	SQLiteSelectExecute,
	SQLiteSelectHKT,
	SQLiteSelectHKTBase,
	SQLiteSelectJoinFn,
	SQLiteSelectPrepare,
	SQLiteSelectWithout,
	SQLiteSetOperatorExcludedMethods,
	SQLiteSetOperatorWithResult,
} from './select.types.ts';

export class SQLiteSelectBuilder<
	TSelection extends SelectedFields | undefined,
	TResultType extends 'sync' | 'async',
	TRunResult,
// ... (1042 more lines)

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does select.ts do?
select.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, QueryBuilders subdomain.
What functions are defined in select.ts?
select.ts defines 2 function(s): createSetOperator, getSQLiteSetOperators.
What does select.ts depend on?
select.ts imports 21 module(s): dialect.ts, entity.ts, extractUsedTable, index.ts, query-builder.ts, query-promise.ts, runnable-query.ts, select.types.ts, and 13 more.
What files import select.ts?
select.ts is imported by 2 file(s): query-builder.ts, select.types.ts.
Where is select.ts in the architecture?
select.ts is located at drizzle-orm/src/sqlite-core/query-builders/select.ts (domain: DrizzleORM, subdomain: QueryBuilders, directory: drizzle-orm/src/sqlite-core/query-builders).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free