fluiddb 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FluidDb/Firebird.rb +4 -4
- data/lib/FluidDb/Mock.rb +4 -4
- data/lib/FluidDb/Mysql.rb +4 -4
- data/lib/FluidDb/Mysql2.rb +4 -4
- data/lib/FluidDb/Pgsql.rb +5 -5
- data/lib/FluidDb/TinyTds.rb +4 -4
- metadata +2 -2
data/lib/FluidDb/Firebird.rb
CHANGED
@@ -37,7 +37,7 @@ module FluidDb
|
|
37
37
|
@connection.close
|
38
38
|
end
|
39
39
|
|
40
|
-
def queryForArray( sql, params )
|
40
|
+
def queryForArray( sql, params=[] )
|
41
41
|
sql = self.format_to_sql( sql, params )
|
42
42
|
list = @connection.query(:hash, sql)
|
43
43
|
|
@@ -58,7 +58,7 @@ module FluidDb
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
def queryForValue( sql, params )
|
61
|
+
def queryForValue( sql, params=[] )
|
62
62
|
sql = self.format_to_sql( sql, params )
|
63
63
|
results = @connection.query(sql)
|
64
64
|
|
@@ -81,7 +81,7 @@ module FluidDb
|
|
81
81
|
end
|
82
82
|
|
83
83
|
|
84
|
-
def queryForResultset( sql, params )
|
84
|
+
def queryForResultset( sql, params=[] )
|
85
85
|
sql = self.format_to_sql( sql, params )
|
86
86
|
list = @connection.query(:hash, sql)
|
87
87
|
|
@@ -100,7 +100,7 @@ module FluidDb
|
|
100
100
|
end
|
101
101
|
|
102
102
|
|
103
|
-
def execute( sql, params, expected_affected_rows=nil )
|
103
|
+
def execute( sql, params=[], expected_affected_rows=nil )
|
104
104
|
sql = self.format_to_sql( sql, params )
|
105
105
|
|
106
106
|
self.verboseLog( "#{self.class.name}.execute. #{sql}" )
|
data/lib/FluidDb/Mock.rb
CHANGED
@@ -23,7 +23,7 @@ module FluidDb
|
|
23
23
|
def close
|
24
24
|
end
|
25
25
|
|
26
|
-
def queryForArray( sql, params )
|
26
|
+
def queryForArray( sql, params=[] )
|
27
27
|
sql = self.format_to_sql( sql, params )
|
28
28
|
puts "FluidDb::Mock.queryForArray. sql: #{sql}" if @verbose == true
|
29
29
|
|
@@ -40,7 +40,7 @@ module FluidDb
|
|
40
40
|
|
41
41
|
end
|
42
42
|
|
43
|
-
def queryForValue( sql, params )
|
43
|
+
def queryForValue( sql, params=[] )
|
44
44
|
sql = self.format_to_sql( sql, params )
|
45
45
|
puts "FluidDb::Mock.queryForValue. sql: #{sql}" if @verbose == true
|
46
46
|
|
@@ -56,13 +56,13 @@ module FluidDb
|
|
56
56
|
return @hash[sql]
|
57
57
|
end
|
58
58
|
|
59
|
-
def queryForResultset( sql, params )
|
59
|
+
def queryForResultset( sql, params=[] )
|
60
60
|
sql = self.format_to_sql( sql, params )
|
61
61
|
puts "FluidDb::Mock.queryForResultset. sql: #{sql}" if @verbose == true
|
62
62
|
return @hash[sql]
|
63
63
|
end
|
64
64
|
|
65
|
-
def execute( sql, params, expected_affected_rows=nil )
|
65
|
+
def execute( sql, params=[], expected_affected_rows=nil )
|
66
66
|
sql = self.format_to_sql( sql, params )
|
67
67
|
puts "FluidDb::Mock.execute. sql: #{sql}" if @verbose == true
|
68
68
|
return @hash[sql]
|
data/lib/FluidDb/Mysql.rb
CHANGED
@@ -19,7 +19,7 @@ module FluidDb
|
|
19
19
|
@connection.close
|
20
20
|
end
|
21
21
|
|
22
|
-
def queryForArray( sql, params )
|
22
|
+
def queryForArray( sql, params=[] )
|
23
23
|
sql = self.format_to_sql( sql, params )
|
24
24
|
results = @connection.query(sql)
|
25
25
|
|
@@ -42,7 +42,7 @@ module FluidDb
|
|
42
42
|
|
43
43
|
end
|
44
44
|
|
45
|
-
def queryForValue( sql, params )
|
45
|
+
def queryForValue( sql, params=[] )
|
46
46
|
sql = self.format_to_sql( sql, params )
|
47
47
|
results = @connection.query(sql)
|
48
48
|
|
@@ -68,7 +68,7 @@ module FluidDb
|
|
68
68
|
|
69
69
|
end
|
70
70
|
|
71
|
-
def queryForResultset( sql, params )
|
71
|
+
def queryForResultset( sql, params=[] )
|
72
72
|
sql = self.format_to_sql( sql, params )
|
73
73
|
results = @connection.query(sql)
|
74
74
|
|
@@ -90,7 +90,7 @@ module FluidDb
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
-
def execute( sql, params, expected_affected_rows=nil )
|
93
|
+
def execute( sql, params=[], expected_affected_rows=nil )
|
94
94
|
sql = self.format_to_sql( sql, params )
|
95
95
|
# puts "sql: #{sql}"
|
96
96
|
@connection.query( sql );
|
data/lib/FluidDb/Mysql2.rb
CHANGED
@@ -24,7 +24,7 @@ module FluidDb
|
|
24
24
|
@connection.close
|
25
25
|
end
|
26
26
|
|
27
|
-
def queryForArray( sql, params )
|
27
|
+
def queryForArray( sql, params=[] )
|
28
28
|
sql = self.format_to_sql( sql, params )
|
29
29
|
results = @connection.query(sql)
|
30
30
|
|
@@ -50,7 +50,7 @@ module FluidDb
|
|
50
50
|
|
51
51
|
end
|
52
52
|
|
53
|
-
def queryForValue( sql, params )
|
53
|
+
def queryForValue( sql, params=[] )
|
54
54
|
sql = self.format_to_sql( sql, params )
|
55
55
|
results = @connection.query(sql, :as => :array)
|
56
56
|
|
@@ -77,7 +77,7 @@ module FluidDb
|
|
77
77
|
end
|
78
78
|
|
79
79
|
|
80
|
-
def queryForResultset( sql, params )
|
80
|
+
def queryForResultset( sql, params=[] )
|
81
81
|
sql = self.format_to_sql( sql, params )
|
82
82
|
results = @connection.query(sql)
|
83
83
|
|
@@ -99,7 +99,7 @@ module FluidDb
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
-
def execute( sql, params, expected_affected_rows=nil )
|
102
|
+
def execute( sql, params=[], expected_affected_rows=nil )
|
103
103
|
sql = self.format_to_sql( sql, params )
|
104
104
|
@connection.query( sql );
|
105
105
|
|
data/lib/FluidDb/Pgsql.rb
CHANGED
@@ -25,7 +25,7 @@ module FluidDb
|
|
25
25
|
@connection.close
|
26
26
|
end
|
27
27
|
|
28
|
-
def queryForArray( sql, params )
|
28
|
+
def queryForArray( sql, params=[] )
|
29
29
|
sql = self.format_to_sql( sql, params )
|
30
30
|
results = @connection.exec(sql)
|
31
31
|
|
@@ -46,7 +46,7 @@ module FluidDb
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
def queryForValue( sql, params )
|
49
|
+
def queryForValue( sql, params=[] )
|
50
50
|
sql = self.format_to_sql( sql, params )
|
51
51
|
results = @connection.exec(sql)
|
52
52
|
|
@@ -69,7 +69,7 @@ module FluidDb
|
|
69
69
|
end
|
70
70
|
|
71
71
|
|
72
|
-
def queryForResultset( sql, params )
|
72
|
+
def queryForResultset( sql, params=[] )
|
73
73
|
sql = self.format_to_sql( sql, params )
|
74
74
|
results = @connection.exec(sql)
|
75
75
|
|
@@ -93,7 +93,7 @@ module FluidDb
|
|
93
93
|
end
|
94
94
|
|
95
95
|
|
96
|
-
def execute( sql, params, expected_affected_rows=nil )
|
96
|
+
def execute( sql, params=[], expected_affected_rows=nil )
|
97
97
|
sql = self.format_to_sql( sql, params )
|
98
98
|
|
99
99
|
self.verboseLog( "#{self.class.name}.execute. #{sql}" )
|
@@ -109,7 +109,7 @@ module FluidDb
|
|
109
109
|
raise e
|
110
110
|
end
|
111
111
|
|
112
|
-
def exec_params( sql, params, expected_affected_rows=nil )
|
112
|
+
def exec_params( sql, params=[], expected_affected_rows=nil )
|
113
113
|
parts = sql.split( "?" )
|
114
114
|
sql = ""
|
115
115
|
parts.each_with_index do |p,idx|
|
data/lib/FluidDb/TinyTds.rb
CHANGED
@@ -50,7 +50,7 @@ module FluidDb
|
|
50
50
|
return @connection.escape( input )
|
51
51
|
end
|
52
52
|
|
53
|
-
def queryForArray( sql, params )
|
53
|
+
def queryForArray( sql, params=[] )
|
54
54
|
sql = self.format_to_sql( sql, params )
|
55
55
|
results = @connection.execute(sql)
|
56
56
|
|
@@ -68,7 +68,7 @@ module FluidDb
|
|
68
68
|
return tuple
|
69
69
|
end
|
70
70
|
|
71
|
-
def queryForValue( sql, params )
|
71
|
+
def queryForValue( sql, params=[] )
|
72
72
|
sql = self.format_to_sql( sql, params )
|
73
73
|
results = @connection.execute(sql)
|
74
74
|
|
@@ -86,7 +86,7 @@ module FluidDb
|
|
86
86
|
return value
|
87
87
|
end
|
88
88
|
|
89
|
-
def queryForResultset( sql, params )
|
89
|
+
def queryForResultset( sql, params=[] )
|
90
90
|
sql = self.format_to_sql( sql, params )
|
91
91
|
results = @connection.execute(sql)
|
92
92
|
|
@@ -99,7 +99,7 @@ module FluidDb
|
|
99
99
|
end
|
100
100
|
|
101
101
|
|
102
|
-
def execute( sql, params, expected_affected_rows=nil )
|
102
|
+
def execute( sql, params=[], expected_affected_rows=nil )
|
103
103
|
sql = self.format_to_sql( sql, params )
|
104
104
|
r = @connection.execute( sql );
|
105
105
|
r.each
|
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.1.
|
4
|
+
version: 0.1.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A semantic layer for db interaction
|
15
15
|
email: guy@guyirvine.com
|