You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
introduce ValueNode.serialized.
introduce eb.valSerialized.
introduce sql.valSerialized.
fix json-traversal test suite.
fix null handling @ compiler.
rename to `valJson`.
add instructions in errors.
typings test inserts.
call the new type `Json` instead, to not introduce a breaking change.
add missing json column @ Getting Started.
add `appendSerializedValue`.
Renames `valJson` to `jval` for JSON value wrapping
Renames the `valJson` method to `jval` for wrapping JSON values
when inserting or updating columns. This change promotes brevity
and consistency throughout the codebase.
The name change affects the expression builder, SQL raw builder,
and documentation.
* A symbol that is used to brand serialized objects/arrays.
82
+
* @internal
83
+
*/
84
+
declareconstSerializedBrand: unique symbol
85
+
86
+
/**
87
+
* A type that is used to brand serialized objects/arrays.
88
+
*/
89
+
exporttypeSerialized<Oextendsobject|null>=O&{
90
+
readonly[SerializedBrand]: '⚠️ When you insert into or update columns of type `Json` (or similar), you should wrap your JSON value with `eb.jval` or `sql.jval`, instead of `JSON.stringify`. ⚠️'
91
+
}
92
+
66
93
/**
67
94
* A shortcut for defining JSON columns, which are by default inserted/updated
0 commit comments