Skip to content

feat(database): add Builder::value() alongside pluck() (task 2.5a, additive) - #62

Closed
agissept wants to merge 1 commit into
masterfrom
migration/2.5a-builder-value-additive
Closed

agissept wants to merge 1 commit into
masterfrom
migration/2.5a-builder-value-additive

Conversation

@agissept

Copy link
Copy Markdown
Member

Langkah pertama & non-breaking dari pluck/lists pipeline (task 2.5). Independen dari 2.5e.

Perubahan

  • Tambah value($column) di Query\Builder + Eloquent\Buildercopy body scalar pluck() sekarang. value() === pluck() buat scalar saat ini.
  • Purely additive: pluck() nggak disentuh, nol call-site berubah behavior. Zero lockstep.

Kenapa additive dulu

value() harus ada di fork sebelum app bisa konversi ->pluck()->value() (task 2.5b). Ini bikin dua repo nggak pernah flip barengan. App udah 2× kena value()-missing (commit b493f38e, fc90c75) — PR ini yang benerin akarnya.

Verifikasi

  • Test value() balikin scalar & sama dengan pluck() (Query + Eloquent).
  • Database suite 516 hijau (+3 test baru).

🤖 Generated with Claude Code

…ditive)

First, non-breaking step of the pluck/lists pipeline. value($column) is a
copy of today's scalar pluck() body on both Query\Builder and Eloquent\Builder
— value() === pluck() for scalars right now. Purely additive: no call-site
changes behavior, pluck() untouched. Unblocks app 2.5b (->pluck()->->value())
WITHOUT flipping pluck semantics, so the repos never flip in the same instant.

Tests: value() returns the scalar and equals pluck() (Query + Eloquent).
Database suite 516 green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@agissept

Copy link
Copy Markdown
Member Author

Superseded by #64 (pre-release/4.2.96 → master), yang bundle semua task 2.5 (2.5a value + 2.5e SoftDeletes + 2.5d pluck-flip) sebagai satu release PR untuk deploy. Kode sama; ditutup biar nggak dobel-merge. Histori commit tetap ada di git.

@agissept agissept closed this Sep 17, 2026
@agissept
agissept deleted the migration/2.5a-builder-value-additive branch September 17, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant