sequel_pg 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/README.rdoc +2 -11
- data/ext/sequel_pg/sequel_pg.c +1 -1
- data/lib/sequel_pg/sequel_pg.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6176615538367906099982221b8ee7e3670206b
|
4
|
+
data.tar.gz: df22060d2f8499be5e36cf648ea6434739fc0a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de722caecb0c89001621cf0c90af63fb1d87ddfd8b67d64b2fb6cb604b190ee291702cac9df1ce697d23cac19f9e98aa2be91b8ebc14b9d26fb90d63f5412d6f
|
7
|
+
data.tar.gz: c934dfa9ab244d753ddc4cca531f29fdef4be57b755d0f07da38b62b9dc5503f7c99825f743bd22ff24aec46b00e6eb09d61fdfb30f9a1046c67913694268dbc
|
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -32,7 +32,7 @@ sequel_pg also speeds up the following Dataset methods:
|
|
32
32
|
|
33
33
|
* map
|
34
34
|
* as_hash/to_hash
|
35
|
-
* to_hash_groups
|
35
|
+
* to_hash_groups
|
36
36
|
* select_hash
|
37
37
|
* select_hash_groups
|
38
38
|
* select_map
|
@@ -66,10 +66,6 @@ can do the following:
|
|
66
66
|
|
67
67
|
DB.stream_all_queries = true
|
68
68
|
|
69
|
-
Note that pg 0.14.1+ is required for streaming to work. This is not
|
70
|
-
required by the gem, as it is only a requirement for streaming, not
|
71
|
-
for general use.
|
72
|
-
|
73
69
|
== Installing the gem
|
74
70
|
|
75
71
|
gem install sequel_pg
|
@@ -85,10 +81,6 @@ can find the PostgreSQL shared library and header files. Alternatively,
|
|
85
81
|
you can use the POSTGRES_LIB and POSTGRES_INCLUDE environment
|
86
82
|
variables to specify the shared library and header directories.
|
87
83
|
|
88
|
-
While previous versions of this gem supported Windows, the current
|
89
|
-
version does not, due to the need to call C functions defined
|
90
|
-
in the pg gem.
|
91
|
-
|
92
84
|
== Running the specs
|
93
85
|
|
94
86
|
sequel_pg doesn't ship with it's own specs. It's designed to
|
@@ -144,8 +136,7 @@ sequel_pg has been tested on the following:
|
|
144
136
|
result in incorrect date/timestamp handling. In addition to
|
145
137
|
PostgreSQL defaulting to ISO, Sequel also manually sets the
|
146
138
|
date format to ISO by default, so unless you are overriding that
|
147
|
-
setting (via
|
148
|
-
should be OK.
|
139
|
+
setting (via DB.use_iso_date_format = false), you should be OK.
|
149
140
|
* Adding your own type conversion procs only has an effect if those
|
150
141
|
types are not handled by default.
|
151
142
|
* You do not need to require the library, the sequel postgres adapter
|
data/ext/sequel_pg/sequel_pg.c
CHANGED
data/lib/sequel_pg/sequel_pg.rb
CHANGED
@@ -45,6 +45,7 @@ class Sequel::Postgres::Dataset
|
|
45
45
|
def as_hash(key_column, value_column = nil, opts = Sequel::OPTS)
|
46
46
|
if value_column && !opts[:hash]
|
47
47
|
clone(:_sequel_pg_type=>:hash, :_sequel_pg_value=>[key_column, value_column]).fetch_rows(sql){|s| return s}
|
48
|
+
{}
|
48
49
|
elsif opts.empty?
|
49
50
|
super(key_column, value_column)
|
50
51
|
else
|
@@ -62,6 +63,7 @@ class Sequel::Postgres::Dataset
|
|
62
63
|
def to_hash_groups(key_column, value_column = nil, opts = Sequel::OPTS)
|
63
64
|
if value_column && !opts[:hash]
|
64
65
|
clone(:_sequel_pg_type=>:hash_groups, :_sequel_pg_value=>[key_column, value_column]).fetch_rows(sql){|s| return s}
|
66
|
+
{}
|
65
67
|
elsif opts.empty?
|
66
68
|
super(key_column, value_column)
|
67
69
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel_pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|