Project

General

Profile

1
"PostgreSQL","MySQL","Comments"
2
,,"PostgreSQL-only features"
3
"^SET\b[^;]*;",,
4
"^(?:CREATE|ALTER) (?:AGGREGATE|SEQUENCE|TRIGGER|TYPE)\b[^;]*;",,
5
"(?s)^CREATE FUNCTION\b.*?(\$\w*\$).*?\1;",,
6
"^COMMENT\b[^;]*;",,
7
"^ALTER TABLE\b[^;]*\bSET DEFAULT nextval\([^;]*\)[^;]*;",,
8
"^CREATE\b[^;]*\bINDEX\b[^;]*\([^;]*\([^;]*;",,
9
",\n *CONSTRAINT\b.*\bCHECK\b.*?(?=,?$)",,
10
"\bDEFAULT \w*\(.*\)",,".* rather than .*? to allow nested ()"
11
"^(CREATE\b[^;]*\bINDEX\b[^;]*\b)USING \w+","\1",
12
"(?<=\bALTER TABLE )ONLY ",,                
13
,,"syntax changes"
14
"^--(?=\S)","\g<0> ",
15
"""([^""]*?)""","`\1`",
16
"(?<=DEFAULT )(\d+|'[^']*')::\w+(?: \w+)*","\1",
17
"(\d+|'[^']*')::(\w+(?: \w+)*)","CAST(\1 AS \2)",
18
,,"datatypes"
19
"\bserial( NOT NULL\b)?","int(11)\1 AUTO_INCREMENT",
20
"oid","int(11)",
21
"Integer","int(11)",
22
"Boolean","int(1)",
23
"bytea","blob",
24
" with time zone\b",,
25
"fulltext","\g<0>__",
26
"\btimestamp\b(?: with time zone\b)?(?! NOT NULL\b)","\g<0> NULL",
27
"^( *\w+ )\w{11,}(?=\b[^;]*^\);)","\1text","custom types"
(2-2/14)