Add WITH PASSWORD & RETENTION POLICY

pull/1270/head
David Norton 2014-12-29 11:23:19 -05:00
parent f6c1b75cef
commit 7683eb6754
1 changed files with 2 additions and 2 deletions

View File

@ -4,14 +4,14 @@ The top level name is called a measurement. These names can contain any characte
```sql
-- create a database
CREATE DATABASE <name>
CREATE DATABASE <name> (WITH [DEFAULT] RETENTION POLICY <rp-name> ...)+
```
# Users and permissions
```sql
-- create user
CREATE USER <name> <password>
CREATE USER <name> WITH PASSWORD <password>
-- grant DB read privileges
GRANT READ ON <db> TO <user>