Changes

Jump to navigation Jump to search
25 bytes added ,  21:37, 27 April 2022
no edit summary
All functions and errors in this module are assigned to the <code><nowiki>http://basex.org/modules/admin</nowiki></code> namespace, which is statically bound to the {{Code|admin}} prefix.<br/>
=FunctionsDatabase Logs==admin:sessions== {| width='100%'|-| width='120' | '''Signatures'''|{{Func|admin:sessions||element(session)*}}|-| '''Summary'''|Returns an element sequence with all currently opened database sessions, including the user name, address (IP:port) and an optionally opened database.<br/>The output of this function and the {{Command|SHOW SESSIONS}} command is similar.|-| '''Examples'''|* {{Code|admin:sessions()}} may e.g. return <code><session user="admin" address="127.0.0.1:6286" database="factbook"/></code>|}
==admin:logs==
| '''Errors'''
|{{Error|today|#Errors}} Today's log file cannot be deleted.<br/>{{Error|delete|#Errors}} An error occurred while deleting a log file.
|}
 
=Database Sessions=
 
==admin:sessions==
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|admin:sessions||element(session)*}}
|-
| '''Summary'''
|Returns an element sequence with all currently opened database sessions, including the user name, address (IP:port) and an optionally opened database.<br/>The output of this function and the {{Command|SHOW SESSIONS}} command is similar.
|-
| '''Examples'''
|
* {{Code|admin:sessions()}} may e.g. return <code><session user="admin" address="127.0.0.1:6286" database="factbook"/></code>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu