ecto_mnesia v0.6.3 Ecto.Mnesia.Adapter

Core Ecto Mnesia adapter implementation.

Summary

Functions

Automatically generate next ID for binary keys, leave sequence keys empty for generation on insert

Returns the childspec that starts the adapter process. This method is called from Ecto.Repo.Supervisor.init/2

Deletes a record from a Mnesia database

Callback implementation for Ecto.Adapter.dumpers/2

Ensure all applications necessary to run the adapter are started

Update all records by a Ecto.Query

Returns true when called inside a transaction

Insert Ecto Schema struct to Mnesia database

Callback implementation for Ecto.Adapter.loaders/2

Prepares are called by Ecto before execute/6 methods

Transaction rollbacks is not supported

Run fun inside a Mnesia transaction

Updates record stored in a Mnesia database

Functions

autogenerate(atom)

Automatically generate next ID for binary keys, leave sequence keys empty for generation on insert.

child_spec(repo, opts)

Returns the childspec that starts the adapter process. This method is called from Ecto.Repo.Supervisor.init/2.

delete(repo, map, filter, opts)

Deletes a record from a Mnesia database.

dumpers(primitive, type)

Callback implementation for Ecto.Adapter.dumpers/2.

ensure_all_started(repo, type)

Ensure all applications necessary to run the adapter are started.

execute(repo, map, arg, sources, preprocess, opts)

Update all records by a Ecto.Query.

in_transaction?(repo)

Returns true when called inside a transaction.

insert(repo, map, sources, on_conflict, returning, opts)

Insert Ecto Schema struct to Mnesia database.

insert_all(repo, map, header, rows, on_conflict, returning, opts)

Insert all

loaders(primitive, type)

Callback implementation for Ecto.Adapter.loaders/2.

prepare(operation, query)

Prepares are called by Ecto before execute/6 methods.

rollback(repo, tid)

Transaction rollbacks is not supported

transaction(repo, opts, fun)

Run fun inside a Mnesia transaction

update(repo, map, params, filter, autogen, opts)

Updates record stored in a Mnesia database.