( config: SqliteClientConfig )
| 527 | ).pipe(Layer.provide(Reactivity.layer)) |
| 528 | |
| 529 | /** |
| 530 | * Builds a layer from a worker-backed SQLite WASM client configuration, providing both `SqliteClient` and the generic `SqlClient` service. |
| 531 | * |
| 532 | * @category layers |
| 533 | * @since 4.0.0 |
| 534 | */ |
| 535 | export const layer = ( |
| 536 | config: SqliteClientConfig |
| 537 | ): Layer.Layer<SqliteClient | Client.SqlClient, SqlError> => |
| 538 | Layer.effectContext( |
| 539 | Effect.map(make(config), (client) => |
| 540 | Context.make(SqliteClient, client).pipe( |