feat(ksuid): add BinExpr, flexible parsers, and expression helpers

Adds ParseStringKSUIDAny, ParseBinaryKSUIDAny, BinaryKSUID.BinExpr, and
ExprStringKSUIDs for portal-compatible KSUID handling at API boundaries.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 18:26:17 -07:00
parent 689e022e3e
commit fa4efb38f7
7 changed files with 161 additions and 2 deletions
+2 -1
View File
@@ -28,7 +28,8 @@
// SQL encoding. Both implement [ApplyInterface] via Equal and IsZero for use
// with [ApplyInterfacePtr]. Both share identical GraphQL string scalar transit.
// Choose StringKSUID for text columns (VARCHAR, TEXT); choose BinaryKSUID for
// binary columns (BINARY(20), BYTEA).
// binary columns (BINARY(20), BYTEA). [ParseStringKSUIDAny] and
// [ParseBinaryKSUIDAny] accept flexible input for API boundaries.
//
// [JSONB] provides map-based JSON column scanning for Postgres JSONB and MySQL JSON.
//