| 537 | * @since 4.0.0 |
| 538 | */ |
| 539 | export const layerMemory = ( |
| 540 | config: SqliteClientMemoryConfig |
| 541 | ): Layer.Layer<SqliteClient | Client.SqlClient, SqlError> => |
| 542 | Layer.effectContext( |
| 543 | Effect.map(makeMemory(config), (client) => |
| 544 | Context.make(SqliteClient, client).pipe( |
| 545 | Context.add(Client.SqlClient, client) |
| 546 | )) |
| 547 | ).pipe(Layer.provide(Reactivity.layer)) |
| 548 | |
| 549 | /** |
| 550 | * Builds a layer from a worker-backed SQLite WASM client configuration, providing both `SqliteClient` and the generic `SqlClient` service. |