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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7d7a8883105803d8b04b69f6f16ebcacdcfac4b
4
- data.tar.gz: 5b7b2b74f4adf00a2f2dd55de9c2857bdb8977b5
3
+ metadata.gz: 74b626a311a11e7f61ebe3fa74b0a974d2be0450
4
+ data.tar.gz: ec3319157ee2067572762405ee7c402bd5195f47
5
5
  SHA512:
6
- metadata.gz: 6bf39cb1362d1d5c1c3897191d9b3a223b0fea67f0f2b334bc992656433f7dfd9c30ec1019d709f9a8d851e2aa066949fd56db7af71297de7ead5da6c67465e0
7
- data.tar.gz: 57aabe850a79488712f2a7022a04e73abdd1fc464cb4933be4a2f305c592035c19c206cf497f5d536efe81ddf1d4aacab5c30d1374368716b36b0c1cbf8fb905
6
+ metadata.gz: c743e409a275b4c5ee2f9d5921cf0d5c670968b806ac73978286775886437e97049c8db99204af09b1c6ebc1210f5c9da7de97eda8e2fe7bacb4699a9ca76c9c
7
+ data.tar.gz: dc6aa25046f0fd2fc907ae7614b1efd3552d85bf9fe019e144af487175734914f9b875ecfea263366f58590d113824923251a4b348677b8305c2a7b75b08768a
@@ -1,7 +1,7 @@
1
1
  module BulkInsert
2
2
  MAJOR = 1
3
3
  MINOR = 2
4
- TINY = 0
4
+ TINY = 1
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -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 Rails.version >= "5.0.0"
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
@@ -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
   (0.0ms) rollback transaction
