Limit update rows for MySQL CLI client only in configuration -
sometimes have use mysql cli client make changes on production database. know these changes should ideally go database migration files, not practical or desirable when couple of rows have changed. prefer use migration files structural changes only, not data fixes.
i know can add limit clause update queries, won't solve problem since responsibility still on user add limit clause.
to reduce potential damage want limit, in config file, max number of rows can updated cli client query. limit should not apply other database connections made application code.
is possible?
Comments
Post a Comment