Propose user & permissions query syntax

pull/1270/head
David Norton 2014-12-29 11:05:13 -05:00
parent 7743310432
commit f6c1b75cef
1 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,31 @@
The top level name is called a measurement. These names can contain any characters. Then there are field names, field values, tag keys and tag values, which can also contain any characters. Because of this, anywhere a measurement name, field name, field value, tag name, or tag value appears should be able to get wrapped in double quotes to deal with special characters.
# Databases
```sql
-- create a database
CREATE DATABASE <name>
```
# Users and permissions
```sql
-- create user
CREATE USER <name> <password>
-- grant DB read privileges
GRANT READ ON <db> TO <user>
-- grant DB write privileges
GRANT WRITE ON <db> TO <user>
-- grant all privileges for a DB
GRANT ALL [PRIVILEGES] ON <db> TO <user>
-- grant cluster admin privileges
GRANT ALL [PRIVILEGES] TO <user>
```
# Select
```sql