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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -