Skip to content

Commit

Permalink
Add AUTOINCREMENT support in ddl2cpp for sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
rbock committed Mar 3, 2019
1 parent d1b8bde commit 80e25a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ddl2cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ optionalArgs = {
'-fail-on-parse': "abort instead of silent genereation of unusable headers", # failOnParse = True
'-warn-on-parse': "warn about unusable headers, but continue", # warnOnParse = True
'-auto-id': "Assume column 'id' to have an automatic value as if AUTO_INCREMENT was specified (e.g. implicit for SQLite ROWID)", # autoId = True
'-identity-naming': "Use table and column names from the ddl (defaults to UpperCamelCase for tables and lowerCamelCase for columns", # identityNaming = True
'-identity-naming': "Use table and column names from the ddl (defaults to UpperCamelCase for tables and lowerCamelCase for columns)", # identityNaming = True
'-split-tables': "Make a header for each table name, using target as a directory", # splitTables = True
'-help': "show this help"
}
Expand Down Expand Up @@ -215,6 +215,7 @@ ddlNotNull = Group(ddlWord("NOT") + ddlWord("NULL")).setResultsName("notNull")
ddlDefaultValue = ddlWord("DEFAULT").setResultsName("hasDefaultValue")
ddlAutoValue = Or([
ddlWord("AUTO_INCREMENT"),
ddlWord("AUTOINCREMENT"),
ddlWord("SMALLSERIAL"),
ddlWord("SERIAL"),
ddlWord("BIGSERIAL"),
Expand Down

0 comments on commit 80e25a5

Please sign in to comment.