Project

General

Profile

1 532 aaronmk
"PostgreSQL","MySQL","Comments"
2 687 aaronmk
,,"PostgreSQL-only features"
3
"^SET\b[^;]*;",,
4 5772 aaronmk
"^(?:CREATE|ALTER) (?:AGGREGATE|PROCEDURAL LANGUAGE|SEQUENCE|(?:CONSTRAINT )?TRIGGER|TYPE|VIEW)\b[^;]*;",,
5 705 aaronmk
"(?s)^CREATE FUNCTION\b.*?(\$\w*\$).*?\1;",,
6 5328 aaronmk
"(?s)^COMMENT\b.*?';$",,
7 687 aaronmk
"^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 3197 aaronmk
"(?<=\bALTER TABLE )ONLY ",,
13
"\bINHERITS \(.*?\)",,
14 954 aaronmk
"\[\]",,"arrays"
15 6026 aaronmk
"(?s)^COPY\b.*?^\\\.$",,
16 6027 aaronmk
"^SELECT pg_catalog.setval\b.*?;$",,
17 687 aaronmk
,,"syntax changes"
18 537 aaronmk
"^--(?=\S)","\g<0> ",
19 561 aaronmk
"""([^""]*?)""","`\1`",
20 1231 aaronmk
"(?<=DEFAULT )(\d+|'[^']*')::\w+(?: [a-z]+)*","\1",
21 574 aaronmk
"(\d+|'[^']*')::(\w+(?: \w+)*)","CAST(\1 AS \2)",
22 687 aaronmk
,,"datatypes"
23 534 aaronmk
"\bserial( NOT NULL\b)?","int(11)\1 AUTO_INCREMENT",
24 687 aaronmk
"oid","int(11)",
25 1229 aaronmk
"integer","int(11)",
26
"boolean","int(1)",
27 687 aaronmk
"bytea","blob",
28
" with time zone\b",,
29 5233 aaronmk
"fulltext","`\g<0>`",
30 687 aaronmk
"\btimestamp\b(?: with time zone\b)?(?! NOT NULL\b)","\g<0> NULL",
31 5848 aaronmk
"^( *`?[a-z]\w*`? )(?!(?:date|datetime|double|int|text|time|timestamp)\b)\w+(?=\b[^;]*^\);)","\1text","custom types"