( config: SqliteClientConfig )
| 278 | * @since 4.0.0 |
| 279 | */ |
| 280 | export const layer = ( |
| 281 | config: SqliteClientConfig |
| 282 | ): Layer.Layer<SqliteClient | Client.SqlClient> => |
| 283 | Layer.effectContext( |
| 284 | Effect.map(make(config), (client) => |
| 285 | Context.make(SqliteClient, client).pipe( |
| 286 | Context.add(Client.SqlClient, client) |
| 287 | )) |
| 288 | ).pipe(Layer.provide(Reactivity.layer)) |