RethinkDB.Ecto v0.7.0 RethinkDB.Ecto.NormalizedQuery

This module normalizes Ecto SQL-like queries into ReQL queries.

Most Ecto.Query functions are supported by the RethinkDB.Ecto adapter, including queries with aggregations, joins and complex filters and selections.

For specific implementation details, you should check the source code.

Summary

Functions

Fetches all entries from the data store matching the given query

Deletes a struct using its primary key

Deletes all entries matching the given query

Inserts a struct or a changeset

Inserts all entries into the repository

Updates a changeset using its primary key

Updates all entries matching the given query with the given values

Functions

all(query, params)

Fetches all entries from the data store matching the given query.

delete(model, filters)

Deletes a struct using its primary key.

delete_all(query, params)

Deletes all entries matching the given query.

insert(model, fields)

Inserts a struct or a changeset.

insert_all(model, fields)

Inserts all entries into the repository.

update(model, fields, filters)

Updates a changeset using its primary key.

update_all(query, params)

Updates all entries matching the given query with the given values.