mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Added MariaDB keywords GENERATED and PERIOD
Both keywords are used for System Versioned tables. GENERATED marks a column as auto generated. PERIOD is ignored fro the script.
This commit is contained in:
parent
9bfee74a99
commit
31ef4f2e54
@ -217,6 +217,7 @@ ddlAutoKeywords = [
|
|||||||
"SMALLSERIAL",
|
"SMALLSERIAL",
|
||||||
"SERIAL",
|
"SERIAL",
|
||||||
"BIGSERIAL",
|
"BIGSERIAL",
|
||||||
|
"GENERATED",
|
||||||
]
|
]
|
||||||
ddlAutoValue = pp.Or(map(pp.CaselessLiteral, sorted(ddlAutoKeywords, reverse=True)))
|
ddlAutoValue = pp.Or(map(pp.CaselessLiteral, sorted(ddlAutoKeywords, reverse=True)))
|
||||||
|
|
||||||
@ -244,6 +245,7 @@ ddlConstraintKeywords = [
|
|||||||
"INDEX",
|
"INDEX",
|
||||||
"UNIQUE",
|
"UNIQUE",
|
||||||
"CHECK",
|
"CHECK",
|
||||||
|
"PERIOD",
|
||||||
]
|
]
|
||||||
ddlConstraint = pp.Group(
|
ddlConstraint = pp.Group(
|
||||||
pp.Or(map(pp.CaselessLiteral, sorted(ddlConstraintKeywords, reverse=True)))
|
pp.Or(map(pp.CaselessLiteral, sorted(ddlConstraintKeywords, reverse=True)))
|
||||||
|
Loading…
Reference in New Issue
Block a user