postgres.ql
The result of a database operation that retrieves data.
| Constructor | Description |
|---|---|
| Result(errorCode, value, message) |
| Function | Description |
|---|---|
| static fun errorResult(errorCode, message) | Create a new error result. |
| static fun successResult(value) | Create a new success result. |
| fun getValue() | Gets the value from the internal optional of the result. |
| fun isSuccess() | Checks if the result is successful. |
| fun toString() |
| Field | Description |
|---|---|
| int errorCode | |
| Optional value | |
| string message |
Gets the value from the internal optional of the result.