mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-17 01:07:19 +00:00
Support CREATE ROLE and DROP ROLE (#598)
* Parse GRANT ROLE and DROP ROLE * Gate create role on dialect * cargo fmt * clippy * no-std * clippy again
This commit is contained in:
parent
604f755a59
commit
91087fcba0
7 changed files with 543 additions and 42 deletions
|
@ -146,6 +146,13 @@ pub fn all_dialects() -> TestedDialects {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn assert_eq_vec<T: ToString>(expected: &[&str], actual: &[T]) {
|
||||
assert_eq!(
|
||||
expected,
|
||||
actual.iter().map(ToString::to_string).collect::<Vec<_>>()
|
||||
);
|
||||
}
|
||||
|
||||
pub fn only<T>(v: impl IntoIterator<Item = T>) -> T {
|
||||
let mut iter = v.into_iter();
|
||||
if let (Some(item), None) = (iter.next(), iter.next()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue