mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-07 02:04:21 +01:00
Get name of argument for scalars in extensions to allow for less rigid naming
This commit is contained in:
@@ -89,7 +89,7 @@ fn uuid7_ts(args: &[Value]) -> Value {
|
||||
let Some(text) = args[0].to_text() else {
|
||||
return Value::null();
|
||||
};
|
||||
let Ok(uuid) = uuid::Uuid::parse_str(&text) else {
|
||||
let Ok(uuid) = uuid::Uuid::parse_str(text) else {
|
||||
return Value::null();
|
||||
};
|
||||
let unix = uuid_to_unix(uuid.as_bytes());
|
||||
@@ -118,7 +118,7 @@ fn uuid_blob(&self, args: &[Value]) -> Value {
|
||||
let Some(text) = args[0].to_text() else {
|
||||
return Value::null();
|
||||
};
|
||||
match uuid::Uuid::parse_str(&text) {
|
||||
match uuid::Uuid::parse_str(text) {
|
||||
Ok(uuid) => Value::from_blob(uuid.as_bytes().to_vec()),
|
||||
Err(_) => Value::null(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user