a712ccc38f
Adds StringKSUIDExpr and BinaryKSUIDExpr for use with ExprValues, plus Expr() methods on both types. Removes ExprStringKSUIDs and BinExpr. Co-authored-by: Cursor <cursoragent@cursor.com>
1.6 KiB
1.6 KiB
Changelog
Unreleased (v1.0.0)
Breaking changes
- Removed
UUID,NewUUID, andParseUUID. - Added
StringKSUIDandBinaryKSUIDwith distinct SQL encodings and shared GraphQL string scalar transit. - Removed
DBConfig.AutoMigrate,SQLOFunc, andJSONB.ToMap(). - Replaced
Column/ColumnListintersection interfaces with dialect-neutral type aliases. Apply*andExpr*helpers now acceptColumn/ColumnList/Expressionaliases instead ofmysql.*types.
Added
StringKSUID.Equal/IsZero,BinaryKSUID.Equal/IsZero, and nil sentinel vars for [ApplyInterfacePtr].Query,MustQuery, andUpdateOnehelpers (+ Context variants).WithTxValuefor transactional functions that return a value.QueryCount,BuildQueryCountFn, andCountResultfor pagination counts.StringKSUIDExpr,BinaryKSUIDExpr, and flexibleParse*AnyKSUID parsers.MarshalUint64andUnmarshalUint64for JS-safe GraphQL uint64 scalars.- Context-aware variants for all query and mutation helpers.
Delete,DeleteAffected,WithTx,ContainsCol, andCurrentDialect().- Package documentation (
doc.go), expanded README, and subpackage docs fordbxm/dbxp. - Comprehensive tests for KSUID types, CRUD helpers, column utilities, and module lifecycle.
Changed
- Debug logger setup returns an error instead of panicking when
DebugLogis enabled without a dialect logger blank import. DestNameskips logging when the database module is not initialized.- Source reorganized into domain-focused files (
query.go,exec.go,apply.go, etc.).