(ns hyperion.sqlite.types
  (:require [chee.coerce :refer [->bool ->keyword]]
            [hyperion.coerce :refer [->long ->biginteger]]
            [hyperion.api :refer [unpack pack]]))

(defmethod pack java.lang.Boolean [_ value]
  (->bool value))

(defmethod unpack java.lang.Boolean [_ value]
  (->bool value))

(defmethod pack java.lang.Long [_ value]
  (->long value))

(defmethod unpack java.lang.Long [_ value]
  (->long value))

(defmethod pack clojure.lang.Keyword [_ value]
  (->keyword value))

(defmethod unpack clojure.lang.Keyword [_ value]
  (->keyword value))

(ns hyperion.sqlite.types
  (:require [chee.coerce :refer [->bool ->keyword]]
            [hyperion.coerce :refer [->long ->biginteger]]
            [hyperion.api :refer [unpack pack]]))

(defmethod pack java.lang.Boolean [_ value]
  (->bool value))

(defmethod unpack java.lang.Boolean [_ value]
  (->bool value))

(defmethod pack java.lang.Long [_ value]
  (->long value))

(defmethod unpack java.lang.Long [_ value]
  (->long value))

(defmethod pack clojure.lang.Keyword [_ value]
  (->keyword value))

(defmethod unpack clojure.lang.Keyword [_ value]
  (->keyword value))
