Popularity
4.9
Stable
Activity
0.0
Stable
13
14
6
Monthly Downloads: 0
Programming language: Elixir
License: LISENSE.md
Tags:
ORM And Datamapping
ecto_paging alternatives and similar packages
Based on the "ORM and Datamapping" category.
Alternatively, view ecto_paging alternatives based on common mentions on social networks and blogs.
-
memento
Simple + Powerful interface to the Mnesia Distributed Database 💾 -
paper_trail
Track and record all the changes in your database with Ecto. Revert back to anytime in history. -
ExAudit
Ecto auditing library that transparently tracks changes and can revert them. -
ecto_psql_extras
Ecto PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more. -
arbor
Ecto elixir adjacency list and tree traversal. Supports Ecto versions 2 and 3. -
sqlitex
An Elixir wrapper around esqlite. Allows access to sqlite3 databases. -
boltun
Transforms notifications from the Postgres LISTEN/NOTIFY mechanism into callback execution -
sql_dust
Easy. Simple. Powerful. Generate (complex) SQL queries using magical Elixir SQL dust.
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Promo
www.influxdata.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ecto_paging or a related project?
README
Ecto.Paging
This module provides a easy way to apply cursor-based pagination to your Ecto Queries.
Usage:
Add macro to your repo
defmodule MyRepo do use Ecto.Repo, otp_app: :my_app use Ecto.Paging.Repo # This string adds `paginate/2` and `page/3` methods. end
Paginate!
query = from p in Ecto.Paging.Schema {res, next_paging} = query |> Ecto.Paging.TestRepo.page(%Ecto.Paging{limit: 150})
Limitations:
- Right now it works only with schemas that have
:inserted_at
field with auto-generated value. - You need to be careful with order-by's in your queries, since this feature is not tested yet.
- It doesn't construct
has_more
andsize
counts inpaginate
struct (TODO: add this helpers). - When both
starting_after
andending_before
is set, onlystarting_after
is used.
Installation
Add
ecto_paging
to your list of dependencies inmix.exs
:def deps do [{:ecto_paging, "~> 0.8.4"}] end
Ensure
ecto_paging
is started before your application:def application do [applications: [:ecto_paging]] end