System Functions
Return the server version as a tuple. | |
Return the server version as a string. | |
Return the name of the current database as a string. | |
Return the name of the current database branch as a string. |
Return the server version as a tuple.
The major
and minor
elements contain the major and the minor
components of the version; stage
is an enumeration value containing
one of 'dev'
, 'alpha'
, 'beta'
, 'rc'
or 'final'
;
stage_no
is the stage sequence number (e.g. 2
in an alpha 2
release); and local
contains an arbitrary array of local version
identifiers.
db>
select sys::get_version();
{(major := 1, minor := 0, stage := <sys::VersionStage>'alpha', stage_no := 1, local := [])}
Return the isolation level of the current transaction.
Possible return values are given by
sys::TransactionIsolation
.
db>
select sys::get_transaction_isolation();
{sys::TransactionIsolation.Serializable}
Enum
indicating the possible transaction
isolation modes.
This enum only accepts a value of Serializable
.