class

MySQL::Connection

Inherits Reference < Object

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.

Constructors

Instance methods

client_info
Source
close
Source
commit_transaction
Source
connect(host, user, pass, db, port, socket, flags = 0_u32)
Source
error
Source
insert_id
Source
query(query_string)

@non-threadsafe!

Source
rollback_transaction
Source
set_option(option : LibMySQL::MySQLOption, value : String)
Source
set_option(option : LibMySQL::MySQLOption, value : Bool)
Source
set_option(option : LibMySQL::MySQLOption, value)
Source
start_transaction
Source
transaction
Source