Loading...

verticapy.username

verticapy.username() str

Returns the current DB username.

Returns

str

Username.

Examples

Displays the current DB user name:

from verticapy.sql import username

username()
Out[2]: 'dbadmin'

Note

The username can be important for determining privileges.

See also

current_session() : current DB session.
has_privileges() : checks user privileges.