def list_users_raw do Repo.query("SELECT * FROM users") # DANGER: This ignores the prefix! end
defmodule UniEctoPlugin.Audit do defmacro __using__(_opts) do quote do import Ecto.Changeset field :created_by_id, :integer field :updated_by_id, :integer def put_created_by(changeset, user_id) do put_change(changeset, :created_by_id, user_id) end uni ecto plugin
: Allows you to confine the effect to specific areas using elliptical or rectangular masks directly within the plugin. def list_users_raw do Repo