Top.Mail.Ru
box.schema.user.exists() | Tarantool
Tarantool
Check out the new release 2.8

box.schema.user.exists()

box.schema.user.exists()

box.schema.user.exists(user-name)

Return true if a user exists; return false if a user does not exist. For explanation of how Tarantool maintains user data, see section Users and reference on _user space.

Parameters:
  • user-name (string) – the name of the user
Rtype:

bool

Example:

box.schema.user.exists('Lena')