mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 09:34:18 +01:00
Added last_insert_rowid() function.
Need to fix its behavior. Problem is probably with `Cursor` implementation.
This commit is contained in:
@@ -84,6 +84,7 @@ pub enum ScalarFunc {
|
||||
Hex,
|
||||
Unhex,
|
||||
ZeroBlob,
|
||||
LastInsertRowid,
|
||||
}
|
||||
|
||||
impl Display for ScalarFunc {
|
||||
@@ -124,6 +125,7 @@ impl Display for ScalarFunc {
|
||||
ScalarFunc::Hex => "hex".to_string(),
|
||||
ScalarFunc::Unhex => "unhex".to_string(),
|
||||
ScalarFunc::ZeroBlob => "zeroblob".to_string(),
|
||||
ScalarFunc::LastInsertRowid => "last_insert_rowid".to_string(),
|
||||
};
|
||||
write!(f, "{}", str)
|
||||
}
|
||||
@@ -192,6 +194,7 @@ impl Func {
|
||||
"date" => Ok(Func::Scalar(ScalarFunc::Date)),
|
||||
"time" => Ok(Func::Scalar(ScalarFunc::Time)),
|
||||
"typeof" => Ok(Func::Scalar(ScalarFunc::Typeof)),
|
||||
"last_insert_rowid" => Ok(Func::Scalar(ScalarFunc::LastInsertRowid)),
|
||||
"unicode" => Ok(Func::Scalar(ScalarFunc::Unicode)),
|
||||
"quote" => Ok(Func::Scalar(ScalarFunc::Quote)),
|
||||
"sqlite_version" => Ok(Func::Scalar(ScalarFunc::SqliteVersion)),
|
||||
|
||||
Reference in New Issue
Block a user