ecto-cursor-based-stream
ecto-cursor-based-stream copied to clipboard
Elixir library that allows for cursor-based streaming of Ecto records, that does not require database transaction.
@alukasz this will be also useful and would be great if you could release it
I've recently had to build something quite similar to this (without knowing this library existed) that needs to support two things: 1) Multiple column cursor fields 2) Arbitrary selects in...
So that the developer knows instantly if they defined the cursor field in an incorrect way.
Currently only one column can be specified as a cursor field. Potentially we could make it work with multiple columns, which could be specified as a list, e.g.: ```ex cursor:...
Update elixir, erlang versions in CI. Small changes to documentation. Add `:parallel` option to typespec. Bump version.
Currently, the library only supports streaming records in ascending order. This limitation can be problematic for use cases where descending order is required, such as retrieving the most recent records...