Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: improve wording (#1845)
Yilong Li9b86097830ea
diff --git a/plugin/db/mysql/restore.go b/plugin/db/mysql/restore.goindex 4f94b13e6c..e7b45929ff 100644--- a/plugin/db/mysql/restore.go+++ b/plugin/db/mysql/restore.go@@ -40,12 +40,12 @@ const (// Variable lower_case_table_names related.- // LetterCaseOnDiskLetterCaseCmp stores table and database names using the lettercase specified in the CREATE TABLE or CREATE DATABASE statement.+ // LetterCaseOnDiskLetterCaseCmp stores table and database names using the letter case specified in the CREATE TABLE or CREATE DATABASE statement.// Name comparisons are case-sensitive.LetterCaseOnDiskLetterCaseCmp = 0// LowerCaseOnDiskLowerCaseCmp stores table names in lowercase on disk and name comparisons are not case-sensitive.LowerCaseOnDiskLowerCaseCmp = 1- // LetterCaseOnDiskLowerCaseCmp stores table and database names are stored on disk using the lettercase specified in the CREATE TABLE or CREATE DATABASE statement, but MySQL converts them to lowercase on lookup.+ // LetterCaseOnDiskLowerCaseCmp stores table and database names are stored on disk using the letter case specified in the CREATE TABLE or CREATE DATABASE statement, but MySQL converts them to lowercase on lookup.// Name comparisons are not case-sensitive.LetterCaseOnDiskLowerCaseCmp = 2)@@ -124,7 +124,7 @@ func (driver *Driver) replayBinlog(ctx context.Context, originalDatabase, pitrDacase LetterCaseOnDiskLowerCaseCmp:originalDBName = strings.ToLower(originalDatabase)default:- return fmt.Errorf("Expecting value of %s in range [%d, %d, %d], but get %s", caseVariable, 0, 1, 2, identifierCaseSensitive)+ return fmt.Errorf("expecting value of %s in range [%d, %d, %d], but get %s", caseVariable, 0, 1, 2, identifierCaseSensitive)}// Extract the SQL statements from the binlog and replay them to the pitrDatabase via the mysql client by pipe.diff --git a/server/database.go b/server/database.goindex 915ae0e473..f264845c87 100644--- a/server/database.go+++ b/server/database.go@@ -911,7 +911,7 @@ func getDatabaseDriver(ctx context.Context, engine db.Type, driverConfig db.DrivconnCtx,)if err != nil {- return nil, common.Errorf(common.DbConnectionFailure, fmt.Errorf("failed to connect database at %s:%s with user %q: %w", connectionConfig.Host, connectionConfig.Port, connectionConfig.Username, err))+ return nil, common.Errorf(common.DbConnectionFailure, fmt.Errorf("failed to connect database at %s:%s with user %q, error: %w", connectionConfig.Host, connectionConfig.Port, connectionConfig.Username, err))}return driver, nil}diff --git a/server/environment.go b/server/environment.goindex 964c36fa3d..17731d899c 100644--- a/server/environment.go+++ b/server/environment.go@@ -81,7 +81,7 @@ func (s *Server) registerEnvironmentRoutes(g *echo.Group) {RowStatus: &normalStatus,})if err != nil {- return echo.NewHTTPError(http.StatusInternalServerError, fmt.Errorf("Failed to find instances in the environment %d", id)).SetInternal(err)+ return echo.NewHTTPError(http.StatusInternalServerError, fmt.Errorf("failed to find instances in the environment %d", id)).SetInternal(err)}if len(instances) > 0 {return echo.NewHTTPError(http.StatusBadRequest, "You should archive all instances under the environment before archiving the environment.")diff --git a/server/task_executor_pitr_restore.go b/server/task_executor_pitr_restore.goindex f6f674cf6e..cfd2e973c4 100644--- a/server/task_executor_pitr_restore.go+++ b/server/task_executor_pitr_restore.go@@ -80,7 +80,7 @@ func (exec *PITRRestoreTaskExecutor) doPITRRestore(ctx context.Context, task *apmysqlDriver, ok := driver.(*mysql.Driver)if !ok {- log.Error("failed to cast driver to mysql.Driver")+ log.Error("Failed to cast driver to mysql.Driver")return fmt.Errorf("[internal] cast driver to mysql.Driver failed")}mysqlDriver.SetUpForPITR(exec.mysqlutil, binlogDir)diff --git a/store/backup.go b/store/backup.goindex b1b32b73d9..39c12fcb4f 100644--- a/store/backup.go+++ b/store/backup.go@@ -414,7 +414,6 @@ func (s *Store) createBackupImpl(ctx context.Context, tx *sql.Tx, create *api.Bacreate.MigrationHistoryVersion,create.Path,).Scan(-&backupRaw.ID,&backupRaw.CreatorID,&backupRaw.CreatedTs,