( config: SqliteClientConfig )
| 363 | * @since 4.0.0 |
| 364 | */ |
| 365 | export const layer = ( |
| 366 | config: SqliteClientConfig |
| 367 | ): Layer.Layer<SqliteClient | Client.SqlClient> => |
| 368 | Layer.effectContext( |
| 369 | Effect.map(make(config), (client) => |
| 370 | Context.make(SqliteClient, client).pipe( |
| 371 | Context.add(Client.SqlClient, client) |
| 372 | )) |
| 373 | ).pipe(Layer.provide(Reactivity.layer)) |
| 374 | |
| 375 | // internal |
| 376 |