mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 01:24:20 +01:00
feat: added likely scalar function
This commit is contained in:
@@ -292,6 +292,7 @@ pub enum ScalarFunc {
|
||||
LoadExtension,
|
||||
StrfTime,
|
||||
Printf,
|
||||
Likely,
|
||||
}
|
||||
|
||||
impl Display for ScalarFunc {
|
||||
@@ -346,6 +347,7 @@ impl Display for ScalarFunc {
|
||||
Self::LoadExtension => "load_extension".to_string(),
|
||||
Self::StrfTime => "strftime".to_string(),
|
||||
Self::Printf => "printf".to_string(),
|
||||
Self::Likely => "likely".to_string(),
|
||||
};
|
||||
write!(f, "{}", str)
|
||||
}
|
||||
@@ -596,6 +598,7 @@ impl Func {
|
||||
"sqlite_version" => Ok(Self::Scalar(ScalarFunc::SqliteVersion)),
|
||||
"sqlite_source_id" => Ok(Self::Scalar(ScalarFunc::SqliteSourceId)),
|
||||
"replace" => Ok(Self::Scalar(ScalarFunc::Replace)),
|
||||
"likely" => Ok(Self::Scalar(ScalarFunc::Likely)),
|
||||
#[cfg(feature = "json")]
|
||||
"json" => Ok(Self::Json(JsonFunc::Json)),
|
||||
#[cfg(feature = "json")]
|
||||
|
||||
Reference in New Issue
Block a user