Skip to main content

parse_cql_schema

Function parse_cql_schema 

Source
pub fn parse_cql_schema(input: &str) -> IResult<&str, TableSchema>
👎Deprecated since 0.2.0:

Use cqlite_core::cql::parse_cql_schema_enhanced() instead for better error handling

Expand description

Parse CQL CREATE TABLE statement (backward compatibility function)

DEPRECATED: This function maintains backward compatibility with existing code. For new code, use cqlite_core::schema::parse_cql_schema() which is synchronous and returns Result<TableSchema> instead of nom::IResult.

§Arguments

  • input - The CQL CREATE TABLE statement to parse

§Returns

  • nom::IResult<&str, crate::schema::TableSchema> - Parsed schema or error