Skip to content

Easy plug sort/filter/pagination into an Ecto query.

Notifications You must be signed in to change notification settings

saverio-kantox/scisco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scisco

Easy query builder for Ecto.

Pronounciation: ʃːisko (Shisko), which is a synonym of "quaero".

This package implements a simplified behavior for querying Ecto schemas, based on a common browser <-> API <-> database set of functions.

A module implementing it will have two public functions: list/1 and get_page_count/1, both accepting a map with the same keys: :page, :filter and :sort.

The semantics of the parameters are strongly inspired by JSON:API.

See Scisco.Query for more information.

Installation

The package can be installed by adding scisco to your list of dependencies in mix.exs:

def deps do
  [
    {:scisco, "~> 0.1.0"}
  ]
end

The docs can be found at https://hexdocs.pm/scisco.

About

Easy plug sort/filter/pagination into an Ecto query.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages