rust-mysql-simple
rust-mysql-simple copied to clipboard
support statement query timeout
JDBC implementation: schedule a timer thread to send "KILL QUERY" command to mysql server when the statement executed over a timeout
You can either set a global query timeout for your connection using set @@max_statement_time=XX (be carefull, value for MariaDB are in seconds, and MySQL in milliseconds)
if you are using MariaDB, you can set that per command, prefixing commands with SET STATEMENT max_statement_time=XX FOR <command>.