0
0
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:
Carlitxxx86 2022-04-19 18:45:46 -04:00 committed by Roland Bock
parent 9bfee74a99
commit 31ef4f2e54

View File

@ -217,6 +217,7 @@ ddlAutoKeywords = [
"SMALLSERIAL",
"SERIAL",
"BIGSERIAL",
"GENERATED",
]
ddlAutoValue = pp.Or(map(pp.CaselessLiteral, sorted(ddlAutoKeywords, reverse=True)))
@ -244,6 +245,7 @@ ddlConstraintKeywords = [
"INDEX",
"UNIQUE",
"CHECK",
"PERIOD",
]
ddlConstraint = pp.Group(
pp.Or(map(pp.CaselessLiteral, sorted(ddlConstraintKeywords, reverse=True)))