Tag
#ecto
4 articles
Ecto.Multi for Audit-Safe Writes: The Transaction Is the Audit Trail
When a single user action touches five tables, you need atomicity AND a complete audit record. Ecto.Multi gives you both for free β if you commit to the pattern and never mix it with bare Repo calls.
Ecto Changesets as the Validation Boundary: Trust Ends at the Schema
Validation scattered across controllers, contexts, and tests is how bad data reaches the database. Ecto changesets give you one boundary β enforce it and delete the duplicated checks.
PostgreSQL and TimescaleDB Patterns for Intelligence Platforms
Database architecture patterns using Ecto schemas, TimescaleDB hypertables for time-series data, connection pooling strategies, and query optimization techniques.
Zero Trust in Elixir: The SEAL Security Doctrine
Implementing the SEAL security doctrine in Elixir: parameterized Ecto queries, environment variable secrets management, Code.eval prevention, input validation boundaries, and OWASP Top 10 mapping.