-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to open a connection as READONLY? #273
Comments
Which DB? I wanted to add something like that, but it's a bit tricky to hook into the connection to add it, at least for postgres. |
It's postgres. Yeah, I was trying to figure out how to make it readonly within the connection url but couldn't really find an answer myself either =/ Maybe I could try to figure out how datagrip does so we can have some sort of reference |
AFAIK that should be possible, by configuring |
+1 would also like this. @kristijanhusak, https://stackoverflow.com/questions/41960217/connecting-to-postgres-database-with-read-only-access. is it possible to run this after connecting? I would explicitly run something to make it read write obviously. I see table helpers, https://github.com/kristijanhusak/vim-dadbod-ui#table-helpers, however I don't think that would work. Maybe if there was auto command like post connect, i could run the |
@jay-babu each query is run as a separate call, there is no persistent connection. |
Oh hmmm. It doesn't grab and hold a connection/session, I see. If there was a way to run pre and post scripts that'd work too. Maybe just like auto commands in nvim |
Similar to a connection option we have in datagrip. This is really handy when connecting to production databases for debug purposes: where we definitely want to avoid running a write query by mistake.
The text was updated successfully, but these errors were encountered: