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

Function isSegment

repos/effect/packages/effect/src/unstable/sql/Statement.ts:1414–1431  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

1412 ) {
1413 return this.compiler.compile(this, withoutTransform ?? false)
1414 },
1415 toJSON(this: StatementImpl<any>) {
1416 const [sql, params] = this.compile()
1417 return {
1418 _id: "Statement",
1419 segments: this.segments,
1420 sql,
1421 params
1422 }
1423 }
1424}
1425
1426const withStatement = <A, X, E, R>(
1427 self: StatementImpl<A>,
1428 span: Tracer.Span,
1429 f: (statement: StatementImpl<A>, fiber: Fiber.Fiber<unknown, unknown>) => Effect.Effect<X, E, R>
1430) =>
1431 Effect.withFiber<X, E, R>((fiber) => {
1432 const transform = fiber.getRef(CurrentTransformer)
1433 if (transform === undefined) {
1434 return f(self, fiber)

Callers 1

statementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…