MCPcopy Create free account
hub / github.com/effect-app/libs / csv

Function csv

repos/effect/packages/effect/src/unstable/sql/Statement.ts:714–731  ·  view source on GitHub ↗
(
  ...args:
    | [values: ReadonlyArray<string | Fragment>]
    | [prefix: string, values: ReadonlyArray<string | Fragment>]
)

Source from the content-addressed store, hash-verified

712 * Combines clauses with `OR`, parenthesizing multiple clauses and returning
713 * `1=1` when the list is empty.
714 *
715 * @category constructors
716 * @since 4.0.0
717 */
718export const or: (clauses: ReadonlyArray<string | Fragment>) => Fragment = join(" OR ", true, "1=1")
719
720/**
721 * Creates a comma-separated SQL fragment from values, optionally adding a
722 * prefix, and returns an empty fragment when no values are provided.
723 *
724 * @category constructors
725 * @since 4.0.0
726 */
727export const csv: {
728 (values: ReadonlyArray<string | Fragment>): Fragment
729 (prefix: string, values: ReadonlyArray<string | Fragment>): Fragment
730} = function(
731 ...args:
732 | [values: ReadonlyArray<string | Fragment>]
733 | [prefix: string, values: ReadonlyArray<string | Fragment>]
734) {

Callers

nothing calls this directly

Calls 2

fragmentFunction · 0.85
literalFunction · 0.70

Tested by

no test coverage detected