bulk_insert 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bulk_insert/version.rb +1 -1
- data/lib/bulk_insert/worker.rb +1 -1
- data/test/dummy/log/test.log +381 -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: 74b626a311a11e7f61ebe3fa74b0a974d2be0450
|
4
|
+
data.tar.gz: ec3319157ee2067572762405ee7c402bd5195f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c743e409a275b4c5ee2f9d5921cf0d5c670968b806ac73978286775886437e97049c8db99204af09b1c6ebc1210f5c9da7de97eda8e2fe7bacb4699a9ca76c9c
|
7
|
+
data.tar.gz: dc6aa25046f0fd2fc907ae7614b1efd3552d85bf9fe019e144af487175734914f9b875ecfea263366f58590d113824923251a4b348677b8305c2a7b75b08768a
|
data/lib/bulk_insert/version.rb
CHANGED
data/lib/bulk_insert/worker.rb
CHANGED
@@ -64,7 +64,7 @@ module BulkInsert
|
|
64
64
|
@columns.zip(row) do |column, value|
|
65
65
|
value = @now if value == :__timestamp_placeholder
|
66
66
|
|
67
|
-
if
|
67
|
+
if ActiveRecord::VERSION::STRING >= "5.0.0"
|
68
68
|
value = @connection.type_cast_from_column(column, value) if column
|
69
69
|
values << @connection.quote(value)
|
70
70
|
else
|
data/test/dummy/log/test.log
CHANGED
@@ -2584,3 +2584,384 @@ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
|
2584
2584
|
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2585
2585
|
------------------------------------------------------------------------------
|
2586
2586
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2587
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2588
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2589
|
+
------------------------------------------------------
|
2590
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2591
|
+
------------------------------------------------------
|
2592
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2593
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2594
|
+
----------------------------------------------------------------------------------
|
2595
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2596
|
+
----------------------------------------------------------------------------------
|
2597
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.094628','2016-08-11 04:56:37.094628','chartreuse')[0m
|
2598
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2599
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2600
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2601
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2602
|
+
----------------------------------------------------------------------------------------------
|
2603
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2604
|
+
----------------------------------------------------------------------------------------------
|
2605
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.105237','2016-08-11 04:56:37.105237','chartreuse'),('Howdy',20,'f','2016-08-11 04:56:37.105237','2016-08-11 04:56:37.105237','chartreuse')
|
2606
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings"[0m
|
2607
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2608
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2609
|
+
--------------------------------------------------------------------
|
2610
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2611
|
+
--------------------------------------------------------------------
|
2612
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2613
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2614
|
+
-------------------------------------------------------------------------------
|
2615
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
2616
|
+
-------------------------------------------------------------------------------
|
2617
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.107714','2016-08-11 04:56:37.107714','chartreuse')
|
2618
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2619
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2620
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2621
|
+
----------------------------------------------------------------
|
2622
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2623
|
+
----------------------------------------------------------------
|
2624
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-08-11 04:56:37.110279','2016-08-11 04:56:37.110279','chartreuse')
|
2625
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2626
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2627
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2628
|
+
---------------------------------------------------------
|
2629
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2630
|
+
---------------------------------------------------------
|
2631
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.112128','2016-08-11 04:56:37.112128','chartreuse')
|
2632
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2633
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2634
|
+
---------------------------------------------------------------------
|
2635
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2636
|
+
---------------------------------------------------------------------
|
2637
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2638
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2639
|
+
----------------------------------------------------------------------------
|
2640
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2641
|
+
----------------------------------------------------------------------------
|
2642
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2643
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2644
|
+
--------------------------------------------------------
|
2645
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2646
|
+
--------------------------------------------------------
|
2647
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-08-11 04:56:37.114434','2016-08-11 04:56:37.114434','chartreuse'),('Hello',25,'t','2016-08-11 04:56:37.114434','2016-08-11 04:56:37.114434','chartreuse')[0m
|
2648
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
|
2649
|
+
[1m[36mTesting Load (0.0ms)[0m [1mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1[0m [["greeting", "Hello"]]
|
2650
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2652
|
+
----------------------------------------------------------------
|
2653
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2654
|
+
----------------------------------------------------------------
|
2655
|
+
[1m[35m (0.1ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:37.119013','2016-08-11 04:56:37.119013',NULL)
|
2656
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2657
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2658
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2659
|
+
------------------------------------------------------------------------------
|
2660
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2661
|
+
------------------------------------------------------------------------------
|
2662
|
+
[1m[35m (0.1ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:37.120512','2016-08-11 04:56:37.120512','chartreuse')
|
2663
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2664
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2665
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2666
|
+
-------------------------------------------
|
2667
|
+
BulkInsertWorkerTest: test_default_set_size
|
2668
|
+
-------------------------------------------
|
2669
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2670
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2671
|
+
-------------------------------------------------------------------
|
2672
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2673
|
+
-------------------------------------------------------------------
|
2674
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2675
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2676
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2677
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2678
|
+
-----------------------------------------------------------------------------
|
2679
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
2680
|
+
-----------------------------------------------------------------------------
|
2681
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2682
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2683
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-08-11 04:56:37.124852','chartreuse'),('Hey',20,'f','2016-08-11 04:56:37.124852','2016-08-11 04:56:37.124852','chartreuse')
|
2684
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2685
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2686
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2688
|
+
---------------------------------------------------------------------
|
2689
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
2690
|
+
---------------------------------------------------------------------
|
2691
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2692
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2693
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-08-11 04:56:37.129756','2016-08-11 04:56:37.129756','chartreuse')[0m
|
2694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2695
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2696
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2698
|
+
---------------------------------------------------------------
|
2699
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
2700
|
+
---------------------------------------------------------------
|
2701
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2702
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2703
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2704
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2705
|
+
-------------------------------------------------------------------
|
2706
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
2707
|
+
-------------------------------------------------------------------
|
2708
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2709
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2710
|
+
------------------------------------------------------------------------------
|
2711
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2712
|
+
------------------------------------------------------------------------------
|
2713
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2714
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2715
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2716
|
+
-------------------------------------------------------------------
|
2717
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
2718
|
+
-------------------------------------------------------------------
|
2719
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2721
|
+
------------------------------------------------------------------------------
|
2722
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2723
|
+
------------------------------------------------------------------------------
|
2724
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2725
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2726
|
+
---------------------------------------------------------------
|
2727
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
2728
|
+
---------------------------------------------------------------
|
2729
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2730
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2731
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2732
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2733
|
+
-----------------------------------------------------------------------------
|
2734
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
2735
|
+
-----------------------------------------------------------------------------
|
2736
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2738
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-08-11 04:56:56.997024','chartreuse'),('Hey',20,'f','2016-08-11 04:56:56.997024','2016-08-11 04:56:56.997024','chartreuse')[0m
|
2739
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2740
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2741
|
+
[1m[35m (2.1ms)[0m rollback transaction
|
2742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2743
|
+
---------------------------------------------------------------------
|
2744
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
2745
|
+
---------------------------------------------------------------------
|
2746
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2747
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2748
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-08-11 04:56:57.004318','2016-08-11 04:56:57.004318','chartreuse')
|
2749
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2750
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2751
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2753
|
+
----------------------------------------------------------------------------------
|
2754
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2755
|
+
----------------------------------------------------------------------------------
|
2756
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.006279','2016-08-11 04:56:57.006279','chartreuse')[0m
|
2757
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2758
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2759
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2760
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2761
|
+
----------------------------------------------------------------------------
|
2762
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2763
|
+
----------------------------------------------------------------------------
|
2764
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2765
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2766
|
+
----------------------------------------------------------------
|
2767
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2768
|
+
----------------------------------------------------------------
|
2769
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:57.012557','2016-08-11 04:56:57.012557',NULL)
|
2770
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2771
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2773
|
+
--------------------------------------------------------
|
2774
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2775
|
+
--------------------------------------------------------
|
2776
|
+
[1m[35m (0.1ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-08-11 04:56:57.013917','2016-08-11 04:56:57.013917','chartreuse'),('Hello',25,'t','2016-08-11 04:56:57.013917','2016-08-11 04:56:57.013917','chartreuse')
|
2777
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1[0m [["greeting", "Yo"]]
|
2778
|
+
[1m[35mTesting Load (0.0ms)[0m SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
|
2779
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2780
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2781
|
+
----------------------------------------------------------------------------------------------
|
2782
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2783
|
+
----------------------------------------------------------------------------------------------
|
2784
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.017736','2016-08-11 04:56:57.017736','chartreuse'),('Howdy',20,'f','2016-08-11 04:56:57.017736','2016-08-11 04:56:57.017736','chartreuse')[0m
|
2785
|
+
[1m[35mTesting Load (0.0ms)[0m SELECT "testings".* FROM "testings"
|
2786
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2787
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2788
|
+
-------------------------------------------------------------------------------
|
2789
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
2790
|
+
-------------------------------------------------------------------------------
|
2791
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.019077','2016-08-11 04:56:57.019077','chartreuse')[0m
|
2792
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2793
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2794
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2795
|
+
---------------------------------------------------------
|
2796
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2797
|
+
---------------------------------------------------------
|
2798
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.020272','2016-08-11 04:56:57.020272','chartreuse')[0m
|
2799
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2800
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2801
|
+
-------------------------------------------------------------------
|
2802
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2803
|
+
-------------------------------------------------------------------
|
2804
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2805
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2806
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2807
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2808
|
+
------------------------------------------------------------------------------
|
2809
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2810
|
+
------------------------------------------------------------------------------
|
2811
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:57.022158','2016-08-11 04:56:57.022158','chartreuse')
|
2812
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2813
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2814
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2815
|
+
--------------------------------------------------------------------
|
2816
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2817
|
+
--------------------------------------------------------------------
|
2818
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2819
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2820
|
+
----------------------------------------------------------------
|
2821
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2822
|
+
----------------------------------------------------------------
|
2823
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-08-11 04:56:57.024310','2016-08-11 04:56:57.024310','chartreuse')
|
2824
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2825
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2826
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2827
|
+
---------------------------------------------------------------------
|
2828
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2829
|
+
---------------------------------------------------------------------
|
2830
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2831
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2832
|
+
------------------------------------------------------
|
2833
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2834
|
+
------------------------------------------------------
|
2835
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2836
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2837
|
+
-------------------------------------------
|
2838
|
+
BulkInsertWorkerTest: test_default_set_size
|
2839
|
+
-------------------------------------------
|
2840
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2841
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2842
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2843
|
+
---------------------------------------------------------------------
|
2844
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
2845
|
+
---------------------------------------------------------------------
|
2846
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2847
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2848
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-08-11 04:58:10.649237','2016-08-11 04:58:10.649237','chartreuse')[0m
|
2849
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2850
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2851
|
+
[1m[35m (2.3ms)[0m rollback transaction
|
2852
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2853
|
+
------------------------------------------------------------------------------
|
2854
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2855
|
+
------------------------------------------------------------------------------
|
2856
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2857
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2858
|
+
-----------------------------------------------------------------------------
|
2859
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
2860
|
+
-----------------------------------------------------------------------------
|
2861
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2862
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2863
|
+
[1m[35m (0.4ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-08-11 04:58:10.657599','chartreuse'),('Hey',20,'f','2016-08-11 04:58:10.657599','2016-08-11 04:58:10.657599','chartreuse')
|
2864
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2865
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2866
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2867
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2868
|
+
-------------------------------------------------------------------
|
2869
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
2870
|
+
-------------------------------------------------------------------
|
2871
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2872
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2873
|
+
---------------------------------------------------------------
|
2874
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
2875
|
+
---------------------------------------------------------------
|
2876
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2877
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2878
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2879
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2880
|
+
-------------------------------------------------------------------
|
2881
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2882
|
+
-------------------------------------------------------------------
|
2883
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2884
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2885
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2886
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2887
|
+
-------------------------------------------------------------------------------
|
2888
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
2889
|
+
-------------------------------------------------------------------------------
|
2890
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.664128','2016-08-11 04:58:10.664128','chartreuse')[0m
|
2891
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2892
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2893
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2894
|
+
-------------------------------------------
|
2895
|
+
BulkInsertWorkerTest: test_default_set_size
|
2896
|
+
-------------------------------------------
|
2897
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2898
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2899
|
+
----------------------------------------------------------------------------------------------
|
2900
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2901
|
+
----------------------------------------------------------------------------------------------
|
2902
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.671005','2016-08-11 04:58:10.671005','chartreuse'),('Howdy',20,'f','2016-08-11 04:58:10.671005','2016-08-11 04:58:10.671005','chartreuse')[0m
|
2903
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings"
|
2904
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2905
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2906
|
+
--------------------------------------------------------
|
2907
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2908
|
+
--------------------------------------------------------
|
2909
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-08-11 04:58:10.672392','2016-08-11 04:58:10.672392','chartreuse'),('Hello',25,'t','2016-08-11 04:58:10.672392','2016-08-11 04:58:10.672392','chartreuse')[0m
|
2910
|
+
[1m[35mTesting Load (0.2ms)[0m SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
|
2911
|
+
[1m[36mTesting Load (0.0ms)[0m [1mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1[0m [["greeting", "Hello"]]
|
2912
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2913
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2914
|
+
---------------------------------------------------------------------
|
2915
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2916
|
+
---------------------------------------------------------------------
|
2917
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2918
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2919
|
+
----------------------------------------------------------------------------------
|
2920
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2921
|
+
----------------------------------------------------------------------------------
|
2922
|
+
[1m[35m (0.1ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.677288','2016-08-11 04:58:10.677288','chartreuse')
|
2923
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2924
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2925
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2926
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2927
|
+
------------------------------------------------------------------------------
|
2928
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2929
|
+
------------------------------------------------------------------------------
|
2930
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:58:10.678998','2016-08-11 04:58:10.678998','chartreuse')[0m
|
2931
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2932
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2933
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2934
|
+
----------------------------------------------------------------------------
|
2935
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2936
|
+
----------------------------------------------------------------------------
|
2937
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2938
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2939
|
+
---------------------------------------------------------
|
2940
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2941
|
+
---------------------------------------------------------
|
2942
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.680576','2016-08-11 04:58:10.680576','chartreuse')[0m
|
2943
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2944
|
+
[1m[36m (1.2ms)[0m [1mbegin transaction[0m
|
2945
|
+
--------------------------------------------------------------------
|
2946
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2947
|
+
--------------------------------------------------------------------
|
2948
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2949
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2950
|
+
----------------------------------------------------------------
|
2951
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2952
|
+
----------------------------------------------------------------
|
2953
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:58:10.685074','2016-08-11 04:58:10.685074',NULL)
|
2954
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2955
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2956
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2957
|
+
------------------------------------------------------
|
2958
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2959
|
+
------------------------------------------------------
|
2960
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2961
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2962
|
+
----------------------------------------------------------------
|
2963
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2964
|
+
----------------------------------------------------------------
|
2965
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-08-11 04:58:10.687048','2016-08-11 04:58:10.687048','chartreuse')
|
2966
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2967
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulk_insert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|