Add JSON types
This commit is contained in:
parent
f187fe6dba
commit
6c3437a5f1
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = ProcruSQL
|
name = ProcruSQL
|
||||||
version = 0.0.11
|
version = 0.0.12
|
||||||
author = Peter J. Holzer
|
author = Peter J. Holzer
|
||||||
author_email = hjp@hjp.at
|
author_email = hjp@hjp.at
|
||||||
description = Make a database fit its description
|
description = Make a database fit its description
|
||||||
|
|
|
@ -293,6 +293,7 @@ def parse_column_definition(ps):
|
||||||
"time",
|
"time",
|
||||||
"inet",
|
"inet",
|
||||||
"double precision", "float8", "real", "float4",
|
"double precision", "float8", "real", "float4",
|
||||||
|
"json", "jsonb",
|
||||||
)
|
)
|
||||||
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*"
|
pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*"
|
||||||
m = ps2.match(pattern)
|
m = ps2.match(pattern)
|
||||||
|
|
Loading…
Reference in New Issue