sql

All things SQL and JDBC...
practicalli-john 2020-09-13T21:35:09.347800Z

Has anyone used Clojure specs to generate mock data (hash-map) for persisting to the database, especially using the next.jdbc.sql friendly functions such as insert! ? I have a spec that generates a namespace qualified hash-map that has the data I would use to insert a new record. Seems I may need to drop the namespace qualification on the map (if thats possible) and change the spec to it doesnt contain composite specs for its keys. Any examples of this already out there before I re-invent the wheel?

seancorfield 2020-09-13T22:19:00.348300Z

@jr0cket Why do you think you need to drop the namespace qualification?

seancorfield 2020-09-13T22:19:40.348900Z

And, yes, at work we generate a lot of test data from specs, and insert it via next.jdbc.sql/insert!.