sql 2024-10-17

if i have a timestamp value in my postgres db what data type do i have to provide to next.jdbc honeysql. Is it sufficient to use LocalDateTime?

If you have required next.jdbc.date-time then yeah, LocalDateTime should be usable for timestamps without timezone.

should that be requiered next to jdbc?

I don't understand the question.

so in my ns i do

(ns some.ns
  (require 
    [next.jdbc :as jdbc]
    [next.jdbc.date-time :as jdbc2]))
or just require the date-time one

Just read the source code of next.jdbc.date-time. There's no need for :as - you won't use that namespace by itself, unless you need something other than being able to write LocalDateTime. It's not important where you require it as well - as long as you require it before you actually attempt to write LocalDateTime.