Skip to content

Commit 8e70049

Browse files
committed
Add pagination to SafeSql
1 parent 385fd1d commit 8e70049

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

mug-safesql/src/main/java/com/google/mu/safesql/SafeSql.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,9 @@ public <T> Optional<T> queryForOne(
982982
* If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
983983
* instead of the sort key columns to specify the next page offset.
984984
*
985-
* <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
986-
* in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
985+
* <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
986+
* with keywords or spaces in identifiers.
987+
* If your DB is case sensitive, make sure you pass in the accurate case.
987988
*
988989
* <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
989990
* The caller should close the {@code connection} after done, which will close the cached
@@ -1022,8 +1023,9 @@ public <T> Stream<List<T>> paginateLazily(
10221023
* If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
10231024
* instead of the sort key columns to specify the next page offset.
10241025
*
1025-
* <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1026-
* in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1026+
* <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
1027+
* with keywords or spaces in identifiers.
1028+
* If your DB is case sensitive, make sure you pass in the accurate case.
10271029
*
10281030
* <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
10291031
* The caller should close the {@code connection} after done, which will close the cached
@@ -1065,8 +1067,9 @@ public <T> Stream<List<T>> paginateLazily(
10651067
* If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
10661068
* instead of the sort key columns to specify the next page offset.
10671069
*
1068-
* <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1069-
* in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1070+
* <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
1071+
* with keywords or spaces in identifiers.
1072+
* If your DB is case sensitive, make sure you pass in the accurate case.
10701073
*
10711074
* <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
10721075
* The caller should close the {@code connection} after done, which will close the cached
@@ -1105,8 +1108,9 @@ public <T> Stream<List<T>> paginateLazily(
11051108
* If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
11061109
* instead of the sort key columns to specify the next page offset.
11071110
*
1108-
* <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1109-
* in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1111+
* <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
1112+
* with keywords or spaces in identifiers.
1113+
* If your DB is case sensitive, make sure you pass in the accurate case.
11101114
*
11111115
* <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
11121116
* The caller should close the {@code connection} after done, which will close the cached

0 commit comments

Comments
 (0)