| 1 | module mysql |
| 2 | |
| 3 | // MySQL refresh flags. |
| 4 | // Docs: https://dev.mysql.com/doc/c-api/8.0/en/mysql-refresh.html |
| 5 | // /usr/include/mysql/mysql_com.h |
| 6 | pub const refresh_grant = u32(0x1) |
| 7 | pub const refresh_log = u32(0x2) |
| 8 | pub const refresh_tables = u32(0x4) |
| 9 | pub const refresh_hosts = u32(0x8) |
| 10 | pub const refresh_status = u32(0x10) |
| 11 | pub const refresh_threads = u32(0x20) |
| 12 | pub const refresh_replica = u32(0x40) |
| 13 | pub const refresh_slave = u32(0x40) // same as refresh_replica |
| 14 | pub const refresh_master = u32(0x80) |
| 15 | pub const refresh_error_log = u32(0x100) |
| 16 | pub const refresh_engine_log = u32(0x200) |
| 17 | pub const refresh_binary_log = u32(0x400) |
| 18 | pub const refresh_relay_log = u32(0x800) |
| 19 | pub const refresh_general_log = u32(0x1000) |
| 20 | pub const refresh_slow_log = u32(0x2000) |
| 21 | pub const refresh_read_lock = u32(0x4000) |
| 22 | pub const refresh_fast = u32(0x8000) |
| 23 | pub const refresh_user_resources = u32(0x80000) |
| 24 | pub const refresh_for_export = u32(0x100000) |
| 25 | pub const refresh_optimizer_costs = u32(0x200000) |
| 26 | pub const refresh_persist = u32(0x400000) |
| 27 | |