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. 22 imports, 2 dependents.

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

Entity Profile

Dependency Diagram

graph LR
  df5c4433_48d4_a196_2e73_fc27b943fdae["select.ts"]
  9cb8488e_0ece_edef_af6a_5851d56cddda["utils.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 9cb8488e_0ece_edef_af6a_5851d56cddda
  0c3d6e7d_2a20_2e20_4164_7f373e4ec319["extractUsedTable"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 0c3d6e7d_2a20_2e20_4164_7f373e4ec319
  1802ae0d_e56f_7575_eb4a_b95e50f061c0["select.types.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 1802ae0d_e56f_7575_eb4a_b95e50f061c0
  47a9c453_10f1_a759_6246_695fcce2b20a["types.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 47a9c453_10f1_a759_6246_695fcce2b20a
  27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 27705a9d_afe9_57dd_8c97_e52d8a67d426
  63414497_7c3c_fa30_3735_57e9e37ccc7c["index.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 63414497_7c3c_fa30_3735_57e9e37ccc7c
  f86d3f7c_7b46_5b9f_94e2_ac0a5f48d903["dialect.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> f86d3f7c_7b46_5b9f_94e2_ac0a5f48d903
  90dfe595_29ab_0495_4263_3b19b4bb4d9b["session.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 90dfe595_29ab_0495_4263_3b19b4bb4d9b
  d0a77429_3048_7a52_652d_89b07c524c9b["subquery.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> d0a77429_3048_7a52_652d_89b07c524c9b
  c1a47e5e_63aa_1ab2_abac_86e509f63e7c["table.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> c1a47e5e_63aa_1ab2_abac_86e509f63e7c
  0dfd431d_4b93_40f1_55a5_53c1aa50ad57["view-base.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 0dfd431d_4b93_40f1_55a5_53c1aa50ad57
  d31ad410_b8fc_5d88_a194_70aa7419676a["query-builder.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> d31ad410_b8fc_5d88_a194_70aa7419676a
  8fb028b7_6ce0_27fa_29b6_39545ba11529["select.types.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 8fb028b7_6ce0_27fa_29b6_39545ba11529
  6acf5c54_62a7_1da1_984a_7374cbb9983e["query-promise.ts"]
  df5c4433_48d4_a196_2e73_fc27b943fdae --> 6acf5c54_62a7_1da1_984a_7374cbb9983e
  style df5c4433_48d4_a196_2e73_fc27b943fdae 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 type { GelColumn } from '~/gel-core/columns/index.ts';
import type { GelDialect } from '~/gel-core/dialect.ts';
import type { GelSession, PreparedQueryConfig } from '~/gel-core/session.ts';
import type { SubqueryWithSelection } from '~/gel-core/subquery.ts';
import type { GelTable } from '~/gel-core/table.ts';
import { GelViewBase } from '~/gel-core/view-base.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 { Subquery } from '~/subquery.ts';
import { Table } from '~/table.ts';
import { tracer } from '~/tracing.ts';
import {
	applyMixins,
	getTableColumns,
	getTableLikeName,
	haveSameKeys,
	type NeonAuthToken,
	type ValueOrArray,
} from '~/utils.ts';
import { orderSelectedFields } from '~/utils.ts';
import { ViewBaseConfig } from '~/view-common.ts';
import { extractUsedTable } from '../utils.ts';
import type {
	AnyGelSelect,
	CreateGelSelectFromBuilderMode,
	GelCreateSetOperatorFn,
	GelSelectConfig,
	GelSelectCrossJoinFn,
	GelSelectDynamic,
	GelSelectHKT,
	GelSelectHKTBase,
	GelSelectJoinFn,
	GelSelectPrepare,
	GelSelectWithout,
	GelSetOperatorExcludedMethods,
	GelSetOperatorWithResult,
	GetGelSetOperators,
	LockConfig,
	LockStrength,
	SelectedFields,
	SetOperatorRightSelect,
} from './select.types.ts';

export class GelSelectBuilder<
// ... (1271 more lines)

Domain

Subdomains

Dependencies

  • dialect.ts
  • entity.ts
  • extractUsedTable
  • index.ts
  • query-builder.ts
  • query-promise.ts
  • runnable-query.ts
  • select.types.ts
  • select.types.ts
  • selection-proxy.ts
  • session.ts
  • sql.ts
  • subquery.ts
  • subquery.ts
  • table.ts
  • table.ts
  • tracing.ts
  • types.ts
  • utils.ts
  • utils.ts
  • view-base.ts
  • view-common.ts

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, getGelSetOperators.
What does select.ts depend on?
select.ts imports 22 module(s): dialect.ts, entity.ts, extractUsedTable, index.ts, query-builder.ts, query-promise.ts, runnable-query.ts, select.types.ts, and 14 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/gel-core/query-builders/select.ts (domain: DrizzleORM, subdomain: QueryBuilders, directory: drizzle-orm/src/gel-core/query-builders).

Analyze Your Own Codebase

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

Try Supermodel Free