Skip to main content

parse_create_lookup_table

Function parse_create_lookup_table 

Source
pub fn parse_create_lookup_table(
    parser: &mut Parser<'_>,
) -> Result<CreateLookupTableStatement, ParseError>
Expand description

Parse a CREATE LOOKUP TABLE statement.

Syntax:

CREATE [OR REPLACE] LOOKUP TABLE [IF NOT EXISTS] <name> (
  <col> <type> [NOT NULL],
  ...
  PRIMARY KEY (<col>, ...)
) WITH (
  'connector' = 'postgres-cdc',
  'connection' = 'postgresql://...',
  ...
);

ยงErrors

Returns ParseError if the statement syntax is invalid.