mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
feat: add quote function
This commit is contained in:
parent
c2944f6eeb
commit
b6c720c90a
5 changed files with 66 additions and 4 deletions
|
@ -61,6 +61,7 @@ pub enum ScalarFunc {
|
|||
Date,
|
||||
Time,
|
||||
Unicode,
|
||||
Quote,
|
||||
}
|
||||
|
||||
impl ToString for ScalarFunc {
|
||||
|
@ -87,6 +88,7 @@ impl ToString for ScalarFunc {
|
|||
ScalarFunc::Date => "date".to_string(),
|
||||
ScalarFunc::Time => "time".to_string(),
|
||||
ScalarFunc::Unicode => "unicode".to_string(),
|
||||
ScalarFunc::Quote => "quote".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -130,6 +132,7 @@ impl Func {
|
|||
"date" => Ok(Func::Scalar(ScalarFunc::Date)),
|
||||
"time" => Ok(Func::Scalar(ScalarFunc::Time)),
|
||||
"unicode" => Ok(Func::Scalar(ScalarFunc::Unicode)),
|
||||
"quote" => Ok(Func::Scalar(ScalarFunc::Quote)),
|
||||
"json" => Ok(Func::Json(JsonFunc::JSON)),
|
||||
_ => Err(()),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue