JakeWheat / simple-sql-parser

SQL parser in Haskell
http://jakewheat.github.io/simple-sql-parser/latest
Other
82 stars 29 forks source link

SQLite: Add support for AUTOINCREMENT #45

Closed ad-si closed 10 months ago

ad-si commented 1 year ago

https://www.sqlite.org/autoinc.html

Currently yields following error:

ParseError 
  { peErrorString = "(line 2, column 45):\nunexpected Identifier Nothing \"AUTOINCREMENT\"\nexpecting constraint, null, not null, unique, primary key, check, references, , or )"
  , peFilename = ""
  , pePosition = (2,45)
  , peFormattedError = ":2:45:\n\t\"user_id\"\tINTEGER PRIMARY KEY AUTOINCREMENT,\n                                            ^\n(line 2, column 45):\nunexpected Identifier Nothing \"AUTOINCREMENT\"\nexpecting constraint, null, not null, unique, primary key, check, references, , or )"
  }