Loading...

vastorbit.current_session

vastorbit.current_session() int

Returns the current DB session.

Returns:

DB session.

Return type:

int

Examples

Displays the current DB session:

from vastorbit.sql import current_session

current_session()

Note

The session is used as an identifier in the vastorbit logs.

See also

username() : current DB username.
has_privileges() : checks user privileges.