Exograph.DSL (exograph v0.1.0)

Copy Markdown View Source

Ecto-shaped query DSL for Exograph.

The DSL currently supports structural Fragment queries and relational Definition / Reference / CallEdge queries:

import Exograph.DSL

from f in Fragment,
  where: matches(f, "def _ do ... end"),
  where: contains(f, "Repo.transaction(_)")

Summary

Functions

assoc(binding, name)

(macro)

contains(binding, pattern)

(macro)

from(arg, clauses)

(macro)

matches(binding, pattern)

(macro)

prefix_search(field, value)

(macro)