mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 13:04:20 +01:00
handle single, double and unquoted strings in values clause
This commit is contained in:
@@ -1178,6 +1178,14 @@ impl Name {
|
||||
_ => Name::Ident(s.to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
/// Checks if a name represents a double-quoted string that should get fallback behavior
|
||||
pub fn is_double_quoted(&self) -> bool {
|
||||
if let Self::Quoted(ident) = self {
|
||||
return ident.starts_with("\"");
|
||||
}
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
struct QuotedIterator<'s>(Bytes<'s>, u8);
|
||||
|
||||
Reference in New Issue
Block a user