Struct CassandraParser

Source
pub struct CassandraParser {}
Expand description

The parser that walks the AST tree and produces a CassandraStatement.

Implementations§

Source§

impl CassandraParser

Source

pub fn parse_identifier(node: &Node<'_>, source: &str) -> Identifier

Source

pub fn parse_truncate(node: &Node<'_>, source: &str) -> FQName

Source

pub fn parse_use(node: &Node<'_>, source: &str) -> Identifier

Source

pub fn parse_alter_materialized_view( node: &Node<'_>, source: &str, ) -> AlterMaterializedView

parse the alter materialized view command

Source

pub fn parse_create_aggregate(node: &Node<'_>, source: &str) -> Aggregate

parse a create aggregate data statement

Source

pub fn parse_function_data(node: &Node<'_>, source: &str) -> CreateFunction

parse a create function statement

Source

pub fn parse_alter_type(node: &Node<'_>, source: &str) -> AlterType

parse an alter type statement

Source

pub fn parse_create_type(node: &Node<'_>, source: &str) -> CreateType

parse an create type statement

Source

pub fn parse_create_trigger(node: &Node<'_>, source: &str) -> CreateTrigger

parse a create trigger statement

Source

pub fn parse_alter_table(node: &Node<'_>, source: &str) -> AlterTable

parse an alter table statement.

Source

pub fn parse_create_materialized_vew( node: &Node<'_>, source: &str, ) -> CreateMaterializedView

parse a create materialized view statement

Source

pub fn parse_create_table(node: &Node<'_>, source: &str) -> CreateTable

parse a create table statement

Source

pub fn parse_index(node: &Node<'_>, source: &str) -> CreateIndex

parse create index statement.

Source

pub fn parse_list_role_data(node: &Node<'_>, source: &str) -> ListRole

parse the list roles statement

Source

pub fn parse_create_role(node: &Node<'_>, source: &str) -> RoleCommon

parse the create role statement

Source

pub fn parse_keyspace_data(node: &Node<'_>, source: &str) -> CreateKeyspace

parse the create keyspace command

Source

pub fn parse_create_user(node: &Node<'_>, source: &str) -> CreateUser

parse the create user statement

Source

pub fn parse_update(node: &Node<'_>, source: &str) -> Update

parse the update statement.

Source

pub fn parse_privilege(node: &Node<'_>, source: &str) -> Privilege

parse the privilege data.

Source

pub fn parse_delete_statement(node: &Node<'_>, source: &str) -> Delete

Source

pub fn parse_insert(node: &Node<'_>, source: &str) -> Insert

parse an insert statement.

Source

pub fn parse_from_spec(node: &Node<'_>, source: &str) -> FQName

parse the FROM clause

Source

pub fn parse_select_elements( node: &Node<'_>, source: &str, ) -> Vec<SelectElement>

Source

pub fn parse_select(node: &Node<'_>, source: &str) -> Select

parse a select statement

Source

pub fn parse_select_element(node: &Node<'_>, source: &str) -> SelectElement

parse a select element

Source

pub fn parse_standard_drop(node: &Node<'_>, source: &str) -> CommonDrop

parse the standard drop specification.

Source

pub fn parse_drop_trigger(node: &Node<'_>, source: &str) -> DropTrigger

parse a drop trigger statement.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.