( config: SqliteClientConfig )
| 370 | * @since 4.0.0 |
| 371 | */ |
| 372 | export const layer = ( |
| 373 | config: SqliteClientConfig |
| 374 | ): Layer.Layer<SqliteClient | Client.SqlClient> => |
| 375 | Layer.effectContext( |
| 376 | Effect.map(make(config), (client) => |
| 377 | Context.make(SqliteClient, client).pipe( |
| 378 | Context.add(Client.SqlClient, client) |
| 379 | )) |
| 380 | ).pipe(Layer.provide(Reactivity.layer)) |