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

Function layerWith

packages/cluster/src/SqlMessageStorage.ts:634–639  ·  view source on GitHub ↗
(options: {
  readonly prefix?: string | undefined
})

Source from the content-addressed store, hash-verified

632 * @category Layers
633 */
634export const layerWith = (options: {
635 readonly prefix?: string | undefined
636}): Layer.Layer<MessageStorage.MessageStorage, never, SqlClient.SqlClient | ShardingConfig> =>
637 Layer.scoped(MessageStorage.MessageStorage, make(options)).pipe(
638 Layer.provide(Snowflake.layerGenerator)
639 )
640
641// -------------------------------------------------------------------------------------------------
642// internal

Callers

nothing calls this directly

Calls 3

makeFunction · 0.70
pipeMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected