View Source Mecto.SchemaExtractor (mecto v0.7.2)

Converts an Ecto schema into a map, for use in Mecto.SchemaValidator.

Summary

Types

@type association() :: {:direct, atom()} | {:indirect, atom()}
@type cardinality() :: :one | :many

Functions

@spec convert_from(module()) :: map() | {:error, atom()}