Skip to content

Adding suport for AUTOINCREMENT keyword from SQLite #299

@andreRaposo91

Description

@andreRaposo91

When creating a table in SQLite, the AUTOINCREMENT keyword can be used as a column constraint when it is the primary key.

In the current implementation, this keyword does not exist, as the MySQL implementation uses AUTO_INCREMENT, with an underscore.

I'm new to Treesitter but I think it comes down to adding a new keyword in line 154

keyword_autoincrement: _ => make_keyword("autoincrement"),

and replacing line 2717 with a choice for the keywords in the _column_constraint function

choice($.keyword_auto_increment, $.keyword_autoincrement),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions