MCPcopy Create free account
hub / github.com/Effect-TS/effect / literal

Function literal

packages/effect/src/sql/Statement.ts:260–265  ·  view source on GitHub ↗
(value: string, params?: ReadonlyArray<unknown> | undefined)

Source from the content-addressed store, hash-verified

258 * @since 4.0.0
259 */
260export const literal = (value: string, params?: ReadonlyArray<unknown> | undefined): Literal => ({
261 [SegmentTypeId]: SegmentTypeId,
262 _tag: "Literal",
263 value,
264 params
265})
266
267/**
268 * SQL identifier segment whose value is escaped by the active dialect compiler.

Callers 11

unsafeFunction · 0.70
templateSegmentsFunction · 0.70
joinFunction · 0.70
csvFunction · 0.70
Statement.tsFile · 0.70
convertLiteralOrFragmentFunction · 0.70
in_Function · 0.70
propertyKeyFunction · 0.50
printImportsFunction · 0.50
declareMethod · 0.50
addSideEffectMethod · 0.50

Calls 1

fragmentFunction · 0.85

Tested by

no test coverage detected