lib/gratan/driver.rb in gratan-0.1.3 vs lib/gratan/driver.rb in gratan-0.1.4
- old
+ new
@@ -130,20 +130,20 @@
end
private
def query(sql)
- log(:debug, sql)
+ log(:debug, sql, :dry_run => false)
@client.query(sql)
end
def update(sql)
- log(:info, sql, :green)
+ log(:info, sql, :color => :green)
@client.query(sql) unless @options[:dry_run]
end
def delete(sql)
- log(:info, sql, :red)
+ log(:info, sql, :color => :red)
@client.query(sql) unless @options[:dry_run]
end
def escape(str)
@client.escape(str)