mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Add typeof(X)
scalar function
This commit is contained in:
parent
dc0e6f7fcd
commit
67573e12e5
5 changed files with 94 additions and 3 deletions
|
@ -71,6 +71,7 @@ pub enum ScalarFunc {
|
|||
Substring,
|
||||
Date,
|
||||
Time,
|
||||
Typeof,
|
||||
Unicode,
|
||||
Quote,
|
||||
SqliteVersion,
|
||||
|
@ -104,6 +105,7 @@ impl Display for ScalarFunc {
|
|||
ScalarFunc::Substring => "substring".to_string(),
|
||||
ScalarFunc::Date => "date".to_string(),
|
||||
ScalarFunc::Time => "time".to_string(),
|
||||
ScalarFunc::Typeof => "typeof".to_string(),
|
||||
ScalarFunc::Unicode => "unicode".to_string(),
|
||||
ScalarFunc::Quote => "quote".to_string(),
|
||||
ScalarFunc::SqliteVersion => "sqlite_version".to_string(),
|
||||
|
@ -171,6 +173,7 @@ impl Func {
|
|||
"substring" => Ok(Func::Scalar(ScalarFunc::Substring)),
|
||||
"date" => Ok(Func::Scalar(ScalarFunc::Date)),
|
||||
"time" => Ok(Func::Scalar(ScalarFunc::Time)),
|
||||
"typeof" => Ok(Func::Scalar(ScalarFunc::Typeof)),
|
||||
"unicode" => Ok(Func::Scalar(ScalarFunc::Unicode)),
|
||||
"quote" => Ok(Func::Scalar(ScalarFunc::Quote)),
|
||||
"sqlite_version" => Ok(Func::Scalar(ScalarFunc::SqliteVersion)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue