You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* It lives during database session. It should be reused multiple times and it should be closed after using.
12
+
* Doesn't support function call feature because of its deprecation See <a href="https://www.postgresql.org/docs/11/protocol-flow.html#id-1.10.5.7.6"/>.
13
+
*/
14
+
publicinterfacePreparedStatement {
15
+
16
+
/**
17
+
* Fetches the whole row set and returns a {@link CompletableFuture} with an instance of {@link ResultSet}.
18
+
* This future may be completed with an error. Use this method if you are sure, that all data, returned by the query can be placed into memory.
19
+
*
20
+
* @param params Array of query parameters values.
21
+
* @return An instance of {@link ResultSet} with data.
* Fetches data rows from Postgres one by one. Use this method when you are unsure, that all data, returned by the query can be placed into memory.
27
+
*
28
+
* @param onColumns {@link Consumer} of parameters by name map. Gets called when bind/describe chain succeeded.
29
+
* @param processor {@link Consumer} of single data row. Performs some processing of data.
30
+
* @param params Array of query parameters values.
31
+
* @return CompletableFuture that completes when the whole process ends or when an error occurs. Future's value will indicate the number of affected rows by the query.
* @param onAffected An affected rows callback consumer. It is called when a particular {@link ResultSet} is completely fetched with its affected rows count. This callback should be used to create a {@link ResultSet} instance from already fetched columns, rows and affected rows count.
60
+
* @param sql Sql Script text.
61
+
* @return CompletableFuture that is completed when the whole process of multiple {@link ResultSet}s fetching ends.
0 commit comments