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
:as=>:hash,# the type of object you want each row back as; also supports :array (an array of values)
6
-
:async=>false,# don't wait for a result after sending the query, you'll have to monitor the socket yourself then eventually call Mysql2::Client#async_result
7
-
:cast_booleans=>false,# cast tinyint(1) fields as true/false in ruby
8
-
:symbolize_keys=>false,# return field names as symbols instead of strings
9
-
:database_timezone=>:local,# timezone Mysql2 will assume datetime objects are stored in
10
-
:application_timezone=>nil,# timezone Mysql2 will convert to before handing the object back to the caller
11
-
:cache_rows=>true,# tells Mysql2 to use it's internal row cache for results
:as=>:hash,# the type of object you want each row back as; also supports :array (an array of values)
15
+
:async=>false,# don't wait for a result after sending the query, you'll have to monitor the socket yourself then eventually call Mysql2::Client#async_result
16
+
:cast_booleans=>false,# cast tinyint(1) fields as true/false in ruby
17
+
:symbolize_keys=>false,# return field names as symbols instead of strings
18
+
:database_timezone=>:local,# timezone Mysql2 will assume datetime objects are stored in
19
+
:application_timezone=>nil,# timezone Mysql2 will convert to before handing the object back to the caller
20
+
:cache_rows=>true,# tells Mysql2 to use it's internal row cache for results
21
+
:cast=>true# cast result fields to corresponding Ruby data types
0 commit comments