We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ddc16b commit 169e89dCopy full SHA for 169e89d
lib/sequin/databases_runtime/keyset_cursor.ex
@@ -31,16 +31,14 @@ defmodule Sequin.DatabasesRuntime.KeysetCursor do
31
Given a table and a minimum sort column value, return a cursor with the minimum values for all columns
32
"""
33
@spec min_cursor(%Table{}, any()) :: map()
34
- def min_cursor(%Table{} = table, min_sort_col_cursor_value) do
+ def min_cursor(%Table{} = table, sort_col_value) do
35
[sort_column | pk_columns] = cursor_columns(table)
36
37
pk_cursor =
38
Map.new(pk_columns, fn column ->
39
{column.attnum, min_for_type(column.type)}
40
end)
41
42
- sort_col_value = cast_value(sort_column, min_sort_col_cursor_value)
43
-
44
Map.put(pk_cursor, sort_column.attnum, sort_col_value)
45
end
46
0 commit comments