Top.Mail.Ru
box.schema.role.create() | Tarantool
 

box.schema.role.create()

box.schema.role.create()

box.schema.role.create(role-name[, {options}])

Create a role. For explanation of how Tarantool maintains role data, see section Roles.

Parameters:
  • role-name (string) – name of role, which should conform to the rules for object names
  • options (table) – if_not_exists = true|false (default = false) - boolean; true means there should be no error if the role already exists
Return:

nil

Example:

box.schema.role.create('Accountant')
box.schema.role.create('Accountant', {if_not_exists = false})