             [korma.sql.utils :as kutils]
             [clj-time.format :as f]
             [clj-time.coerce :as c]
-            [clj-time.core :as t])
+            [clj-time.core :as t]
+            [metabase.driver.sync :as sync]
+            [metabase.models.field :as field])
   (:import (clojure.lang Named)
            (java.sql Timestamp)))
 

    :week     (k/raw (sql-interval WEEK amount))
    :day      (k/raw (sql-interval DAY amount))))

(defrecord CrateDriver []
  Named
  (getName [_] "Crate"))

(defn- crate-spec
  [{:keys [host port]

                                        :type         :integer
                                        :default      4300}])
          :can-connect?  can-connect
          :date-interval date-interval
          :analyze-table analyze-table})
  sql/ISQLDriver CrateISQLDriverMixin)

(driver/register-driver! :crate (CrateDriver.))
