sequel_pg 1.6.7-x86-mingw32 → 1.6.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
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
+
5
+ === 1.6.8 (2013-08-05)
6
+
7
+ * Allow overriding maximum allowed columns in a result set via -- --with-cflags=\"-DSPG_MAX_FIELDS=1600\" (jeremyevans) (#12)
8
+
1
9
  === 1.6.7 (2013-06-06)
2
10
 
3
11
  * Correctly handle fractional seconds in the time type (jeremyevans)
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
@@ -12,7 +12,9 @@
12
12
  #define ENC_INDEX
13
13
  #endif
14
14
 
15
+ #ifndef SPG_MAX_FIELDS
15
16
  #define SPG_MAX_FIELDS 256
17
+ #endif
16
18
  #define SPG_MICROSECONDS_PER_DAY_LL 86400000000ULL
17
19
  #define SPG_MICROSECONDS_PER_DAY 86400000000.0
18
20
  #define SPG_MINUTES_PER_DAY 1440.0
@@ -41,17 +43,6 @@
41
43
  #define SPG_YIELD_KMV_HASH_GROUPS 12
42
44
  #define SPG_YIELD_MKMV_HASH_GROUPS 13
43
45
 
44
- struct spg_row_proc_info {
45
- VALUE dataset;
46
- VALUE block;
47
- VALUE model;
48
- VALUE colsyms[SPG_MAX_FIELDS];
49
- VALUE colconvert[SPG_MAX_FIELDS];
50
- #if SPG_ENCODING
51
- int enc_index;
52
- #endif
53
- };
54
-
55
46
  static VALUE spg_Sequel;
56
47
  static VALUE spg_Blob;
57
48
  static VALUE spg_BigDecimal;
data/lib/1.8/sequel_pg.so CHANGED
Binary file
data/lib/1.9/sequel_pg.so CHANGED
Binary file
@@ -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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_pg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 7
10
- version: 1.6.7
9
+ - 9
10
+ version: 1.6.9
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - Jeremy Evans
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-06 00:00:00 Z
18
+ date: 2014-03-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: pg
@@ -54,6 +54,10 @@ description: |
54
54
  adapter row fetching code with a C version. The C version
55
55
  is significantly faster (2-6x) than the pure ruby version
56
56
  that Sequel uses by default.
57
+
58
+ sequel_pg also offers optimized versions of some dataset
59
+ methods, as well as adds support for using PostgreSQL
60
+ streaming.
57
61
 
58
62
  email: code@jeremyevans.net
59
63
  executables: []
@@ -76,8 +80,8 @@ files:
76
80
  - lib/1.8/sequel_pg.so
77
81
  - lib/1.9/sequel_pg.so
78
82
  homepage: http://github.com/jeremyevans/sequel_pg
79
- licenses: []
80
-
83
+ licenses:
84
+ - MIT
81
85
  post_install_message:
82
86
  rdoc_options:
83
87
  - --quiet