withSavepointAndRollbackIfThrowsOrNone

suspend fun <T> DatabaseClient<PgConnection>.withSavepointAndRollbackIfThrowsOrNone(savepointName: String, function: suspend (DatabaseClient<PgConnection>) -> Option<T>): Option<T>(source)