tapsoob 0.3.22-java → 0.3.23-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0902657538025d8da02f1bcfe8d15b8e14746bb56083cc021044f25aa4e81f24'
4
- data.tar.gz: 41a7f3a480214954e2d06869f094e38b73ac79ba59e38b17b6c06d9a37a991cd
3
+ metadata.gz: 0c5c4d55b143ed71a5ef0a0ac3f5fa9d71bbf35d4bc619622bdd13df408060f5
4
+ data.tar.gz: 1c442ce444f5bed92bafa47a1374adb9a51a144e33aee6b62f4c667a41b08148
5
5
  SHA512:
6
- metadata.gz: 42f9ca1dd0dd01eb5f257b30e8872db9bf6de0606453a74558d0be1094abfeae036f0394d32c73fb6a99ed19e383e4dbddae0ab63a90d33d04c015096564664e
7
- data.tar.gz: 2f42ab39fbb77d28620c4b174429fc8d1861e5a11a708c34ddece07a809f1a5d4e436dbf1e9bed8e3ce925421a7439c1098f5f60d135b10ed813144dddcf512d
6
+ metadata.gz: 1bcc03cfcd5e8a688300133d9fad67f292e688978e4af136ff2789d9a8703967eb4a798d74306bf4717212e78cf6876500021ff7d1f53374a4417b1f5a52b796
7
+ data.tar.gz: 50520c65bdf978e7a6461d46c2be63c23f800ce9a52ca7d512f6be10dd2f820e7258fdddbac5a2a57cecd21d5659b5e432c4e9ca5282456b44ebd79caa965d33
@@ -250,19 +250,19 @@ module Tapsoob
250
250
  state[:offset] = table.count
251
251
  end
252
252
 
253
- def self.factory(db, state)
253
+ def self.factory(db, state, opts)
254
254
  if defined?(Sequel::MySQL) && Sequel::MySQL.respond_to?(:convert_invalid_date_time=)
255
255
  Sequel::MySQL.convert_invalid_date_time = :nil
256
256
  end
257
257
 
258
258
  if state.has_key?(:klass)
259
- return eval(state[:klass]).new(db, state)
259
+ return eval(state[:klass]).new(db, state, opts)
260
260
  end
261
261
 
262
262
  if Tapsoob::Utils.single_integer_primary_key(db, state[:table_name].to_sym)
263
- DataStreamKeyed.new(db, state)
263
+ DataStreamKeyed.new(db, state, opts)
264
264
  else
265
- DataStream.new(db, state)
265
+ DataStream.new(db, state, opts)
266
266
  end
267
267
  end
268
268
  end
@@ -270,8 +270,8 @@ module Tapsoob
270
270
  class DataStreamKeyed < DataStream
271
271
  attr_accessor :buffer
272
272
 
273
- def initialize(db, state)
274
- super(db, state)
273
+ def initialize(db, state, opts = {})
274
+ super(db, state, opts)
275
275
  @state = { :primary_key => order_by(state[:table_name]).first, :filter => 0 }.merge(@state)
276
276
  @state[:chunksize] ||= DEFAULT_CHUNKSIZE
277
277
  @buffer = []
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.3.22".freeze
3
+ VERSION = "0.3.23".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapsoob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.22
4
+ version: 0.3.23
5
5
  platform: java
6
6
  authors:
7
7
  - Félix Bellanger