| 519 | * @since 4.0.0 |
| 520 | */ |
| 521 | export const layerMemory = ( |
| 522 | config: SqliteClientMemoryConfig |
| 523 | ): Layer.Layer<SqliteClient | Client.SqlClient, SqlError> => |
| 524 | Layer.effectContext( |
| 525 | Effect.map(makeMemory(config), (client) => |
| 526 | Context.make(SqliteClient, client).pipe( |
| 527 | Context.add(Client.SqlClient, client) |
| 528 | )) |
| 529 | ).pipe(Layer.provide(Reactivity.layer)) |
| 530 | |
| 531 | /** |
| 532 | * Builds a layer from a worker-backed SQLite WASM client configuration, providing both `SqliteClient` and the generic `SqlClient` service. |