Project

General

Profile

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