/// <summary>
        /// Generates a script from the data store for the latest version
        /// </summary>
        /// <returns>true if script generation was successful, otherwise false</returns>
        public string GenerateScriptForLatest()
        {
            var result = _migratorBackend.GenerateScriptForLatest();

            if (!result.IsSuccess)
            {
                throw new Exception($"Error when generating a migration script: {result.Exception.Message}.", result.Exception);
            }

            return(result.Script);
        }