mvSQL Runtime Function - VERSION()¶
Version() Function Summary¶
The version()
function provides access to Vinyl's current version information. Calling the version()
function without any parameters returns the full Vinyl version (major.minor.release).
Syntax¶
version(<parameter>)
Parameters¶
parameter¶
An optional parameter that determines which user attribute is returned. Valid parameters include:
- 'major' - Returns the major numeric value for the Vinyl version. For example: 3
- 'minor' - Returns the minor numeric value for the Vinyl version. For example: 3
- 'build' - Returns the build numeric value for the Vinyl version. For example: 33390
- 'major.minor' - Returns the major and minor numeric values for the Vinyl version. For example: 3.3
- 'major.minor.build' - Returns the full Vinyl version (major.minor.release). For example: 3.3.33390
- 'hash' - Returns the alphanumeric value for the Vinyl version hash. For example: fedaf09b
- 'date' - Returns the date time value for the Vinyl version build. For example: 10/13/2023 3:54:27 PM
- 'isDeveloperBuild' - Returns a boolean value (0 or 1) to indicate if Vinyl version is a Developer build. For example: 0
- 'internalRelease' - Returns the Harmony release version. For example: 10.84. Requires Vinyl 3.3.34291 or later.
Returns¶
string¶
See the parameter.
Examples¶
version()
Returns:
3.3.33390
version('major')
Returns: 3
version('date')
Returns:
10/13/2023 3:54:27 PM
version('internalRelease')
Returns: 10.84