This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-24
Channels
- # announcements (10)
- # aws-lambda (9)
- # babashka (14)
- # beginners (166)
- # calva (63)
- # chlorine-clover (4)
- # cider (40)
- # cljs-dev (4)
- # clojure (182)
- # clojure-europe (18)
- # clojure-italy (5)
- # clojure-nl (5)
- # clojure-spec (17)
- # clojure-uk (55)
- # clojurescript (11)
- # core-async (12)
- # cursive (23)
- # datascript (5)
- # datomic (19)
- # emacs (4)
- # fulcro (46)
- # graalvm (2)
- # hoplon (2)
- # joker (3)
- # juxt (1)
- # keechma (2)
- # leiningen (20)
- # malli (1)
- # meander (7)
- # nrepl (1)
- # off-topic (72)
- # pedestal (6)
- # re-frame (15)
- # reitit (7)
- # shadow-cljs (34)
- # sql (14)
- # testing (14)
- # tools-deps (11)
- # tree-sitter (1)
- # vim (14)
- # xtdb (19)
- # yada (3)
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
You probably want the :timeout
option for statement execution (it's in the docs).
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).
@theamazingekko I use Flyway for migrations
You probably want the :timeout
option for statement execution (it's in the docs).