Fork me on GitHub
#xtdb
<
2021-08-14
>
plins20:08:38

is there a way or configuring the Web Query Runner to connect to an specific Postgresql instance? I know there is crux.edn but im not sure what to put in there atm the Web Query Runner is connected to a memory node

:crux.index/index-version
18

:crux.kv/estimate-num-keys
0

:crux.kv/kv-store
"crux.mem_kv.MemKv"

:crux.version/revision
"2f406b57d7e21333de40dae8f8598df0a410d7af"

:crux.version/version
"1.18.0"

refset20:08:37

Hi, I'm not sure what you're referring to when you say "Web Query Runner" - are you talking about the UI included with crux-http-server? For connecting to Postgres, you can read about crux-jdbc configuration options here: https://opencrux.com/reference/1.18.0/jdbc.html You might also find it interesting to see how Biff configures things https://github.com/jacobobryant/biff/blob/81f50a64d11e428848f4d41d98248a18bac8b1da/libs/crux/src/biff/crux.clj#L94-L103

plins21:08:16

when I say Web Query Runner I mean the UI included in http server so I should add the config to crux.edn like the map we pass to start-node ?

refset13:08:05

ah okay, and yep the crux.edn and the start-node parameter map are essentially the same thing (just be mindful about quoting)

thanks3 3