mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
parent
b8dffbf7f9
commit
f612ead8a3
5 changed files with 79 additions and 4 deletions
|
@ -77,6 +77,7 @@ pub enum ScalarFunc {
|
|||
SqliteVersion,
|
||||
UnixEpoch,
|
||||
Hex,
|
||||
ZeroBlob,
|
||||
}
|
||||
|
||||
impl Display for ScalarFunc {
|
||||
|
@ -112,6 +113,7 @@ impl Display for ScalarFunc {
|
|||
ScalarFunc::SqliteVersion => "sqlite_version".to_string(),
|
||||
ScalarFunc::UnixEpoch => "unixepoch".to_string(),
|
||||
ScalarFunc::Hex => "hex".to_string(),
|
||||
ScalarFunc::ZeroBlob => "zeroblob".to_string(),
|
||||
};
|
||||
write!(f, "{}", str)
|
||||
}
|
||||
|
@ -182,6 +184,7 @@ impl Func {
|
|||
"json" => Ok(Func::Json(JsonFunc::Json)),
|
||||
"unixepoch" => Ok(Func::Scalar(ScalarFunc::UnixEpoch)),
|
||||
"hex" => Ok(Func::Scalar(ScalarFunc::Hex)),
|
||||
"zeroblob" => Ok(Func::Scalar(ScalarFunc::ZeroBlob)),
|
||||
_ => Err(()),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue