mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
add jsonb_set
This commit is contained in:
parent
dba82b40e3
commit
6c126dcd97
4 changed files with 46 additions and 1 deletions
|
@ -93,6 +93,7 @@ pub enum JsonFunc {
|
|||
JsonbInsert,
|
||||
JsonPretty,
|
||||
JsonSet,
|
||||
JsonbSet,
|
||||
JsonQuote,
|
||||
}
|
||||
|
||||
|
@ -126,6 +127,7 @@ impl Display for JsonFunc {
|
|||
Self::JsonbInsert => "jsonb_insert".to_string(),
|
||||
Self::JsonPretty => "json_pretty".to_string(),
|
||||
Self::JsonSet => "json_set".to_string(),
|
||||
Self::JsonbSet => "jsonb_set".to_string(),
|
||||
Self::JsonQuote => "json_quote".to_string(),
|
||||
}
|
||||
)
|
||||
|
@ -599,6 +601,7 @@ impl Func {
|
|||
"jsonb_replace" => Ok(Self::Json(JsonFunc::JsonReplace)),
|
||||
"json_pretty" => Ok(Self::Json(JsonFunc::JsonPretty)),
|
||||
"json_set" => Ok(Self::Json(JsonFunc::JsonSet)),
|
||||
"jsonb_set" => Ok(Self::Json(JsonFunc::JsonbSet)),
|
||||
"json_quote" => Ok(Self::Json(JsonFunc::JsonQuote)),
|
||||
"unixepoch" => Ok(Self::Scalar(ScalarFunc::UnixEpoch)),
|
||||
"julianday" => Ok(Self::Scalar(ScalarFunc::JulianDay)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue