flounder 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flounder.gemspec +1 -1
- data/lib/flounder/postgres_utils.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 484ff8cd8a8111a3d280cad0dc9d4fff81d53df5
|
4
|
+
data.tar.gz: 87115495df74ecf98166c0f801c787ee1457554f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f145748074a522cdef6ae67e6148701cd6c256e885f30c4f301e101c4cda1c1a26f47bc013397caf92c45c433474d2982f1afd5c4ecc4bb881d49655412f0da
|
7
|
+
data.tar.gz: 24104884f69252858840d7ff839db49f1a25f8e3720daf49f38ae467f881f7851aa90882d350171a21da164431ebd943af88a554e9ca26f0313692b32bb976da
|
data/flounder.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "flounder"
|
5
|
-
s.version = '0.
|
5
|
+
s.version = '0.5.0'
|
6
6
|
s.summary = "Flounder is a way to write SQL simply in Ruby. It deals with everything BUT object relational mapping. "
|
7
7
|
s.email = "kaspar.schiess@technologyastronauts.ch"
|
8
8
|
s.homepage = "https://bitbucket.org/technologyastronauts/laboratory_flounder"
|
@@ -8,6 +8,7 @@ module Flounder
|
|
8
8
|
OID_SMALLINT = 21
|
9
9
|
OID_INTEGER = 23
|
10
10
|
OID_TEXT = 25
|
11
|
+
OID_FLOAT = 701
|
11
12
|
OID_VARCHAR = 1043
|
12
13
|
OID_TIMESTAMP = 1114
|
13
14
|
OID_DATE = 1082
|
@@ -24,6 +25,8 @@ module Flounder
|
|
24
25
|
value && Time.parse(value)
|
25
26
|
when OID_INTEGER, OID_SMALLINT
|
26
27
|
value.to_i
|
28
|
+
when OID_FLOAT
|
29
|
+
value.to_f
|
27
30
|
when OID_BOOLEAN
|
28
31
|
value == 't'
|
29
32
|
when OID_TEXT
|
@@ -43,6 +46,8 @@ module Flounder
|
|
43
46
|
:time
|
44
47
|
when OID_INTEGER, OID_SMALLINT
|
45
48
|
:integer
|
49
|
+
when OID_FLOAT
|
50
|
+
:float
|
46
51
|
when OID_VARCHAR, OID_TEXT
|
47
52
|
:string
|
48
53
|
when OID_BOOLEAN
|