Fork me on GitHub
#duct
<
2019-01-25
>
jaihindhreddy14:01:33

I'm unable to extend the Boundary record.

jaihindhreddy14:01:34

(extend-type duct.database.sql/Boundary
  p/DB
    (upsert-posts [this posts]
      (jdbc/with-db-connection [conn (:spec this)]
        (-> (honey/insert-into :post)
            (honey/values posts)
            hon/format
            (update 0 str " on duplicate key update commentCount=values(commentCount), points=values(points)")
            jdbc/execute!))))

jaihindhreddy14:01:58

says: No such var: duct.database.sql/Boundary

jaihindhreddy14:01:12

Had to use duct.database.sql.Boundary. picard-facepalm Please ignore the noise.