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 +4 -4
- data/lib/tapsoob/data_stream.rb +6 -6
- data/lib/tapsoob/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c5c4d55b143ed71a5ef0a0ac3f5fa9d71bbf35d4bc619622bdd13df408060f5
|
4
|
+
data.tar.gz: 1c442ce444f5bed92bafa47a1374adb9a51a144e33aee6b62f4c667a41b08148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcc03cfcd5e8a688300133d9fad67f292e688978e4af136ff2789d9a8703967eb4a798d74306bf4717212e78cf6876500021ff7d1f53374a4417b1f5a52b796
|
7
|
+
data.tar.gz: 50520c65bdf978e7a6461d46c2be63c23f800ce9a52ca7d512f6be10dd2f820e7258fdddbac5a2a57cecd21d5659b5e432c4e9ca5282456b44ebd79caa965d33
|
data/lib/tapsoob/data_stream.rb
CHANGED
@@ -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 = []
|
data/lib/tapsoob/version.rb
CHANGED