Top.Mail.Ru
Submodule box.schema | Tarantool
 
Reference / Built-in modules reference / Module box / Submodule box.schema
Reference / Built-in modules reference / Module box / Submodule box.schema

Submodule box.schema

Submodule box.schema

The box.schema submodule has data-definition functions for spaces, users, roles, function tuples, and sequences.

Below is a list of all box.schema functions.

Name Use
box.schema.space.create() / schema_object:create_space() Create a space
box.schema.upgrade() Upgrade a database
box.schema.user.create() Create a user
box.schema.user.drop() Drop a user
box.schema.user.exists() Check if a user exists
box.schema.user.grant() Grant privileges to a user or a role
box.schema.user.revoke() Revoke privileges from a user or a role
box.schema.user.password() Get a hash of a user’s password
box.schema.user.passwd() Associate a password with a user
box.schema.user.info() Get a description of a user’s privileges
box.schema.role.create() Create a role
box.schema.role.drop() Drop a role
box.schema.role.exists() Check if a role exists
box.schema.role.grant() Grant privileges to a role
box.schema.role.revoke() Revoke privileges from a role
box.schema.role.info() Get a description of a role’s privileges
box.schema.func.create() Create a function tuple
box.schema.func.drop() Drop a function tuple
box.schema.func.exists() Check if a function tuple exists
box.schema.func.reload() Reload a C module with all its functions, no restart