new dbVersion(strVersion)
Represents a given version string in a comparable manor.
Parameters:
Name | Type | Description |
---|---|---|
strVersion |
dbVersion as a string. 1.0.0 or 1.0.0.1 |
- Source:
Methods
amNewer(other) → {boolean}
Is this instance newer (greater) than the given 'other' instance
Parameters:
Name | Type | Description |
---|---|---|
other |
- Source:
Returns:
- Type
- boolean
compare(other) → {number}
Compares me against another dbVersion instance.
Equal: 0
this newer: 1
other newer: -1
Parameters:
Name | Type | Description |
---|---|---|
other |
The other instance to compare against. |
- Source:
Returns:
0=Equals; 1=this newer; -1=other newer
- Type
- number