Skip to content

Implement CREATE TABLE Parser #5

Description

@stifskere

Sub-issue of #3

Objective

Parse CREATE TABLE SQL statements and extract schema info, starting with PostgreSQL dialect.

Tasks

Stage 1: PostgreSQL CREATE TABLE (priority)

  • Tokenize and parse PostgreSQL CREATE TABLE syntax.
  • Extract table name, columns, and constraints.
  • Output intermediate representation usable by AST builder.

Stage 2: Full MVP / Other Dialects

  • Extend parser to MySQL, MariaDB, SQLite syntax variants.
  • Handle complex constraints, indexes, and extended column types.

Note: No Stage 1 for other dialects; prioritize Stage 1 PostgreSQL parser first

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions