Get name of argument for scalars in extensions to allow for less rigid naming

This commit is contained in:
PThorpe92
2025-02-23 17:48:46 -05:00
parent e7713e87ec
commit 04abb200a7
2 changed files with 13 additions and 5 deletions

View File

@@ -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(),
}