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