Support update, insert operation attribute annotions

オープン
#284 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
postgresql, rust, sql
領域
backend, databases

調査の方向性

Start by reading the SQL annotation syntax shown in the issue and the parts of the project that parse annotations for INSERT, UPDATE, and DELETE operations. Check the related tests for generated Rust types and attributes. Done means custom attributes can be applied to those operations, including the shown INSERT input type, with tests covering the supported syntax.

索引モデルが issue の本文から書いたものです。

説明

feature parser

Migrated from halcyonnouveau/clorinde#217, originally reported by @dancixx on 2026-01-16.

Describe the problem

Custom attribute annotation for update, insert, or delete operation.

Describe the solution you'd like
--: InsertMeasurement(weight_in_kg?, abs_in_cm?, chest_in_cm?, hips_in_cm?, left_biceps_in_cm?, left_calf_in_cm?, left_forearm_in_cm?, left_knee_in_cm?, left_thigh_in_cm?, neck_in_cm?, right_biceps_in_cm?, right_calf_in_cm?, right_forearm_in_cm?, right_knee_in_cm?, right_thigh_in_cm?, shoulder_in_cm?, waist_in_cm?) : async_graphql::InputObject
--# graphql(name = "insert_measurement_input", rename_fields = "snake_case")
--! insert_measurement InsertMeasurementInput()
INSERT INTO noexapp.measurements (
    user_id,
    type,
    created_at,
    weight_in_kg,
    abs_in_cm,
    chest_in_cm,
    hips_in_cm,
    left_biceps_in_cm,
    left_calf_in_cm,
    left_forearm_in_cm,
    left_knee_in_cm,
    left_thigh_in_cm,
    neck_in_cm,
    right_biceps_in_cm,
    right_calf_in_cm,
    right_forearm_in_cm,
    right_knee_in_cm,
    right_thigh_in_cm,
    shoulder_in_cm,
    waist_in_cm
)
VALUES (
    :user_id,
    :type,
    EXTRACT(EPOCH FROM NOW())::bigint,
    :weight_in_kg,
    :abs_in_cm,
    :chest_in_cm,
    :hips_in_cm,
    :left_biceps_in_cm,
    :left_calf_in_cm,
    :left_forearm_in_cm,
    :left_knee_in_cm,
    :left_thigh_in_cm,
    :neck_in_cm,
    :right_biceps_in_cm,
    :right_calf_in_cm,
    :right_forearm_in_cm,
    :right_knee_in_cm,
    :right_thigh_in_cm,
    :shoulder_in_cm,
    :waist_in_cm
)
RETURNING id;
Alternatives considered

No response

Additional context

No response

Importance

Nice to have

主要言語
Rust
スター
1.2k
フォーク
77
平均マージ
5日 12時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cornucopia-rs/cornucopia のほかの issue

cornucopia-rs/cornucopia の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。