sequel_pg 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/README.rdoc +6 -0
- data/lib/sequel/extensions/pg_streaming.rb +5 -0
- metadata +22 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3556c5dfc6db113463c57cd49469d064f447e01b
|
4
|
+
data.tar.gz: 6eb1cdb2a7f1d4e318f8394cdb0509d92b5d3f3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adec65dceb15d195270a9708d96505f368d0eb8efc560008f288be8ffae413e1e2865c06c254cab50d2e5c7a7c30f996598482031663995bfac851834cc962f3
|
7
|
+
data.tar.gz: 8d6c8d0d172793964d062bdcbd9742c75da0efe1e8d5fc81fa4e3729badd72f79a9297645f15e06440ae966c7bd9ec50da5cd8f8b79520714456dc24e9cf1c1e
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 1.6.9 (2014-03-05)
|
2
|
+
|
3
|
+
* When using the streaming extension, automatically use streaming to implement paging in Dataset#paged_each (jeremyevans)
|
4
|
+
|
1
5
|
=== 1.6.8 (2013-08-05)
|
2
6
|
|
3
7
|
* Allow overriding maximum allowed columns in a result set via -- --with-cflags=\"-DSPG_MAX_FIELDS=1600\" (jeremyevans) (#12)
|
data/README.rdoc
CHANGED
@@ -101,6 +101,12 @@ compiler toolchain. Since few Windows users have a working compiler
|
|
101
101
|
toolchain, a windows binary gem is available that works on both 1.8
|
102
102
|
and 1.9.
|
103
103
|
|
104
|
+
Note that by default sequel_pg only supports result sets with up to
|
105
|
+
256 columns. If you will have a result set with more than 256 columns,
|
106
|
+
you should modify the maximum supported number of columns via:
|
107
|
+
|
108
|
+
gem install sequel_pg -- --with-cflags=\"-DSPG_MAX_FIELDS=512\"
|
109
|
+
|
104
110
|
== Running the specs
|
105
111
|
|
106
112
|
sequel_pg doesn't ship with it's own specs. It's designed to
|
@@ -103,6 +103,11 @@ module Sequel::Postgres::Streaming
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
|
+
# Use streaming to implement paging.
|
107
|
+
def paged_each(opts=OPTS, &block)
|
108
|
+
stream.each(&block)
|
109
|
+
end
|
110
|
+
|
106
111
|
# Return a clone of the dataset that will use streaming to load
|
107
112
|
# rows.
|
108
113
|
def stream
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel_pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.8.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.8.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sequel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.39.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.39.0
|
41
41
|
description: |
|
@@ -43,6 +43,10 @@ description: |
|
|
43
43
|
adapter row fetching code with a C version. The C version
|
44
44
|
is significantly faster (2-6x) than the pure ruby version
|
45
45
|
that Sequel uses by default.
|
46
|
+
|
47
|
+
sequel_pg also offers optimized versions of some dataset
|
48
|
+
methods, as well as adds support for using PostgreSQL
|
49
|
+
streaming.
|
46
50
|
email: code@jeremyevans.net
|
47
51
|
executables: []
|
48
52
|
extensions:
|
@@ -52,41 +56,42 @@ extra_rdoc_files:
|
|
52
56
|
- CHANGELOG
|
53
57
|
- MIT-LICENSE
|
54
58
|
files:
|
55
|
-
- MIT-LICENSE
|
56
59
|
- CHANGELOG
|
60
|
+
- MIT-LICENSE
|
57
61
|
- README.rdoc
|
58
62
|
- Rakefile
|
59
63
|
- ext/sequel_pg/extconf.rb
|
60
64
|
- ext/sequel_pg/sequel_pg.c
|
61
|
-
- lib/sequel_pg/sequel_pg.rb
|
62
65
|
- lib/sequel/extensions/pg_streaming.rb
|
66
|
+
- lib/sequel_pg/sequel_pg.rb
|
63
67
|
homepage: http://github.com/jeremyevans/sequel_pg
|
64
|
-
licenses:
|
68
|
+
licenses:
|
69
|
+
- MIT
|
65
70
|
metadata: {}
|
66
71
|
post_install_message:
|
67
72
|
rdoc_options:
|
68
|
-
- --quiet
|
69
|
-
- --line-numbers
|
70
|
-
- --inline-source
|
71
|
-
- --title
|
73
|
+
- "--quiet"
|
74
|
+
- "--line-numbers"
|
75
|
+
- "--inline-source"
|
76
|
+
- "--title"
|
72
77
|
- 'sequel_pg: Faster SELECTs when using Sequel with pg'
|
73
|
-
- --main
|
78
|
+
- "--main"
|
74
79
|
- README.rdoc
|
75
80
|
require_paths:
|
76
81
|
- lib
|
77
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
83
|
requirements:
|
79
|
-
- -
|
84
|
+
- - ">="
|
80
85
|
- !ruby/object:Gem::Version
|
81
86
|
version: 1.8.7
|
82
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
88
|
requirements:
|
84
|
-
- -
|
89
|
+
- - ">="
|
85
90
|
- !ruby/object:Gem::Version
|
86
91
|
version: '0'
|
87
92
|
requirements: []
|
88
93
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.2.2
|
90
95
|
signing_key:
|
91
96
|
specification_version: 4
|
92
97
|
summary: Faster SELECTs when using Sequel with pg
|