Package io.vertx.mutiny.sqlclient
Class SqlClientHelper
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.SqlClientHelper
-
public class SqlClientHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> io.smallrye.mutiny.Multi<T>
inTransactionMulti(Pool pool, Function<SqlClient,io.smallrye.mutiny.Multi<T>> sourceSupplier)
Generates aMulti
from operations executed inside aTransaction
.static <T> io.smallrye.mutiny.Uni<T>
inTransactionUni(Pool pool, Function<SqlClient,io.smallrye.mutiny.Uni<T>> sourceSupplier)
Generates aUni
from operations executed inside aTransaction
.static <T> io.smallrye.mutiny.Multi<T>
usingConnectionMulti(Pool pool, Function<SqlConnection,io.smallrye.mutiny.Multi<T>> sourceSupplier)
Generates aMulti
fromSqlConnection
operations.static <T> io.smallrye.mutiny.Uni<T>
usingConnectionUni(Pool pool, Function<SqlConnection,io.smallrye.mutiny.Uni<T>> sourceSupplier)
Generates aUni
fromSqlConnection
operations.
-
-
-
Method Detail
-
inTransactionMulti
public static <T> io.smallrye.mutiny.Multi<T> inTransactionMulti(Pool pool, Function<SqlClient,io.smallrye.mutiny.Multi<T>> sourceSupplier)
Generates aMulti
from operations executed inside aTransaction
.- Type Parameters:
T
- the type of the items emitted by theMulti
- Parameters:
pool
- thePool
sourceSupplier
- a user-provided function returning aMulti
generated by interacting with the givenSqlClient
- Returns:
- a
Multi
generated from operations executed inside aTransaction
-
inTransactionUni
public static <T> io.smallrye.mutiny.Uni<T> inTransactionUni(Pool pool, Function<SqlClient,io.smallrye.mutiny.Uni<T>> sourceSupplier)
Generates aUni
from operations executed inside aTransaction
.- Type Parameters:
T
- the type of the items emitted by theUni
- Parameters:
pool
- thePool
sourceSupplier
- a user-provided function returning aUni
generated by interacting with the givenSqlClient
- Returns:
- a
Uni
generated from operations executed inside aTransaction
-
usingConnectionMulti
public static <T> io.smallrye.mutiny.Multi<T> usingConnectionMulti(Pool pool, Function<SqlConnection,io.smallrye.mutiny.Multi<T>> sourceSupplier)
Generates aMulti
fromSqlConnection
operations.- Type Parameters:
T
- the type of the items emitted by theMulti
- Parameters:
pool
- thePool
sourceSupplier
- a user-provided function returning aMulti
generated by interacting with the givenSqlConnection
- Returns:
- a
Multi
generated fromSqlConnection
operations
-
usingConnectionUni
public static <T> io.smallrye.mutiny.Uni<T> usingConnectionUni(Pool pool, Function<SqlConnection,io.smallrye.mutiny.Uni<T>> sourceSupplier)
Generates aUni
fromSqlConnection
operations.- Type Parameters:
T
- the type of the item emitted by theUni
- Parameters:
pool
- thePool
sourceSupplier
- a user-provided function returning aUni
generated by interacting with the givenSqlConnection
- Returns:
- a
Uni
generated fromSqlConnection
operations
-
-