package Ġcom . se an sh ub in . kotlin . try me . domain . jdbc Ċ Ċ import Ġjava . sql . ResultSet Ċ Ċ interface ĠConnection Lifecycle Ġ{ ĊĠĠĠ Ġfun Ġ< T > Ġwith ResultSet ( sql Query : ĠString , Ġdo Something With ResultSet : Ġ( ResultSet ) Ġ-> ĠT ): ĠT Ċ } Ċ