This repository was archived by the owner on Jan 27, 2026. It is now read-only.
Fix set search path (#21) This is so strange to me. I've re-tested the updated npm package with a test app, and saw errors like this in the console: `Failed to set search_path error: syntax error at or near "$1"` The strange part is that I think that the search path setting actually worked, because the queries worked... Anyway - looks like this kind of prepared statements don't work with not-real queries (like this one). So instead, when we parse the connection string, we break down the list of schemas and escape each one. Re-tested this and now i don't get the error and the search path looks good. (PR co-authored by Claude. Because typescript)