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

Function layerWith

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

Source from the content-addressed store, hash-verified

812 * @since 4.0.0
813 */
814export const layerWith = (options: {
815 readonly prefix?: string | undefined
816}): Layer.Layer<MessageStorage.MessageStorage, never, SqlClient.SqlClient | ShardingConfig | Crypto.Crypto> =>
817 Layer.effect(MessageStorage.MessageStorage, make(options)).pipe(
818 Layer.provide(Snowflake.layerGenerator)
819 )
820
821// -------------------------------------------------------------------------------------------------
822// internal

Callers

nothing calls this directly

Calls 3

makeFunction · 0.70
pipeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected