Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Conversation

@davidcrawford
Copy link
Contributor

This commit adds support for user mappings to mongo users. This requires that you specify use_auth 'true' in the server options when using authentication.

The reason for adding the new use_auth option is that PG's GetUserMapping function throws an error if none exists. I was unable to find a way to check if a user mapping existed without throwing an error that aborts the query. So we only call GetUserMapping if the server has use_auth 'true'.

Look it over and let me know what you think!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant