1 repositorio
Builds database queries by chaining Elixir macros that expand into safe SQL at compile time.
Distinct from Deferred Query Compilation: Distinct from Deferred Query Compilation: focuses on compile-time macro expansion rather than runtime lazy compilation of query objects.
Explore 1 awesome GitHub repository matching data & databases · Macro-Based Query Builders. Refine with filters or upvote what's useful.
Ecto is an Elixir database toolkit that maps database rows to Elixir structs and validates data changes through changesets before persistence. It provides a language-integrated query syntax for composing database queries, building them incrementally and securely with compile-time expansion into safe SQL. The toolkit connects to multiple database backends including PostgreSQL, MySQL, MSSQL, SQLite3, ClickHouse, and ETS through a pluggable adapter interface. It supports eager and lazy preloading of associated records to eliminate N+1 query problems, and can store nested data structures as embed
Builds database queries by chaining Elixir macros that expand into safe SQL at compile time.