Created
December 25, 2013 16:00
-
-
Save jjl/8124490 to your computer and use it in GitHub Desktop.
How to deal with postgres JSON column types through JDBC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn pg-json-to-string [thing] | |
(.setType thing "java.lang.String") ;; "Pretend you are a string" | |
(.getValue thing)) ;; Now we can actually get the value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment