feat: add password auth flag

This commit is contained in:
Steven
2024-07-27 19:24:37 +08:00
parent b9006f8ce0
commit 8bf7cdfd31
14 changed files with 236 additions and 216 deletions

View File

@ -52,7 +52,7 @@ func (d *DB) GetCurrentDBSize(ctx context.Context) (int64, error) {
" GROUP BY `table_schema`"
rows, err := d.db.QueryContext(ctx, query, d.config.DBName)
if err != nil {
slog.Error("Query db size error, make sure you have enough privilege", err)
slog.Error("Query db size error, make sure you have enough privilege", "error", err)
return 0, err
}
defer rows.Close()