mirror of https://gitee.com/bigwinds/arangodb
Documentation: Example of user data in _createDatabase
This commit is contained in:
parent
80e3cd8c6f
commit
cd9df3460e
|
@ -3357,8 +3357,13 @@ static void CreateDatabaseCoordinator (const v8::FunctionCallbackInfo<v8::Value>
|
|||
/// require("org/arangodb/users").update(username, password, true);
|
||||
/// require("org/arangodb/users").remove(username);
|
||||
/// ```
|
||||
/// Alternatively, you can specify user data directly. For example:
|
||||
///
|
||||
/// This method can only be used from within the *_system* database.
|
||||
/// ```js
|
||||
/// db._createDatabase("newDB", [], [{ username: "newUser", passwd: "123456", active: true}])
|
||||
/// ```
|
||||
///
|
||||
/// Those methods can only be used from within the *_system* database.
|
||||
/// @endDocuBlock
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Reference in New Issue