MCPcopy Index your code
hub / github.com/Effect-TS/effect / in_

Function in_

packages/sql/src/internal/statement.ts:425–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423function in_(values: ReadonlyArray<unknown>): Statement.ArrayHelper
424function in_(column: string, values: ReadonlyArray<unknown>): Statement.Fragment
425function in_(): Statement.Fragment | Statement.ArrayHelper {
426 if (arguments.length === 1) {
427 return new ArrayHelperImpl(arguments[0])
428 }
429 const column = arguments[0]
430 const values = arguments[1]
431 return values.length === 0 ? unsafeFragment("1=0") : new FragmentImpl([
432 new IdentifierImpl(column),
433 new LiteralImpl(" IN "),
434 new ArrayHelperImpl(values)
435 ])
436}
437
438/** @internal */
439export function join(literal: string, addParens = true, fallback = "") {

Callers

nothing calls this directly

Calls 1

unsafeFragmentFunction · 0.85

Tested by

no test coverage detected