ecto_mnesia v0.6.3 Ecto.Mnesia.Record

This module provides set of helpers for conversions between Mnesia records and Ecto Schemas.

Summary

Functions

Convert Ecto Schema struct to tuple that can be inserted to Mnesia

Converts record or records list to result that is similar to Ecto.Repo

Functions

new(schema, params, table)

Convert Ecto Schema struct to tuple that can be inserted to Mnesia.

to_query_result(records, context)

Converts record or records list to result that is similar to Ecto.Repo.

Raises if there is unknown field defined in record context.