( config: SqliteClientConfig )
| 331 | * @category layers |
| 332 | * @since 4.0.0 |
| 333 | */ |
| 334 | export const layer = ( |
| 335 | config: SqliteClientConfig |
| 336 | ): Layer.Layer<SqliteClient | Client.SqlClient> => |
| 337 | Layer.effectContext( |
| 338 | Effect.map(make(config), (client) => |
| 339 | Context.make(SqliteClient, client).pipe( |
| 340 | Context.add(Client.SqlClient, client) |
| 341 | )) |
| 342 | ).pipe(Layer.provide(Reactivity.layer)) |