Skip to content
Snippets Groups Projects
Commit 34b5ae90 authored by Simon Belak's avatar Simon Belak
Browse files

Fetch only fields we need for a table

parent db51164a
Branches
Tags
No related merge requests found
......@@ -911,7 +911,7 @@
([database] (candidate-tables database nil))
([database schema]
(let [rules (rules/get-rules ["table"])]
(->> (apply db/select Table
(->> (apply db/select [Table :id :schema :display_name :entity_type :db_id]
(cond-> [:db_id (u/get-id database)
:visibility_type nil]
schema (concat [:schema schema])))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment