Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save myabc/220566 to your computer and use it in GitHub Desktop.
Save myabc/220566 to your computer and use it in GitHub Desktop.
Connection
==========
MRI:
----
#<DataObjects::Mysql::Connection:0x193b984
@concrete_command=DataObjects::Mysql::Command, @path="/do_test",
@my_encoding="utf8", @using_socket=false, @port=3306, @__allocated_in_pool=Wed
Oct 28 16:51:17 +0100 2009, @uri=#<struct DataObjects::URI scheme="mysql",
user=nil, password=nil, host="localhost", port=3306, path="/do_test", query=nil,
fragment=nil>, @ssl_cipher=nil, @query=nil, @host="localhost",
@__pool=#<Extlib::Pooling::Pool<DataObjects::Mysql::Connection> available=0
used=1 size=8>, @connection=#<Object:0x193b8d0>, @encoding="UTF-8">
JRuby:
------
#<DataObjects::Mysql::Connection:0x2db73e>
Command
=======
MRI:
----
"#<DataObjects::Mysql::Command:0x1885c88
@connection=#<DataObjects::Mysql::Connection:0x19139d4 @my_encoding=\"utf8\",
@port=3306, @path=\"/do_test\", @using_socket=false, @__allocated_in_pool=Wed
Oct 28 17:02:40 +0100 2009, @ssl_cipher=nil, @uri=#<struct DataObjects::URI
scheme=\"mysql\", user=nil, password=nil, host=\"localhost\", port=3306,
path=\"/do_test\", query=nil, fragment=nil>, @query=nil, @host=\"localhost\",
@__pool=#<Extlib::Pooling::Pool<DataObjects::Mysql::Connection> available=0
used=1 size=8>, @connection=#<Object:0x1913920>, @encoding=\"UTF-8\",
@concrete_command=DataObjects::Mysql::Command>, @text=\"INSERT INTO users (name)
VALUES (?)\">"
JRuby:
------
"#<DataObjects::Mysql::Command:0x1af0fcf @text=\"INSERT INTO users (name) VALUES
(?)\", @connection=#<DataObjects::Mysql::Connection:0x15998cb>>"
Reader
======
MRI:
----
#<DataObjects::Mysql::Reader:0x18a6154 @field_types=[String, String],
@field_count=2, @connection=#<DataObjects::Mysql::Connection:0x1915c20
@path="/do_test", @using_socket=false, @query=nil, @ssl_cipher=nil,
@__allocated_in_pool=Wed Oct 28 16:55:12 +0100 2009, @host="localhost",
@uri=#<struct DataObjects::URI scheme="mysql", user=nil, password=nil,
host="localhost", port=3306, path="/do_test", query=nil, fragment=nil>,
@connection=#<Object:0x1915b6c>, @encoding="UTF-8",
@concrete_command=DataObjects::Mysql::Command,
@__pool=#<Extlib::Pooling::Pool<DataObjects::Mysql::Connection> available=0
used=1 size=8>, @port=3306, @my_encoding="utf8">, @opened=false,
@reader=#<Object:0x18a6168>, @fields=["code", "name"]>
JRuby:
------
#<DataObjects::Mysql::Reader:0x14d4313 @field_count=2, @opened=true,
@position=0, @field_types=[], @fields=["code", "name"]>
#<DataObjects::Mysql::Reader:0xb28f30 @fields=["code", "name"], @position=0,
@field_count=2, @field_types=[], @opened=true>
Result
======
MRI:
----
#<DataObjects::Mysql::Result:0x1910324>
JRuby:
------
#<DataObjects::Mysql::Result:0x41dc79>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment