Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for hx (0.16 sec)

  1. enterprise/backend/src/metabase_enterprise/audit_app/pages/common.clj

        (hsql/call :case
          [:and [:= nil first-name] [:= nil last-name]]
          email
          [:or [:= nil first-name] [:= nil last-name]]
          (hx/concat (hsql/call :coalesce first-name "") (hsql/call :coalesce last-name ""))
          :else
          (hx/concat (hsql/call :coalesce first-name "") (hx/literal " ") (hsql/call :coalesce last-name "")))))
    
    (def datetime-unit-str->base-type
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2022-06-20 18:42
    - 12.1K bytes
    - Viewed (0)
  2. enterprise/backend/src/metabase_enterprise/audit_app/pages/common/pulses.clj

                   :channel.schedule_type
                   :channel.schedule_hour
                   :channel.schedule_day
                   :channel.schedule_frame
                   [:creator.id :creator_id]
                   [(hx/concat :creator.first_name (hx/literal " ") :creator.last_name) :creator_name]
                   [:channel.created_at :created_at]
                   [:pulse.parameters :pulse_parameters]]
       :from      [[:pulse_channel :channel]]
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2022-05-02 12:59
    - 6.2K bytes
    - Viewed (0)
  3. enterprise/backend/src/metabase_enterprise/audit_app/pages/schemas.clj

                                                    [:not= :card.database_id nil]
                                                    [:not= :card.table_id nil]]}]]
                   :select   [[(hx/concat :db_name (hx/literal " ") :db_schema) :schema]
                              [:%count.* :executions]]
                   :from     [:counts]
                   :group-by [:db_name :db_schema]
                   :order-by [[:%count.* :desc]]
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2021-09-20 17:37
    - 7.9K bytes
    - Viewed (0)
  4. enterprise/backend/src/metabase_enterprise/audit_app/pages/tables.clj

                                              :order-by [[:%count.* asc-or-desc]]
                                              :limit    10}]]
                   :select [:tx.table_id
                            [(hx/concat :db.name (hx/literal " ") :t.schema (hx/literal " ") :t.name) :table_name]
                            :tx.executions]
                   :from [[:table_executions :tx]]
                   :join [[:metabase_table :t]     [:= :tx.table_id :t.id]
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2021-09-20 17:37
    - 4.4K bytes
    - Viewed (0)
  5. enterprise/backend/src/metabase_enterprise/audit_app/pages/user_detail.clj

                                              [(hsql/call :case
                                                 [:= :u.is_superuser true]
                                                 (hx/literal "Admin")
                                                 :else
                                                 (hx/literal "User"))
                                               :role]
                                              :id
                                              :date_joined
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2021-09-22 11:25
    - 17.5K bytes
    - Viewed (0)
  6. enterprise/backend/test/metabase_enterprise/audit_app/pages/common_test.clj

    (deftest add-45-days-clause-test
      (testing "add 45 days clause"
        (is (=
              {:where
               [:>
                (hx/with-type-info
                  (hsql/call :cast :bob.dobbs #honeysql.types.SqlRaw{:s "date"})
                  {::hx/database-type "date"})
                nil]}
              (assoc-in (#'common/add-45-days-clause {} :bob.dobbs) [:where 2] nil)))))
    
    (deftest add-search-clause-test
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2022-08-13 00:42
    - 7.8K bytes
    - Viewed (0)
  7. enterprise/backend/src/metabase_enterprise/audit_app/pages/common/card_and_dashboard_detail.clj

                [metabase.models.dashboard :refer [Dashboard]]
                [metabase.models.interface :as mi]
                [metabase.models.revision :as revision]
                [metabase.util.honeysql-extensions :as hx]
                [metabase.util.schema :as su]
                [schema.core :as s]))
    
    (def ^:private ModelName
      (s/enum "card" "dashboard"))
    
    ;; SELECT {{group-fn(timestamp}} AS "date", count(*) AS views
    ;; FROM view_log
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2022-08-22 21:19
    - 6.3K bytes
    - Viewed (0)
  8. enterprise/backend/src/metabase_enterprise/advanced_permissions/models/permissions/application_permissions.clj

                [metabase.models.application-permissions-revision :as a-perm-revision]
                [metabase.models.permissions :as perms]
                [metabase.util.honeysql-extensions :as hx]
                [metabase.util.schema :as su]
                [schema.core :as s]
                [toucan.db :as db]))
    
    ;;; ---------------------------------------------------- Schemas -----------------------------------------------------
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2022-05-02 12:59
    - 4K bytes
    - Viewed (0)
  9. enterprise/backend/src/metabase_enterprise/audit_app/pages/common/cards.clj

    (ns metabase-enterprise.audit-app.pages.common.cards
      (:require [metabase-enterprise.audit-app.pages.common :as common]
                [metabase.db.connection :as mdb.connection]
                [metabase.util.honeysql-extensions :as hx]))
    
    (def avg-exec-time
      "HoneySQL for a CTE to include the average execution time for each Card."
      [:avg_exec_time {:select   [:card_id
                                  [:%avg.running_time :avg_running_time_ms]]
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2021-10-18 19:23
    - 3.5K bytes
    - Viewed (0)
  10. enterprise/backend/src/metabase_enterprise/audit_app/pages/queries.clj

       :results  (common/reducible-query
                  {:select   [[(hx/cast :date :started_at) :day]
                              [:%count.* :views]
                              [:%avg.running_time :avg_running_time]]
                   :from     [:query_execution]
                   :group-by [(hx/cast :date :started_at)]
                   :order-by [[(hx/cast :date :started_at) :asc]]})})
    
    Others
    - Registered: 2022-09-30 12:00
    - Last Modified: 2021-10-19 20:48
    - 13K bytes
    - Viewed (0)
Back to top