Project

General

Profile

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