Repository navigation
mysql_set_option
Set an option of a set.
AUTO_RECONNECT is always on. POOL_SIZE is the connections of mysql_pquery, 4 by default, from 0 to 32. CHARSET is the character set, latin1 by default, the code page of the game. SSL_ENABLE requires TLS, and SSL_VERIFY also verifies the certificate of the server against SSL_CA_FILE or SSL_CA_PATH. SSL_FINGERPRINT requires the certificate of the server to have that SHA1 to SHA512 fingerprint. CONNECT_TIMEOUT, READ_TIMEOUT and WRITE_TIMEOUT are seconds, and SLOW_QUERY the milliseconds from which a query is logged. MAX_QUERY_LENGTH, MAX_PENDING and MAX_QUERIES_PER_SECOND refuse queries past them, and 0 sets no limit. ERROR_CALLBACK calls the public of a failed query too, after OnQueryError.
native bool:mysql_set_option(MySQLOpt:option_id, E_MYSQL_OPTION:type, ...);With open.mp names, from the same include:
native bool:MySQL_SetOption(MySQLOpt:option_id, E_MYSQL_OPTION:type, ...);| Parameter | Description |
|---|---|
MySQLOpt:option_id |
The options. |
E_MYSQL_OPTION:type |
The option. |
... |
Its value, an integer, a bool or a string. |
-
truewhen it was set. -
falsewhen the options or the option do not exist, or the value is not valid.
mysql 0.6.0 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Queries
- The cache
- JSON cells
- Prepared statements
- Transactions
- The ORM
- Passwords
- Errors
- TLS
- Coming from another plugin
- Performance
Reference
Functions
Connections
Queries
Cache
- cache_get_row_count
- cache_get_field_count
- cache_get_result_count
- cache_get_field_name
- cache_get_field_type
- cache_get_field_index
- cache_set_result
- cache_get_value_index
- cache_get_value_index_int
- cache_get_value_index_float
- cache_get_value_index_bool
- cache_is_value_index_null
- cache_get_value_name
- cache_get_value_name_int
- cache_get_value_name_float
- cache_get_value_name_bool
- cache_is_value_name_null
- cache_get_row
- cache_save
- cache_delete
- cache_set_active
- cache_unset_active
- cache_is_any_active
- cache_is_valid
- cache_affected_rows
- cache_insert_id
- cache_warning_count
- cache_get_query_exec_time
- cache_get_query_string
- cache_get_errno