Jesus I'm having a pain trying to add ragtime for database migrations xD
ah I see I see. Yes yes yees
uhuh uhuh! riiight.. so i just need to use older jdbc for migration scripts
luckily configuring dependencies in Clojure is a breeze
Use Migratus
ah, does that work with next.jdbc?
might take a look at it since it's nicer if I need less dependencies
@ahmed1hsn, thx, got that working and it's pretty nice
Hey, how can I set a timeout for all SQL operations? Using hugsql & adapter for next.jdbc. Could use setNetworkTimeout
, but not sure where to get executor for it
@theamazingekko I use Flyway for migrations
Works wonderfully well
That will provide a "query timeout" so that operations will timeout if they don't complete in time.
For connections, you probably want login timeout, which is available on master but not yet in a release (`.setLoginTimeout` is a method on DataSource
but was not available on the reified version you get from get-datasource
on a hash map or JDBC string -- it is available on a pooled connection datasource).