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

Function withSoftDeleteFilter

packages/effect/src/unstable/sql/SqlModel.ts:83–84  ·  view source on GitHub ↗
(where: any)

Source from the content-addressed store, hash-verified

81 const idColumn = options.idColumn as string
82 const softDeleteColumn = options.softDeleteColumn as string | undefined
83 const withSoftDeleteFilter = (where: any) =>
84 softDeleteColumn === undefined ? where : sql.and([where, sql`${sql(softDeleteColumn)} is null`])
85 const setSoftDeleted = softDeleteColumn === undefined
86 ? undefined
87 : sql`${sql(softDeleteColumn)} = CURRENT_TIMESTAMP`

Callers 2

makeRepositoryFunction · 0.85
makeResolversFunction · 0.85

Calls 1

andMethod · 0.45

Tested by

no test coverage detected