Fork me on GitHub
#datalevin
<
2023-08-08
>
joshcho11:08:41

Is there a way to reload a live connection with an updated schema? Doing (d/get-conn "db" updated-schema) doesn't do it for me.

Garrett Hopper14:08:21

Looks like get-conn just returns the connection if it can be found and hasn't been closed. You'd probably want to rely on d/update-schema to ensure it's actually updated. (E.g. the schema to d/get-conn is just a default schema if a new connection/db has to be created)