pub fn sql_client_layer<E>(client: impl SqlClient) -> Layer<SqlClientEnv, E>Expand description
The scoped client Layer (Effect.ts Layer.scoped): building it runs
SqlClient::connect (a failure fails the build with E::from(err)), and the build’s scope
closing runs SqlClient::close, after the effect a
provide_layer runs, however it ends.