2587
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2588
+  (0.1ms) begin transaction
2589
+ ------------------------------------------------------
2590
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2591
+ ------------------------------------------------------
2592
+  (0.0ms) rollback transaction
2593
+  (0.0ms) begin transaction
2594
+ ----------------------------------------------------------------------------------
2595
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2596
+ ----------------------------------------------------------------------------------
2597
+  (0.7ms) INSERT 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')
2598
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2599
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2600
+  (0.3ms) rollback transaction
2601
+  (0.0ms) begin transaction
2602
+ ----------------------------------------------------------------------------------------------
2603
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2604
+ ----------------------------------------------------------------------------------------------
2605
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2607
+  (0.3ms) rollback transaction
2608
+  (0.0ms) begin transaction
2609
+ --------------------------------------------------------------------
2610
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2611
+ --------------------------------------------------------------------
2612
+  (0.0ms) rollback transaction
2613
+  (0.0ms) begin transaction
2614
+ -------------------------------------------------------------------------------
2615
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2616
+ -------------------------------------------------------------------------------
2617
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2619
+  (0.4ms) rollback transaction
2620
+  (0.1ms) begin transaction
2621
+ ----------------------------------------------------------------
2622
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2623
+ ----------------------------------------------------------------
2624
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2626
+  (0.3ms) rollback transaction
2627
+  (0.0ms) begin transaction
2628
+ ---------------------------------------------------------
2629
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2630
+ ---------------------------------------------------------
2631
+  (0.2ms) 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
+  (0.3ms) rollback transaction
2633
+  (0.0ms) begin transaction
2634
+ ---------------------------------------------------------------------
2635
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2636
+ ---------------------------------------------------------------------
2637
+  (0.0ms) rollback transaction
2638
+  (0.0ms) begin transaction
2639
+ ----------------------------------------------------------------------------
2640
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2641
+ ----------------------------------------------------------------------------
2642
+  (0.0ms) rollback transaction
2643
+  (0.1ms) begin transaction
2644
+ --------------------------------------------------------
2645
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2646
+ --------------------------------------------------------
2647
+  (0.2ms) INSERT 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')
2648
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2649
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2650
+  (0.3ms) rollback transaction
2651
+  (0.0ms) begin transaction
2652
+ ----------------------------------------------------------------
2653
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2654
+ ----------------------------------------------------------------
2655
+  (0.1ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2657
+  (0.2ms) rollback transaction
2658
+  (0.0ms) begin transaction
2659
+ ------------------------------------------------------------------------------
2660
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2661
+ ------------------------------------------------------------------------------
2662
+  (0.1ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2664
+  (0.3ms) rollback transaction
2665
+  (0.0ms) begin transaction
2666
+ -------------------------------------------
2667
+ BulkInsertWorkerTest: test_default_set_size
2668
+ -------------------------------------------
2669
+  (0.0ms) rollback transaction
2670
+  (0.0ms) begin transaction
2671
+ -------------------------------------------------------------------
2672
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2673
+ -------------------------------------------------------------------
2674
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2675
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2676
+  (0.0ms) rollback transaction
2677
+  (0.1ms) begin transaction
2678
+ -----------------------------------------------------------------------------
2679
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2680
+ -----------------------------------------------------------------------------
2681
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2682
+  (0.1ms) SAVEPOINT active_record_1
2683
+  (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2685
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2686
+  (0.2ms) rollback transaction
2687
+  (0.1ms) begin transaction
2688
+ ---------------------------------------------------------------------
2689
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2690
+ ---------------------------------------------------------------------
2691
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2692
+  (0.0ms) SAVEPOINT active_record_1
2693
+  (0.2ms) INSERT 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')
2694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2695
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2696
+  (0.3ms) rollback transaction
2697
+  (0.0ms) begin transaction
2698
+ ---------------------------------------------------------------
2699
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2700
+ ---------------------------------------------------------------
2701
+  (0.0ms) SAVEPOINT active_record_1
2702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2703
+  (0.0ms) rollback transaction
2704
+  (0.0ms) begin transaction
2705
+ -------------------------------------------------------------------
2706
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2707
+ -------------------------------------------------------------------
2708
+  (0.0ms) rollback transaction
2709
+  (0.0ms) begin transaction
2710
+ ------------------------------------------------------------------------------
2711
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2712
+ ------------------------------------------------------------------------------
2713
+  (0.0ms) rollback transaction
2714
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2715
+  (0.1ms) begin transaction
2716
+ -------------------------------------------------------------------
2717
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2718
+ -------------------------------------------------------------------
2719
+  (0.0ms) rollback transaction
2720
+  (0.0ms) begin transaction
2721
+ ------------------------------------------------------------------------------
2722
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2723
+ ------------------------------------------------------------------------------
2724
+  (0.0ms) rollback transaction
2725
+  (0.1ms) begin transaction
2726
+ ---------------------------------------------------------------
2727
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2728
+ ---------------------------------------------------------------
2729
+  (0.0ms) SAVEPOINT active_record_1
2730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2731
+  (0.0ms) rollback transaction
2732
+  (0.1ms) begin transaction
2733
+ -----------------------------------------------------------------------------
2734
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2735
+ -----------------------------------------------------------------------------
2736
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2737
+  (0.0ms) SAVEPOINT active_record_1
2738
+  (0.4ms) INSERT 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')
2739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2740
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2741
+  (2.1ms) rollback transaction
2742
+  (0.1ms) begin transaction
2743
+ ---------------------------------------------------------------------
2744
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2745
+ ---------------------------------------------------------------------
2746
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2747
+  (0.0ms) SAVEPOINT active_record_1
2748
+  (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2750
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2751
+  (0.3ms) rollback transaction
2752
+  (0.0ms) begin transaction
2753
+ ----------------------------------------------------------------------------------
2754
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2755
+ ----------------------------------------------------------------------------------
2756
+  (0.1ms) INSERT 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')
2757
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2758
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2759
+  (0.3ms) rollback transaction
2760
+  (0.0ms) begin transaction
2761
+ ----------------------------------------------------------------------------
2762
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2763
+ ----------------------------------------------------------------------------
2764
+  (0.0ms) rollback transaction
2765
+  (0.0ms) begin transaction
2766
+ ----------------------------------------------------------------
2767
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2768
+ ----------------------------------------------------------------
2769
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2771
+  (0.3ms) rollback transaction
2772
+  (0.0ms) begin transaction
2773
+ --------------------------------------------------------
2774
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2775
+ --------------------------------------------------------
2776
+  (0.1ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2778
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2779
+  (0.2ms) rollback transaction
2780
+  (0.1ms) begin transaction
2781
+ ----------------------------------------------------------------------------------------------
2782
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2783
+ ----------------------------------------------------------------------------------------------
2784
+  (0.1ms) INSERT 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')
2785
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings"
2786
+  (0.2ms) rollback transaction
2787
+  (0.0ms) begin transaction
2788
+ -------------------------------------------------------------------------------
2789
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2790
+ -------------------------------------------------------------------------------
2791
+  (0.1ms) INSERT 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')
2792
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2793
+  (0.2ms) rollback transaction
2794
+  (0.0ms) begin transaction
2795
+ ---------------------------------------------------------
2796
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2797
+ ---------------------------------------------------------
2798
+  (0.1ms) INSERT 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')
2799
+  (0.2ms) rollback transaction
2800
+  (0.0ms) begin transaction
2801
+ -------------------------------------------------------------------
2802
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2803
+ -------------------------------------------------------------------
2804
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2805
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2806
+  (0.0ms) rollback transaction
2807
+  (0.0ms) begin transaction
2808
+ ------------------------------------------------------------------------------
2809
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2810
+ ------------------------------------------------------------------------------
2811
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2813
+  (0.2ms) rollback transaction
2814
+  (0.0ms) begin transaction
2815
+ --------------------------------------------------------------------
2816
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2817
+ --------------------------------------------------------------------
2818
+  (0.1ms) rollback transaction
2819
+  (0.0ms) begin transaction
2820
+ ----------------------------------------------------------------
2821
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2822
+ ----------------------------------------------------------------
2823
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2825
+  (0.2ms) rollback transaction
2826
+  (0.0ms) begin transaction
2827
+ ---------------------------------------------------------------------
2828
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2829
+ ---------------------------------------------------------------------
2830
+  (0.1ms) rollback transaction
2831
+  (0.0ms) begin transaction
2832
+ ------------------------------------------------------
2833
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2834
+ ------------------------------------------------------
2835
+  (0.0ms) rollback transaction
2836
+  (0.0ms) begin transaction
2837
+ -------------------------------------------
2838
+ BulkInsertWorkerTest: test_default_set_size
2839
+ -------------------------------------------
2840
+  (0.0ms) rollback transaction
2841
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2842
+  (0.1ms) begin transaction
2843
+ ---------------------------------------------------------------------
2844
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2845
+ ---------------------------------------------------------------------
2846
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2847
+  (0.0ms) SAVEPOINT active_record_1
2848
+  (0.3ms) INSERT 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')
2849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2850
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2851
+  (2.3ms) rollback transaction
2852
+  (0.1ms) begin transaction
2853
+ ------------------------------------------------------------------------------
2854
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2855
+ ------------------------------------------------------------------------------
2856
+  (0.1ms) rollback transaction
2857
+  (0.1ms) begin transaction
2858
+ -----------------------------------------------------------------------------
2859
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2860
+ -----------------------------------------------------------------------------
2861
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2862
+  (0.0ms) SAVEPOINT active_record_1
2863
+  (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2865
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2866
+  (0.3ms) rollback transaction
2867
+  (0.0ms) begin transaction
2868
+ -------------------------------------------------------------------
2869
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2870
+ -------------------------------------------------------------------
2871
+  (0.0ms) rollback transaction
2872
+  (0.0ms) begin transaction
2873
+ ---------------------------------------------------------------
2874
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2875
+ ---------------------------------------------------------------
2876
+  (0.0ms) SAVEPOINT active_record_1
2877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2878
+  (0.0ms) rollback transaction
2879
+  (0.0ms) begin transaction
2880
+ -------------------------------------------------------------------
2881
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2882
+ -------------------------------------------------------------------
2883
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2884
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2885
+  (0.0ms) rollback transaction
2886
+  (0.0ms) begin transaction
2887
+ -------------------------------------------------------------------------------
2888
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2889
+ -------------------------------------------------------------------------------
2890
+  (0.2ms) INSERT 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')
2891
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2892
+  (0.4ms) rollback transaction
2893
+  (0.1ms) begin transaction
2894
+ -------------------------------------------
2895
+ BulkInsertWorkerTest: test_default_set_size
2896
+ -------------------------------------------
2897
+  (0.0ms) rollback transaction
2898
+  (0.0ms) begin transaction
2899
+ ----------------------------------------------------------------------------------------------
2900
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2901
+ ----------------------------------------------------------------------------------------------
2902
+  (0.2ms) INSERT 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')
2903
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2904
+  (0.3ms) rollback transaction
2905
+  (0.0ms) begin transaction
2906
+ --------------------------------------------------------
2907
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2908
+ --------------------------------------------------------
2909
+  (0.1ms) INSERT 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')
2910
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2911
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2912
+  (0.3ms) rollback transaction
2913
+  (0.0ms) begin transaction
2914
+ ---------------------------------------------------------------------
2915
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2916
+ ---------------------------------------------------------------------
2917
+  (0.0ms) rollback transaction
2918
+  (0.0ms) begin transaction
2919
+ ----------------------------------------------------------------------------------
2920
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2921
+ ----------------------------------------------------------------------------------
2922
+  (0.1ms) 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
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2924
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2925
+  (0.3ms) rollback transaction
2926
+  (0.0ms) begin transaction
2927
+ ------------------------------------------------------------------------------
2928
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2929
+ ------------------------------------------------------------------------------
2930
+  (0.1ms) INSERT 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')
2931
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2932
+  (0.2ms) rollback transaction
2933
+  (0.0ms) begin transaction
2934
+ ----------------------------------------------------------------------------
2935
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2936
+ ----------------------------------------------------------------------------
2937
+  (0.0ms) rollback transaction
2938
+  (0.0ms) begin transaction
2939
+ ---------------------------------------------------------
2940
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2941
+ ---------------------------------------------------------
2942
+  (0.1ms) INSERT 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')
2943
+  (0.2ms) rollback transaction
2944
+  (1.2ms) begin transaction
2945
+ --------------------------------------------------------------------
2946
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2947
+ --------------------------------------------------------------------
2948
+  (0.0ms) rollback transaction
2949
+  (0.0ms) begin transaction
2950
+ ----------------------------------------------------------------
2951
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2952
+ ----------------------------------------------------------------
2953
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2955
+  (0.3ms) rollback transaction
2956
+  (0.1ms) begin transaction
2957
+ ------------------------------------------------------
2958
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2959
+ ------------------------------------------------------
2960
+  (0.0ms) rollback transaction
2961
+  (0.0ms) begin transaction
2962
+ ----------------------------------------------------------------
2963
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2964
+ ----------------------------------------------------------------
2965
+  (0.2ms) 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
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2967
+  (0.2ms) 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.0
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-05-03 00:00:00.000000000 Z
11
+ date: 2016-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord