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 +9 -1
- data/lib/FluidDb/Pgsql.rb +2 -0
- data/lib/FluidDb/TinyTds.rb +1 -1
- metadata +1 -1
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
data/lib/FluidDb/TinyTds.rb
CHANGED