View Source Bee.Schema (bee v0.4.3)

Generate a Bee.Schema from valid ecto schema.

Summary

Types

Represents expressions in the AST

Represents literals in the AST

t()

Abstract Syntax Tree (AST)

Types

@type expr() :: {expr() | atom(), keyword(), atom() | [t()]}

Represents expressions in the AST

@type literal() :: atom() | number() | binary() | (... -> any()) | {t(), t()} | [t()]

Represents literals in the AST

@type t() :: expr() | literal()

Abstract Syntax Tree (AST)

Functions

Link to this function

convert_module_to_atom(module)

View Source
Link to this function

convert_module_to_foreign_key(module)

View Source
Link to this macro

generate_bee(ast0)

View Source (macro)
@spec generate_bee(t()) :: Macro.t()
Link to this macro

permission(atom, list)

View Source (macro)
@spec permission(atom(), [atom()]) :: Macro.t()
Link to this macro

permission(atom, list, opts)

View Source (macro)
@spec permission(atom(), [atom()], keyword()) :: Macro.t()
Link to this function

structured(module, opts \\ [])

View Source