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

Function unsafe

packages/effect/src/sql/Statement.ts:693–706  ·  view source on GitHub ↗
(
        sql: string,
        params?: ReadonlyArray<unknown>
      )

Source from the content-addressed store, hash-verified

691 },
692 {
693 unsafe<A extends object = Row>(
694 sql: string,
695 params?: ReadonlyArray<unknown>
696 ) {
697 return makeUnsafe<A>(
698 [literal(sql, params)],
699 acquirer,
700 compiler,
701 spanAttributes,
702 transformRows,
703 borrower,
704 self
705 )
706 },
707 literal(sql: string) {
708 return fragment([literal(sql)])
709 },

Callers

nothing calls this directly

Calls 2

makeUnsafeFunction · 0.70
literalFunction · 0.70

Tested by

no test coverage detected