chercheville v0.1.1 ChercheVille.Repo

Summary

Functions

aggregate(queryable, aggregate, field, opts \\ [])
all(queryable, opts \\ [])
child_spec(opts)
config()
delete(struct, opts \\ [])
delete!(struct, opts \\ [])
delete_all(queryable, opts \\ [])
get(queryable, id, opts \\ [])
get!(queryable, id, opts \\ [])
get_by(queryable, clauses, opts \\ [])
get_by!(queryable, clauses, opts \\ [])
in_transaction?()
insert(struct, opts \\ [])
insert!(struct, opts \\ [])
insert_all(schema_or_source, entries, opts \\ [])
insert_or_update(changeset, opts \\ [])
insert_or_update!(changeset, opts \\ [])
load(schema_or_types, data)
one(queryable, opts \\ [])
one!(queryable, opts \\ [])
preload(struct_or_structs_or_nil, preloads, opts \\ [])
query(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given query.

See Ecto.Adapters.SQL.query/3 for more information.

query!(sql, params \\ [], opts \\ [])

A convenience function for SQL-based repositories that executes the given query.

See Ecto.Adapters.SQL.query/3 for more information.

rollback(value)

Specs

rollback(term) :: no_return
start_link(opts \\ [])
stop(pid, timeout \\ 5000)
stream(queryable, opts \\ [])
to_sql(operation, queryable)

A convenience function for SQL-based repositories that translates the given query to SQL.

See Ecto.Adapters.SQL.query/3 for more information.

transaction(fun_or_multi, opts \\ [])
update(struct, opts \\ [])
update!(struct, opts \\ [])
update_all(queryable, updates, opts \\ [])