feophant 0.9.0

A SQL database server written in Rust and inspired by PostreSQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::common::take_whitespace;
use nom::bytes::complete::tag_no_case;
use nom::error::{ContextError, ParseError};
use nom::IResult;

mod create_table;
pub(super) use create_table::parse_create_table;
use nom::sequence::tuple;

pub(super) fn match_create<'a, E: ParseError<&'a str> + ContextError<&'a str>>(
    input: &'a str,
) -> IResult<&'a str, (), E> {
    let (input, (_, _)) = tuple((tag_no_case("create"), take_whitespace))(input)?;
    Ok((input, ()))
}