fluiddb 0.0.31 → 0.0.32

Sign up to get free protection for your applications and to get access to all the features.
data/lib/FluidDb.rb CHANGED
@@ -41,6 +41,12 @@ module FluidDb
41
41
  end
42
42
 
43
43
  self.connect
44
+
45
+ @verbose = !ENV["VERBOSE"].nil?
46
+ end
47
+
48
+ def verboseLog( string )
49
+ puts string if @verbose == true
44
50
  end
45
51
 
46
52
  def splice_sql( sql, params )
@@ -89,9 +95,11 @@ module FluidDb
89
95
 
90
96
  sql_out = self.splice_sql( sql, params )
91
97
  if @verbose == true then
98
+ puts self.class.name
92
99
  puts sql
93
- puts params
100
+ puts params.join(",")
94
101
  puts sql_out
102
+ #puts "#{self.class.name}\n#{sql}\n#{params.join(',')\n#{sql_out}}"
95
103
  end
96
104
 
97
105
  return sql_out
data/lib/FluidDb/Pgsql.rb CHANGED
@@ -95,6 +95,8 @@ module FluidDb
95
95
 
96
96
  def execute( sql, params, expected_affected_rows=nil )
97
97
  sql = self.format_to_sql( sql, params )
98
+
99
+ self.verboseLog( "#{self.class.name}.execute. #{sql}" )
98
100
  r = @connection.exec(sql)
99
101
 
100
102
  if !expected_affected_rows.nil? and
@@ -85,7 +85,7 @@ module FluidDb
85
85
  def queryForResultset( sql, params )
86
86
  sql = self.format_to_sql( sql, params )
87
87
  results = @connection.execute(sql)
88
-
88
+
89
89
  list = Array.new
90
90
  results.each do |row|
91
91
  list << row
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluiddb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: