You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Mysql2 gem is meant to serve the extremely common use-case of connecting, querying and iterating on results.
6
-
Some database libraries out there serve as direct 1:1 mappings of the already complex C API's available.
6
+
Some database libraries out there serve as direct 1:1 mappings of the already complex C APIs available.
7
7
This one is not.
8
8
9
9
It also forces the use of UTF-8 [or binary] for the connection [and all strings in 1.9, unless Encoding.default_internal is set then it'll convert from UTF-8 to that encoding] and uses encoding-aware MySQL API calls where it can.
10
10
11
11
The API consists of two classes:
12
12
13
-
`Mysql2::Client` - your connection to the database
13
+
`Mysql2::Client` - your connection to the database.
14
14
15
15
`Mysql2::Result` - returned from issuing a #query on the connection. It includes Enumerable.
16
16
@@ -26,7 +26,7 @@ By default, the mysql2 gem will try to find a copy of MySQL in this order:
26
26
27
27
* Option `--with-mysql-dir`, if provided (see below).
28
28
* Option `--with-mysql-config`, if provided (see below).
29
-
* Several typical paths for `msyql_config` (default for the majority of users).
29
+
* Several typical paths for `mysql_config` (default for the majority of users).
0 commit comments