Converts a Kotlin Result to Either.
If the Result contains a SQLError, it's used as-is. Otherwise, the exception is wrapped in a SQLError with UknownError code.
Either.Right with the success value, or Either.Left with SQLError