feat: initial json_object implementation

This commit is contained in:
Jorge Hermo 2025-01-12 22:29:48 +01:00
parent 0dceb02ec0
commit c7b831515e
No known key found for this signature in database
GPG key ID: 70E7B2F0D5479A67
2 changed files with 32 additions and 0 deletions

View file

@ -29,6 +29,7 @@ pub enum JsonFunc {
JsonArrowExtract,
JsonArrowShiftExtract,
JsonExtract,
JsonObject,
JsonType,
}
@ -45,6 +46,7 @@ impl Display for JsonFunc {
Self::JsonArrayLength => "json_array_length".to_string(),
Self::JsonArrowExtract => "->".to_string(),
Self::JsonArrowShiftExtract => "->>".to_string(),
Self::JsonObject => "json_object".to_string(),
Self::JsonType => "json_type".to_string(),
}
)