You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2019. It is now read-only.
SELECTt.table_schemaAS schema, t.table_nameAS name, NULLAS parent, NULLAS pk, CASE t.is_insertable_into WHEN 'YES' THEN TRUE ELSE FALSE END AS is_insertable_into
24
34
FROMinformation_schema.tables t
25
35
WHERE table_type ='FOREIGN TABLE'
26
-
) tables WHERE ((
36
+
) tables
37
+
WHERE CASE
38
+
WHEN $(whitelist) <>'' THEN
39
+
-- whitelist specific tables, with fully-qualified name (no schema assumes public).
40
+
replace((tables.schema||'.'||tables.name), 'public.', '') LIKE ANY(string_to_array(replace($(whitelist), '', ''), ','))
41
+
WHEN $(allowedSchemas) <>''OR $(blacklist) <>'' THEN ((
42
+
$(allowedSchemas) =''
43
+
OR
27
44
-- allow specific schemas (none or '' assumes all):
0 commit comments