( config: LibsqlClientConfig )
| 410 | * @since 4.0.0 |
| 411 | */ |
| 412 | export const layer = ( |
| 413 | config: LibsqlClientConfig |
| 414 | ): Layer.Layer<LibsqlClient | Client.SqlClient> => |
| 415 | Layer.effectContext( |
| 416 | Effect.map(make(config), (client) => |
| 417 | Context.make(LibsqlClient, client).pipe( |
| 418 | Context.add(Client.SqlClient, client) |
| 419 | )) |
| 420 | ).pipe(Layer.provide(Reactivity.layer)) |