class MySQL::Connection
- MySQL::Connection
- Reference
- Object
Overview
MySQL connection class. Allows high-level interaction with mysql through LibMySQL.
NOTE The @handle is totally not threadsafe, because it is stateful. So if concurrency is needed, then each concurrent task should own its own connection.
Defined in:
mysql/connection.crConstructors
Instance Method Summary
- #client_info
- #close
- #commit_transaction
- #connect(host, user, pass, db, port, socket, flags = 0_u32)
- #error
- #insert_id
-
#query(query_string)
@non-threadsafe!
- #rollback_transaction
- #set_option(option : LibMySQL::MySQLOption, value : String)
- #set_option(option : LibMySQL::MySQLOption, value : Bool)
- #set_option(option : LibMySQL::MySQLOption, value)
- #start_transaction
- #transaction(&)