View Source Bee.Schema (bee v0.3.0)

Generate a Bee.Schema from valid ecto schema.

Link to this section Summary

Types

Represents expressions in the AST

Represents literals in the AST

t()

Abstract Syntax Tree (AST)

Link to this section 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)

Link to this section 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(ast)

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()