Bardo.Repo (Bardo v0.1.0)

View Source

Bardo's Ecto repository for database access.

This module provides the Ecto repository for Bardo, enabling the application to interact with the database using Ecto.

Summary

Functions

A convenience function for SQL-based repositories that forces all connections in the pool to disconnect within the given interval.

A convenience function for SQL-based repositories that executes an EXPLAIN statement or similar depending on the adapter to obtain statistics for the given query.

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

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

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

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

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

Functions

aggregate(queryable, aggregate, opts \\ [])

aggregate(queryable, aggregate, field, opts)

all(queryable, opts \\ [])

checked_out?()

checkout(fun, opts \\ [])

child_spec(opts)

config()

default_options(operation)

delete(struct, opts \\ [])

delete!(struct, opts \\ [])

delete_all(queryable, opts \\ [])

disconnect_all(interval, opts \\ [])

A convenience function for SQL-based repositories that forces all connections in the pool to disconnect within the given interval.

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

exists?(queryable, opts \\ [])

explain(operation, queryable, opts \\ [])

A convenience function for SQL-based repositories that executes an EXPLAIN statement or similar depending on the adapter to obtain statistics for the given query.

See Ecto.Adapters.SQL.explain/4 for more information.

get(queryable, id, opts \\ [])

get!(queryable, id, opts \\ [])

get_by(queryable, clauses, opts \\ [])

get_by!(queryable, clauses, opts \\ [])

get_dynamic_repo()

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 \\ [])

prepare_query(operation, query, opts)

put_dynamic_repo(dynamic)

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

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

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

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

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

See Ecto.Adapters.SQL.query!/4 for more information.

query_many(sql, params \\ [], opts \\ [])

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

See Ecto.Adapters.SQL.query_many/4 for more information.

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

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

See Ecto.Adapters.SQL.query_many!/4 for more information.

reload(queryable, opts \\ [])

reload!(queryable, opts \\ [])

rollback(value)

@spec rollback(term()) :: no_return()

start_link(opts \\ [])

stop(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.to_sql/3 for more information.

transaction(fun_or_multi, opts \\ [])

update(struct, opts \\ [])

update!(struct, opts \\ [])

update_all(queryable, updates, opts \\ [])