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
SQL Commands - Create/Drop User #4000
SQL Commands - Create/Drop User #4000
Conversation
@matanshukry Thanks for this PR! We're in RC phase, I'll merge it for sure as soon as we'll switch to 2.2-SNAPSHOT. |
lvca - There seem to be more conflicts. Please comment again when the project has moved to 2.2-SNAPSHOT, I'll fix it and push again then (it will send me an email notification). |
@matanshukry Now develop is 2.2-SNAPSHOT ;-) About this what do you think on supporting multiple roles syntax like:
Example:
or
Example:
|
Conflicts: tools/src/main/java/com/orientechnologies/orient/console/OConsoleDatabaseApp.java
I stayed with a single keyword, seems more consistent. Also, merged again with develop. |
Thanks! |
I saw test cases are missing, I'm going to write them. |
The following are two sections, each for the documentation regarding the 2 new commands,
create user and drop user. They are simply followed one by another in this page, but they are supposed to be separated and put each in his own file.
SQL - CREATE USER
Creates a user in the current database, with the specified password and an optional role.
Note that if a role isn't specified, a default role ("writer") is used.
Note this is simply a wrapper around OUser and ORole tables; Look up Security for more details.
Syntax
Examples
Creates a new user called 'Foo', with password 'bar', and role 'admin'
Creates a new user called 'Bar', with password 'Foo'
To know more about other SQL commands look at SQL commands.
SQL - DROP USER
Drops a user from the current database.
Note this is simply a wrapper around OUser table; Look up Security for more details.
Syntax
Examples
Drop a user called 'Foo'
To know more about other SQL commands look at SQL commands.