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