Packages

Convert Abacus expression into Ecto DSL expressions, and use them for where, selects, order_by, group_by or having clauses.

Current section

Files

Jump to
abacus_sql lib test_support user.ex
Raw

lib/test_support/user.ex

defmodule AbacusSqlTest.User do
use Ecto.Schema
use AbacusSql.Completable.Schema
schema "user" do
field :name, :string
has_many :blog_posts, AbacusSqlTest.BlogPost, foreign_key: :author_id
has_many :comments, AbacusSqlTest.Comment, foreign_key: :author_id
end
end