pub struct CassandraParser {}
Expand description
The parser that walks the AST tree and produces a CassandraStatement.
Implementations§
Source§impl CassandraParser
impl CassandraParser
pub fn parse_identifier(node: &Node<'_>, source: &str) -> Identifier
pub fn parse_truncate(node: &Node<'_>, source: &str) -> FQName
pub fn parse_use(node: &Node<'_>, source: &str) -> Identifier
Sourcepub fn parse_alter_materialized_view(
node: &Node<'_>,
source: &str,
) -> AlterMaterializedView
pub fn parse_alter_materialized_view( node: &Node<'_>, source: &str, ) -> AlterMaterializedView
parse the alter materialized view command
Sourcepub fn parse_create_aggregate(node: &Node<'_>, source: &str) -> Aggregate
pub fn parse_create_aggregate(node: &Node<'_>, source: &str) -> Aggregate
parse a create aggregate data statement
Sourcepub fn parse_function_data(node: &Node<'_>, source: &str) -> CreateFunction
pub fn parse_function_data(node: &Node<'_>, source: &str) -> CreateFunction
parse a create function statement
Sourcepub fn parse_alter_type(node: &Node<'_>, source: &str) -> AlterType
pub fn parse_alter_type(node: &Node<'_>, source: &str) -> AlterType
parse an alter type statement
Sourcepub fn parse_create_type(node: &Node<'_>, source: &str) -> CreateType
pub fn parse_create_type(node: &Node<'_>, source: &str) -> CreateType
parse an create type statement
Sourcepub fn parse_create_trigger(node: &Node<'_>, source: &str) -> CreateTrigger
pub fn parse_create_trigger(node: &Node<'_>, source: &str) -> CreateTrigger
parse a create trigger statement
Sourcepub fn parse_alter_table(node: &Node<'_>, source: &str) -> AlterTable
pub fn parse_alter_table(node: &Node<'_>, source: &str) -> AlterTable
parse an alter table statement.
Sourcepub fn parse_create_materialized_vew(
node: &Node<'_>,
source: &str,
) -> CreateMaterializedView
pub fn parse_create_materialized_vew( node: &Node<'_>, source: &str, ) -> CreateMaterializedView
parse a create materialized view statement
Sourcepub fn parse_create_table(node: &Node<'_>, source: &str) -> CreateTable
pub fn parse_create_table(node: &Node<'_>, source: &str) -> CreateTable
parse a create table statement
Sourcepub fn parse_index(node: &Node<'_>, source: &str) -> CreateIndex
pub fn parse_index(node: &Node<'_>, source: &str) -> CreateIndex
parse create index statement.
Sourcepub fn parse_list_role_data(node: &Node<'_>, source: &str) -> ListRole
pub fn parse_list_role_data(node: &Node<'_>, source: &str) -> ListRole
parse the list roles statement
Sourcepub fn parse_create_role(node: &Node<'_>, source: &str) -> RoleCommon
pub fn parse_create_role(node: &Node<'_>, source: &str) -> RoleCommon
parse the create role statement
Sourcepub fn parse_keyspace_data(node: &Node<'_>, source: &str) -> CreateKeyspace
pub fn parse_keyspace_data(node: &Node<'_>, source: &str) -> CreateKeyspace
parse the create keyspace command
Sourcepub fn parse_create_user(node: &Node<'_>, source: &str) -> CreateUser
pub fn parse_create_user(node: &Node<'_>, source: &str) -> CreateUser
parse the create user statement
Sourcepub fn parse_update(node: &Node<'_>, source: &str) -> Update
pub fn parse_update(node: &Node<'_>, source: &str) -> Update
parse the update statement.
Sourcepub fn parse_privilege(node: &Node<'_>, source: &str) -> Privilege
pub fn parse_privilege(node: &Node<'_>, source: &str) -> Privilege
parse the privilege data.
pub fn parse_delete_statement(node: &Node<'_>, source: &str) -> Delete
Sourcepub fn parse_insert(node: &Node<'_>, source: &str) -> Insert
pub fn parse_insert(node: &Node<'_>, source: &str) -> Insert
parse an insert statement.
Sourcepub fn parse_from_spec(node: &Node<'_>, source: &str) -> FQName
pub fn parse_from_spec(node: &Node<'_>, source: &str) -> FQName
parse the FROM
clause
pub fn parse_select_elements( node: &Node<'_>, source: &str, ) -> Vec<SelectElement>
Sourcepub fn parse_select(node: &Node<'_>, source: &str) -> Select
pub fn parse_select(node: &Node<'_>, source: &str) -> Select
parse a select statement
Sourcepub fn parse_select_element(node: &Node<'_>, source: &str) -> SelectElement
pub fn parse_select_element(node: &Node<'_>, source: &str) -> SelectElement
parse a select element
Sourcepub fn parse_standard_drop(node: &Node<'_>, source: &str) -> CommonDrop
pub fn parse_standard_drop(node: &Node<'_>, source: &str) -> CommonDrop
parse the standard drop specification.
Sourcepub fn parse_drop_trigger(node: &Node<'_>, source: &str) -> DropTrigger
pub fn parse_drop_trigger(node: &Node<'_>, source: &str) -> DropTrigger
parse a drop trigger statement.
Auto Trait Implementations§
impl Freeze for CassandraParser
impl RefUnwindSafe for CassandraParser
impl Send for CassandraParser
impl Sync for CassandraParser
impl Unpin for CassandraParser
impl UnwindSafe for CassandraParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more