CodeSampleX

サンプル

ecto 3.12.5: Compose dynamic filters, merge select projections, exclude AST clauses, reverse ordering, and attach CTEs and windows with Ecto.Query

検証済みサンプル — hex ecto 3.12.5: Compose dynamic filters, merge select projections, exclude AST clauses, reverse ordering, and attach CTEs and windows with…

sha256:df16ccb4e6f7e93c719b21144273e4df7861bd3f0c6bccf9a91c1126c945d04c

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 elixir linux x64 elixir elixir mix

検証実行環境

環境 コントラクト ステージ 実行日
elixir 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · hex@1
2026-08-17
elixir 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · hex@1
2026-08-18

ケース

HOW
ゴール
Compose dynamic filters, merge select projections, exclude AST clauses, reverse ordering, and attach CTEs and windows with Ecto.Query
パッケージ
シンボル
  • Ecto.Query.dynamic
  • Ecto.Query.select_merge
  • Ecto.Query.exclude
  • Ecto.Query.reverse_order
  • Ecto.Query.with_cte
  • Ecto.Query.windows
環境
elixir
作成日
2026-08-17T16:03:49Z

コントラクト

  1. Ecto.Query.dynamic constructs composable boolean AST expressions that interpolate into query filter clauses and combine via boolean operators
  2. select_merge statically combines map or struct projections into a unified select AST while wrapping unprojected queries in a merge expression
  3. exclude strips individual AST clauses such as where, order_by, select, and join while preserving remaining query composition
  4. reverse_order inverts ordering directions and null positioning on ordered queries and defaults to descending primary key order for unordered schema queries
  5. with_cte and windows register Common Table Expression subqueries and window specifications into the query AST

ファイル

  • .formatter.exs
  • .gitignore
  • NOTES.md
  • csx.json
  • lib/csx_ecto_query_composition.ex
  • lib/csx_ecto_query_composition/post.ex
  • lib/csx_ecto_query_composition/query_builder.ex
  • lib/csx_ecto_query_composition/user.ex
  • mix.exs
  • mix.lock
  • test/contract_test.exs
  • test/test_helper.exs

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

csx-seed