Skip to content

Commit a240bf2

Browse files
committed
Refactor supported features
1 parent 13b1ec3 commit a240bf2

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

src/metabase/driver/firebird.clj

+13-19
Original file line numberDiff line numberDiff line change
@@ -258,22 +258,16 @@
258258
(sql.qp/->honeysql driver (t/local-date t))
259259
(hx/cast :TIMESTAMP (t/format "yyyy-MM-dd HH:mm:ss.SSSS" t))))
260260

261-
(defmethod driver/database-supports? [:firebird :basic-aggregations] [_ _] true)
262-
263-
(defmethod driver/database-supports? [:firebird :expression-aggregations] [_ _] true)
264-
265-
(defmethod driver/database-supports? [:firebird :standard-deviation-aggregations] [_ _] true)
266-
267-
(defmethod driver/database-supports? [:firebird :foreign-keys] [_ _] true)
268-
269-
(defmethod driver/database-supports? [:firebird :nested-fields] [_ _] false)
270-
271-
(defmethod driver/database-supports? [:firebird :set-timezone] [_ _] false)
272-
273-
(defmethod driver/database-supports? [:firebird :nested-queries] [_ _] true)
274-
275-
(defmethod driver/database-supports? [:firebird :binning] [_ _] false)
276-
277-
(defmethod driver/database-supports? [:firebird :case-sensitivity-string-filter-options] [_ _] false)
278-
279-
(defmethod driver/database-supports? [:firebird :schemas] [_ _] false)
261+
(doseq [[feature supported?] {; supported
262+
:basic-aggregations true
263+
:expression-aggregations true
264+
:foreign-keys true
265+
:nested-queries true
266+
:standard-deviation-aggregations true
267+
; not supported
268+
:binning false
269+
:case-sensitivity-string-filter-options false
270+
:nested-fields false
271+
:schemas false
272+
:set-timezone false}]
273+
(defmethod driver/database-supports? [:firebird feature] [_driver _feature _db] supported?))

0 commit comments

Comments
 (0)