Fork me on GitHub
#luminus
<
2020-04-10
>
jtth20:04:40

heyo, i’m not sure where to ask this, but i’m having trouble wiring up the luminus +h2 defaults with IntelliJ’s database browser. I’m not sure what the h2 url is supposed to be. Every time I add it I can’t seem to find the tables I’ve created, which I know work because I can query them through the conman connection in a REPL. I have the dev-config.edn set up to add the option database-url "jdbc:h2:./myproject_dev" but every time I try to connect to that through IntelliJ’s database browser (through that url) it doesn’t seem to show my tables. Any help is much appreciated! It connects just fine, but there’s nothing there.

jumar05:04:40

That’s interesting- usually you would see some sort of error. The default I think is that only one client can access the dB file (which is locked). Perhaps try to “refresh” the connection in InteliJ dB browser

jumar05:04:20

Also check the actual file on the disk

joefromct20:04:35

any chance your connection string is setup to something in memory? maybe like: "jdbc:h2:mem:test"

jtth20:04:24

the database url in jetbrains db connector is the same in the dev-config