db.jdbc-ext
->pgobject
(->pgobject x)(->pgobject x pgtype)Transforms Clojure data to a PGobject containing the data as JSON.
Takes a Clojure data structure and converts it to a PostgreSQL PGobject. When called with just a value, creates a jsonb PGobject. When called with both a value and a pgtype string, uses the specified PostgreSQL type. String values are stored directly; other values are serialized to JSON. Returns the configured PGobject.
refresh-enum-cache!
(refresh-enum-cache! connection)Refreshes the cache of PostgreSQL enum types.
Takes a JDBC connection or datasource, fetches all enum type names from the database, and updates the internal cache. Returns the set of enum type names.