( config: SqliteClientConfig )
| 403 | * @since 4.0.0 |
| 404 | */ |
| 405 | export const layer = ( |
| 406 | config: SqliteClientConfig |
| 407 | ): Layer.Layer<SqliteClient | Client.SqlClient, SqlError> => |
| 408 | Layer.effectContext( |
| 409 | Effect.map(make(config), (client) => |
| 410 | Context.make(SqliteClient, client).pipe( |
| 411 | Context.add(Client.SqlClient, client) |
| 412 | )) |
| 413 | ).pipe(Layer.provide(Reactivity.layer)) |
| 414 | |
| 415 | // internal |
| 416 |