-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Grant user privileges #3326
Comments
Michael Bayer (@zzzeek) wrote: absolutely. Easiest is to emit the desired GRANT statements using statement execution:
if you want automatic GRANTs which can also be conditional based on backends, see the DDL system. |
Changes by Michael Bayer (@zzzeek):
|
Leonardo Rossi (@hachreak) wrote: it's independent by the db server? :) |
Michael Bayer (@zzzeek) wrote: no. the differences in GRANT across databases are dramatically different not just in syntax but in semantics. For example, if you did a PG GRANT for a username, that won't work at all on MySQL - you need a hostname on MySQL as well. it's entirely not worth it at all to build such an API, it would be extremely complex and nobody would be using it, as it's more about configuration of the database itself. |
Migrated issue, originally created by Leonardo Rossi (@hachreak)
Exists the possibility to use SQLAlchemy to create user and grant privilege on the DB?
The text was updated successfully, but these errors were encountered: