feat: add StringKSUID and BinaryKSUID types

Replace the UUID wrapper with storage-specific KSUID types that share
GraphQL string transit but use distinct SQL Scan/Value encodings.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 17:47:41 -07:00
parent 984b52d198
commit a303e025b2
6 changed files with 330 additions and 66 deletions
+2 -2
View File
@@ -21,8 +21,8 @@
//
// # Identifier types
//
// [UUID] wraps segmentio/ksuid for GraphQL APIs. [JSONB] provides map-based
// JSON column scanning for Postgres JSONB and MySQL JSON.
// [StringKSUID] and [BinaryKSUID] wrap segmentio/ksuid with storage-specific
// SQL encoding. [JSONB] provides map-based JSON column scanning.
//
// # Pointer and string utilities
//