sql

All things SQL and JDBC...
2021-06-14T17:57:40.197200Z

Hi, i am trying to serialize a row loaded witn next.jdbc with transit and i am getting the following (i need to serialize the metadata)

Caused by: java.lang.RuntimeException: java.lang.Exception: Not supported: class next.jdbc.result_set$navize_row$fn__25001
	at com.cognitect.transit.impl.WriterFactory$1.write(WriterFactory.java:65)
I am guessing because of the nav that execute! adds to the protocols.

2021-06-14T17:57:54.197600Z

has anybody faced something similar? any suggestions?

seancorfield 2021-06-14T18:05:22.198500Z

@jmayaalv Is there an option on Transit to ignore metadata?

seancorfield 2021-06-14T18:05:28.198700Z

(I’ve never used Transit)

2021-06-14T18:40:36.201500Z

Transit doesn't serialize metadata as default but in this case I have to do. I think I'll just remove the Nav stuff from it. Thanks a lot

seancorfield 2021-06-14T18:59:10.202600Z

@jmayaalv Each row has quite a bit of metadata for implementing protocols, but mapping over the result set vector and just doing (vary-metadata row (constantly nil)) should work.

2021-06-14T19:03:26.203Z

Thanks a lot @seancorfield