lib/monetdb/connection.rb in monetdb-0.2.2 vs lib/monetdb/connection.rb in monetdb-0.2.3

- old
+ new

@@ -1,18 +1,20 @@ require "socket" require "monetdb/connection/io" require "monetdb/connection/messages" require "monetdb/connection/setup" require "monetdb/connection/query" +require "monetdb/connection/logger" module MonetDB class Connection include IO include Messages include Setup include Query + include Logger Q_TABLE = "1" # SELECT statement Q_UPDATE = "2" # INSERT/UPDATE statement Q_CREATE = "3" # CREATE/DROP TABLE statement Q_TRANSACTION = "4" # TRANSACTION @@ -76,13 +78,9 @@ @config end def socket @socket - end - - def log(type, msg) - MonetDB.logger.send(type, msg) if MonetDB.logger end end end