           sqlv  [sql eid txid value]]
       (sc/execute conn sqlv))))
 
-
 (deftype RetractOperation [partition attr value]
   IOperation
   (-execute [_ conn txid]

(ns continuo.postgresql.transaction
  (:require [suricatta.core :as sc]
            [taoensso.nippy :as nippy]
            [continuo.postgresql.schema :as schema]
            [continuo.util.template :as tmpl]
            [continuo.util.codecs :as codecs]
            [continuo.executor :as exec]))

  the appropiate default materialized view."
  [context partition [op eid attrname value]]
  ;; resolve-attr :: context -> string -> Attribute
  (let [attr (attrs/resolve-attr context attrname)]
    (case op
      :db/add (AddOperation. partition eid attr value)
      :db/retract (RetractOperation. partition eid attr value)
