( config: SqliteClientConfig )
| 287 | * @since 1.0.0 |
| 288 | */ |
| 289 | export const layer = ( |
| 290 | config: SqliteClientConfig |
| 291 | ): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError> => |
| 292 | Layer.scopedContext( |
| 293 | Effect.map(make(config), (client) => |
| 294 | Context.make(SqliteClient, client).pipe( |
| 295 | Context.add(Client.SqlClient, client) |
| 296 | )) |
| 297 | ).pipe(Layer.provide(Reactivity.layer)) |