diff --git a/src/pod/babashka/sql.clj b/src/pod/babashka/sql.clj index 3fbb136..e15511c 100644 --- a/src/pod/babashka/sql.clj +++ b/src/pod/babashka/sql.clj @@ -179,11 +179,20 @@ \"%s\" (fn [s] (java.time.LocalDateTime/parse s))) +(babashka.pods/add-transit-read-handler! + \"%s\" + (fn [s] (java.time.LocalDate/parse s))) + (babashka.pods/add-transit-write-handler! #{java.time.LocalDateTime} \"%s\" str) +(babashka.pods/add-transit-write-handler! + #{java.time.LocalDate} + \"%s\" + str) + (babashka.pods/add-transit-read-handler! \"object\" identity) @@ -192,7 +201,7 @@ (fn [x] (when (.isArray (class x)) \"java.array\")) vec) " - ldt-key ldt-key)) + ldt-key ldt-key ldt-key ldt-key)) (def json-str "(defn write-json [obj]