bulk_insert 1.1.1 → 1.2.0

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: 55608bd96c8779425aebdefda3a989aee60b7890
4
- data.tar.gz: 0dafe737191770da482b9f3ebf1a5ec4878c1a56
3
+ metadata.gz: a7d7a8883105803d8b04b69f6f16ebcacdcfac4b
4
+ data.tar.gz: 5b7b2b74f4adf00a2f2dd55de9c2857bdb8977b5
5
5
  SHA512:
6
- metadata.gz: 0ffa48bfabdf5793664b68ad954995bbb50ec6f1f96d17a58791dad23a45ca89fe2c250c68c386484690a8c92bdaae2ff51f3576c8e8a4b29aaf2cdc24d687af
7
- data.tar.gz: b434dc5134c5f9dd1a0c55edd6e6bafd244bf4110c898a97f60e7badbfb885cc5c8e5cfaddcb089a97ba380cad9e158258ea097a1f842c4954ec97ece3bca462
6
+ metadata.gz: 6bf39cb1362d1d5c1c3897191d9b3a223b0fea67f0f2b334bc992656433f7dfd9c30ec1019d709f9a8d851e2aa066949fd56db7af71297de7ead5da6c67465e0
7
+ data.tar.gz: 57aabe850a79488712f2a7022a04e73abdd1fc464cb4933be4a2f305c592035c19c206cf497f5d536efe81ddf1d4aacab5c30d1374368716b36b0c1cbf8fb905
@@ -1,7 +1,7 @@
1
1
  module BulkInsert
2
2
  MAJOR = 1
3
- MINOR = 1
4
- TINY = 1
3
+ MINOR = 2
4
+ TINY = 0
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -63,7 +63,13 @@ module BulkInsert
63
63
  values = []
64
64
  @columns.zip(row) do |column, value|
65
65
  value = @now if value == :__timestamp_placeholder
66
- values << @connection.quote(value, column)
66
+
67
+ if Rails.version >= "5.0.0"
68
+ value = @connection.type_cast_from_column(column, value) if column
69
+ values << @connection.quote(value)
70
+ else
71
+ values << @connection.quote(value, column)
72
+ end
67
73
  end
68
74
  rows << "(#{values.join(',')})"
69
75
  end
@@ -1568,3 +1568,1019 @@ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1568
1568
  BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1569
1569
  ------------------------------------------------------------------------------
1570
1570
   (0.1ms) rollback transaction
1571
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1572
+  (0.1ms) begin transaction
1573
+ ------------------------------------------------------------------------------
1574
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1575
+ ------------------------------------------------------------------------------
1576
+  (0.1ms) rollback transaction
1577
+  (0.1ms) begin transaction
1578
+ ---------------------------------------------------------------------
1579
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1580
+ ---------------------------------------------------------------------
1581
+  (0.5ms) SELECT COUNT(*) FROM "testings"
1582
+  (0.0ms) SAVEPOINT active_record_1
1583
+  (0.6ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:36:29.664634','2016-05-03 16:36:29.664634','chartreuse')
1584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1585
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1586
+  (0.8ms) rollback transaction
1587
+  (0.1ms) begin transaction
1588
+ ---------------------------------------------------------------
1589
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1590
+ ---------------------------------------------------------------
1591
+  (0.0ms) SAVEPOINT active_record_1
1592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1593
+  (0.0ms) rollback transaction
1594
+  (0.0ms) begin transaction
1595
+ -----------------------------------------------------------------------------
1596
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1597
+ -----------------------------------------------------------------------------
1598
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1599
+  (0.0ms) SAVEPOINT active_record_1
1600
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:36:29.672404','chartreuse'),('Hey',20,'f','2016-05-03 16:36:29.672404','2016-05-03 16:36:29.672404','chartreuse')
1601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1602
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1603
+  (0.4ms) rollback transaction
1604
+  (0.1ms) begin transaction
1605
+ -------------------------------------------------------------------
1606
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1607
+ -------------------------------------------------------------------
1608
+  (0.1ms) rollback transaction
1609
+  (0.0ms) begin transaction
1610
+ --------------------------------------------------------------------
1611
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1612
+ --------------------------------------------------------------------
1613
+  (0.0ms) rollback transaction
1614
+  (0.1ms) begin transaction
1615
+ ----------------------------------------------------------------
1616
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1617
+ ----------------------------------------------------------------
1618
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:36:29.677247','2016-05-03 16:36:29.677247',NULL)
1619
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1620
+  (0.5ms) rollback transaction
1621
+  (0.1ms) begin transaction
1622
+ ------------------------------------------------------
1623
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1624
+ ------------------------------------------------------
1625
+  (0.0ms) rollback transaction
1626
+  (0.1ms) begin transaction
1627
+ -------------------------------------------
1628
+ BulkInsertWorkerTest: test_default_set_size
1629
+ -------------------------------------------
1630
+  (0.0ms) rollback transaction
1631
+  (0.1ms) begin transaction
1632
+ -------------------------------------------------------------------
1633
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1634
+ -------------------------------------------------------------------
1635
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1636
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1637
+  (0.0ms) rollback transaction
1638
+  (0.1ms) begin transaction
1639
+ --------------------------------------------------------
1640
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1641
+ --------------------------------------------------------
1642
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:36:29.689397','2016-05-03 16:36:29.689397','chartreuse'),('Hello',25,'t','2016-05-03 16:36:29.689397','2016-05-03 16:36:29.689397','chartreuse')
1643
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
1644
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
1645
+  (0.4ms) rollback transaction
1646
+  (0.1ms) begin transaction
1647
+ ----------------------------------------------------------------
1648
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1649
+ ----------------------------------------------------------------
1650
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:36:29.697424','2016-05-03 16:36:29.697424','chartreuse')
1651
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1652
+  (0.5ms) rollback transaction
1653
+  (0.1ms) begin transaction
1654
+ ----------------------------------------------------------------------------
1655
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1656
+ ----------------------------------------------------------------------------
1657
+  (0.1ms) rollback transaction
1658
+  (0.1ms) begin transaction
1659
+ -------------------------------------------------------------------------------
1660
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1661
+ -------------------------------------------------------------------------------
1662
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.702504','2016-05-03 16:36:29.702504','chartreuse')
1663
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1664
+  (0.4ms) rollback transaction
1665
+  (0.1ms) begin transaction
1666
+ ---------------------------------------------------------------------
1667
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1668
+ ---------------------------------------------------------------------
1669
+  (0.1ms) rollback transaction
1670
+  (0.1ms) begin transaction
1671
+ ----------------------------------------------------------------------------------
1672
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1673
+ ----------------------------------------------------------------------------------
1674
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.706093','2016-05-03 16:36:29.706093','chartreuse')
1675
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1676
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1677
+  (0.5ms) rollback transaction
1678
+  (0.1ms) begin transaction
1679
+ ----------------------------------------------------------------------------------------------
1680
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1681
+ ----------------------------------------------------------------------------------------------
1682
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.709530','2016-05-03 16:36:29.709530','chartreuse'),('Howdy',20,'f','2016-05-03 16:36:29.709530','2016-05-03 16:36:29.709530','chartreuse')
1683
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1684
+  (0.5ms) rollback transaction
1685
+  (0.1ms) begin transaction
1686
+ ---------------------------------------------------------
1687
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1688
+ ---------------------------------------------------------
1689
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.712302','2016-05-03 16:36:29.712302','chartreuse')
1690
+  (0.4ms) rollback transaction
1691
+  (0.1ms) begin transaction
1692
+ ------------------------------------------------------------------------------
1693
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1694
+ ------------------------------------------------------------------------------
1695
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:36:29.714090','2016-05-03 16:36:29.714090','chartreuse')
1696
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1697
+  (0.6ms) rollback transaction
1698
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1699
+  (0.1ms) begin transaction
1700
+ --------------------------------------------------------
1701
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1702
+ --------------------------------------------------------
1703
+  (0.8ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:10.769501','2016-05-03 16:39:10.769501','chartreuse'),('Hello',25,'t','2016-05-03 16:39:10.769501','2016-05-03 16:39:10.769501','chartreuse')
1704
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
1705
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
1706
+  (0.4ms) rollback transaction
1707
+  (0.1ms) begin transaction
1708
+ ------------------------------------------------------------------------------
1709
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1710
+ ------------------------------------------------------------------------------
1711
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:10.786277','2016-05-03 16:39:10.786277','chartreuse')
1712
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1713
+  (0.4ms) rollback transaction
1714
+  (0.1ms) begin transaction
1715
+ ----------------------------------------------------------------
1716
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1717
+ ----------------------------------------------------------------
1718
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:10.788623','2016-05-03 16:39:10.788623','chartreuse')
1719
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1720
+  (0.4ms) rollback transaction
1721
+  (0.1ms) begin transaction
1722
+ --------------------------------------------------------------------
1723
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1724
+ --------------------------------------------------------------------
1725
+  (0.0ms) rollback transaction
1726
+  (0.1ms) begin transaction
1727
+ ------------------------------------------------------
1728
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1729
+ ------------------------------------------------------
1730
+  (0.0ms) rollback transaction
1731
+  (0.1ms) begin transaction
1732
+ ----------------------------------------------------------------
1733
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1734
+ ----------------------------------------------------------------
1735
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:10.792429','2016-05-03 16:39:10.792429',NULL)
1736
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1737
+  (0.4ms) rollback transaction
1738
+  (0.1ms) begin transaction
1739
+ ---------------------------------------------------------------------
1740
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1741
+ ---------------------------------------------------------------------
1742
+  (0.0ms) rollback transaction
1743
+  (0.1ms) begin transaction
1744
+ -------------------------------------------
1745
+ BulkInsertWorkerTest: test_default_set_size
1746
+ -------------------------------------------
1747
+  (0.0ms) rollback transaction
1748
+  (0.1ms) begin transaction
1749
+ -------------------------------------------------------------------------------
1750
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1751
+ -------------------------------------------------------------------------------
1752
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.796526','2016-05-03 16:39:10.796526','chartreuse')
1753
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1754
+  (1.6ms) rollback transaction
1755
+  (0.1ms) begin transaction
1756
+ -------------------------------------------------------------------
1757
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1758
+ -------------------------------------------------------------------
1759
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1760
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1761
+  (0.1ms) rollback transaction
1762
+  (0.0ms) begin transaction
1763
+ ----------------------------------------------------------------------------------------------
1764
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1765
+ ----------------------------------------------------------------------------------------------
1766
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.802575','2016-05-03 16:39:10.802575','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:10.802575','2016-05-03 16:39:10.802575','chartreuse')
1767
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1768
+  (0.4ms) rollback transaction
1769
+  (0.1ms) begin transaction
1770
+ ---------------------------------------------------------
1771
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1772
+ ---------------------------------------------------------
1773
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.805335','2016-05-03 16:39:10.805335','chartreuse')
1774
+  (0.8ms) rollback transaction
1775
+  (0.1ms) begin transaction
1776
+ ----------------------------------------------------------------------------
1777
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1778
+ ----------------------------------------------------------------------------
1779
+  (0.1ms) rollback transaction
1780
+  (0.1ms) begin transaction
1781
+ ----------------------------------------------------------------------------------
1782
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1783
+ ----------------------------------------------------------------------------------
1784
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.809202','2016-05-03 16:39:10.809202','chartreuse')
1785
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1786
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1787
+  (0.4ms) rollback transaction
1788
+  (0.0ms) begin transaction
1789
+ ---------------------------------------------------------------
1790
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1791
+ ---------------------------------------------------------------
1792
+  (0.0ms) SAVEPOINT active_record_1
1793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1794
+  (0.0ms) rollback transaction
1795
+  (0.1ms) begin transaction
1796
+ -------------------------------------------------------------------
1797
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1798
+ -------------------------------------------------------------------
1799
+  (0.0ms) rollback transaction
1800
+  (0.1ms) begin transaction
1801
+ ------------------------------------------------------------------------------
1802
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1803
+ ------------------------------------------------------------------------------
1804
+  (0.0ms) rollback transaction
1805
+  (0.1ms) begin transaction
1806
+ -----------------------------------------------------------------------------
1807
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1808
+ -----------------------------------------------------------------------------
1809
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1810
+  (0.0ms) SAVEPOINT active_record_1
1811
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:10.815115','chartreuse'),('Hey',20,'f','2016-05-03 16:39:10.815115','2016-05-03 16:39:10.815115','chartreuse')
1812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1813
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1814
+  (0.4ms) rollback transaction
1815
+  (0.1ms) begin transaction
1816
+ ---------------------------------------------------------------------
1817
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1818
+ ---------------------------------------------------------------------
1819
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1820
+  (0.0ms) SAVEPOINT active_record_1
1821
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:10.817715','2016-05-03 16:39:10.817715','chartreuse')
1822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1823
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1824
+  (0.4ms) rollback transaction
1825
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1826
+  (0.1ms) begin transaction
1827
+ ------------------------------------------------------
1828
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1829
+ ------------------------------------------------------
1830
+  (0.0ms) rollback transaction
1831
+  (0.1ms) begin transaction
1832
+ ----------------------------------------------------------------
1833
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1834
+ ----------------------------------------------------------------
1835
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:23.433773','2016-05-03 16:39:23.433773','chartreuse')
1836
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1837
+  (2.0ms) rollback transaction
1838
+  (0.1ms) begin transaction
1839
+ ----------------------------------------------------------------------------
1840
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1841
+ ----------------------------------------------------------------------------
1842
+  (0.0ms) rollback transaction
1843
+  (0.1ms) begin transaction
1844
+ ---------------------------------------------------------
1845
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1846
+ ---------------------------------------------------------
1847
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.451750','2016-05-03 16:39:23.451750','chartreuse')
1848
+  (0.4ms) rollback transaction
1849
+  (0.1ms) begin transaction
1850
+ --------------------------------------------------------------------
1851
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1852
+ --------------------------------------------------------------------
1853
+  (0.0ms) rollback transaction
1854
+  (0.0ms) begin transaction
1855
+ ------------------------------------------------------------------------------
1856
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1857
+ ------------------------------------------------------------------------------
1858
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:23.454387','2016-05-03 16:39:23.454387','chartreuse')
1859
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1860
+  (0.4ms) rollback transaction
1861
+  (0.1ms) begin transaction
1862
+ --------------------------------------------------------
1863
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1864
+ --------------------------------------------------------
1865
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:23.456532','2016-05-03 16:39:23.456532','chartreuse'),('Hello',25,'t','2016-05-03 16:39:23.456532','2016-05-03 16:39:23.456532','chartreuse')
1866
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
1867
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
1868
+  (0.4ms) rollback transaction
1869
+  (0.2ms) begin transaction
1870
+ -------------------------------------------------------------------
1871
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1872
+ -------------------------------------------------------------------
1873
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1874
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1875
+  (0.0ms) rollback transaction
1876
+  (0.0ms) begin transaction
1877
+ ----------------------------------------------------------------------------------------------
1878
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1879
+ ----------------------------------------------------------------------------------------------
1880
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.464302','2016-05-03 16:39:23.464302','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:23.464302','2016-05-03 16:39:23.464302','chartreuse')
1881
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1882
+  (0.5ms) rollback transaction
1883
+  (0.0ms) begin transaction
1884
+ ---------------------------------------------------------------------
1885
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1886
+ ---------------------------------------------------------------------
1887
+  (0.0ms) rollback transaction
1888
+  (0.1ms) begin transaction
1889
+ -------------------------------------------------------------------------------
1890
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1891
+ -------------------------------------------------------------------------------
1892
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.468512','2016-05-03 16:39:23.468512','chartreuse')
1893
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1894
+  (0.7ms) rollback transaction
1895
+  (0.1ms) begin transaction
1896
+ ----------------------------------------------------------------
1897
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1898
+ ----------------------------------------------------------------
1899
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:23.472343','2016-05-03 16:39:23.472343',NULL)
1900
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1901
+  (0.4ms) rollback transaction
1902
+  (0.1ms) begin transaction
1903
+ ----------------------------------------------------------------------------------
1904
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1905
+ ----------------------------------------------------------------------------------
1906
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.474575','2016-05-03 16:39:23.474575','chartreuse')
1907
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1908
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1909
+  (0.4ms) rollback transaction
1910
+  (0.1ms) begin transaction
1911
+ -------------------------------------------
1912
+ BulkInsertWorkerTest: test_default_set_size
1913
+ -------------------------------------------
1914
+  (0.1ms) rollback transaction
1915
+  (0.1ms) begin transaction
1916
+ ---------------------------------------------------------------
1917
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1918
+ ---------------------------------------------------------------
1919
+  (0.0ms) SAVEPOINT active_record_1
1920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1921
+  (0.0ms) rollback transaction
1922
+  (0.0ms) begin transaction
1923
+ ---------------------------------------------------------------------
1924
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1925
+ ---------------------------------------------------------------------
1926
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1927
+  (0.0ms) SAVEPOINT active_record_1
1928
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:23.481996','2016-05-03 16:39:23.481996','chartreuse')
1929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1930
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1931
+  (0.4ms) rollback transaction
1932
+  (0.1ms) begin transaction
1933
+ -----------------------------------------------------------------------------
1934
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1935
+ -----------------------------------------------------------------------------
1936
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1937
+  (0.0ms) SAVEPOINT active_record_1
1938
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:23.484623','chartreuse'),('Hey',20,'f','2016-05-03 16:39:23.484623','2016-05-03 16:39:23.484623','chartreuse')
1939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1940
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1941
+  (0.4ms) rollback transaction
1942
+  (0.1ms) begin transaction
1943
+ -------------------------------------------------------------------
1944
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1945
+ -------------------------------------------------------------------
1946
+  (0.1ms) rollback transaction
1947
+  (0.0ms) begin transaction
1948
+ ------------------------------------------------------------------------------
1949
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1950
+ ------------------------------------------------------------------------------
1951
+  (0.0ms) rollback transaction
1952
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1953
+  (0.1ms) begin transaction
1954
+ ---------------------------------------------------------------------
1955
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1956
+ ---------------------------------------------------------------------
1957
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1958
+  (0.0ms) SAVEPOINT active_record_1
1959
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:45.521788','2016-05-03 16:39:45.521788','chartreuse')
1960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1961
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1962
+  (2.1ms) rollback transaction
1963
+  (0.2ms) begin transaction
1964
+ ------------------------------------------------------------------------------
1965
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1966
+ ------------------------------------------------------------------------------
1967
+  (0.1ms) rollback transaction
1968
+  (0.1ms) begin transaction
1969
+ -------------------------------------------------------------------
1970
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1971
+ -------------------------------------------------------------------
1972
+  (0.1ms) rollback transaction
1973
+  (0.1ms) begin transaction
1974
+ ---------------------------------------------------------------
1975
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1976
+ ---------------------------------------------------------------
1977
+  (0.1ms) SAVEPOINT active_record_1
1978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1979
+  (0.1ms) rollback transaction
1980
+  (0.1ms) begin transaction
1981
+ -----------------------------------------------------------------------------
1982
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1983
+ -----------------------------------------------------------------------------
1984
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1985
+  (0.1ms) SAVEPOINT active_record_1
1986
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:45.534044','chartreuse'),('Hey',20,'f','2016-05-03 16:39:45.534044','2016-05-03 16:39:45.534044','chartreuse')
1987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1988
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1989
+  (0.4ms) rollback transaction
1990
+  (0.1ms) begin transaction
1991
+ -------------------------------------------------------------------------------
1992
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1993
+ -------------------------------------------------------------------------------
1994
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.538220','2016-05-03 16:39:45.538220','chartreuse')
1995
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1996
+  (0.4ms) rollback transaction
1997
+  (0.1ms) begin transaction
1998
+ ------------------------------------------------------
1999
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2000
+ ------------------------------------------------------
2001
+  (0.1ms) rollback transaction
2002
+  (0.1ms) begin transaction
2003
+ ----------------------------------------------------------------------------------
2004
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2005
+ ----------------------------------------------------------------------------------
2006
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.547445','2016-05-03 16:39:45.547445','chartreuse')
2007
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2008
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2009
+  (0.3ms) rollback transaction
2010
+  (0.1ms) begin transaction
2011
+ --------------------------------------------------------
2012
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2013
+ --------------------------------------------------------
2014
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:45.550550','2016-05-03 16:39:45.550550','chartreuse'),('Hello',25,'t','2016-05-03 16:39:45.550550','2016-05-03 16:39:45.550550','chartreuse')
2015
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
2016
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
2017
+  (0.4ms) rollback transaction
2018
+  (0.1ms) begin transaction
2019
+ --------------------------------------------------------------------
2020
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2021
+ --------------------------------------------------------------------
2022
+  (0.0ms) rollback transaction
2023
+  (0.1ms) begin transaction
2024
+ ---------------------------------------------------------
2025
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2026
+ ---------------------------------------------------------
2027
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.558298','2016-05-03 16:39:45.558298','chartreuse')
2028
+  (0.8ms) rollback transaction
2029
+  (0.1ms) begin transaction
2030
+ -------------------------------------------------------------------
2031
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2032
+ -------------------------------------------------------------------
2033
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2034
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2035
+  (0.0ms) rollback transaction
2036
+  (0.1ms) begin transaction
2037
+ ---------------------------------------------------------------------
2038
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2039
+ ---------------------------------------------------------------------
2040
+  (0.0ms) rollback transaction
2041
+  (0.1ms) begin transaction
2042
+ ----------------------------------------------------------------
2043
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2044
+ ----------------------------------------------------------------
2045
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:45.563556','2016-05-03 16:39:45.563556',NULL)
2046
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2047
+  (0.4ms) rollback transaction
2048
+  (0.1ms) begin transaction
2049
+ ------------------------------------------------------------------------------
2050
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2051
+ ------------------------------------------------------------------------------
2052
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:45.565691','2016-05-03 16:39:45.565691','chartreuse')
2053
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2054
+  (0.4ms) rollback transaction
2055
+  (0.1ms) begin transaction
2056
+ ----------------------------------------------------------------------------------------------
2057
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2058
+ ----------------------------------------------------------------------------------------------
2059
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.568050','2016-05-03 16:39:45.568050','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:45.568050','2016-05-03 16:39:45.568050','chartreuse')
2060
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2061
+  (0.4ms) rollback transaction
2062
+  (0.1ms) begin transaction
2063
+ ----------------------------------------------------------------
2064
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2065
+ ----------------------------------------------------------------
2066
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:45.570485','2016-05-03 16:39:45.570485','chartreuse')
2067
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2068
+  (0.5ms) rollback transaction
2069
+  (0.1ms) begin transaction
2070
+ ----------------------------------------------------------------------------
2071
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2072
+ ----------------------------------------------------------------------------
2073
+  (0.0ms) rollback transaction
2074
+  (0.1ms) begin transaction
2075
+ -------------------------------------------
2076
+ BulkInsertWorkerTest: test_default_set_size
2077
+ -------------------------------------------
2078
+  (0.0ms) rollback transaction
2079
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2080
+  (0.1ms) begin transaction
2081
+ ---------------------------------------------------------------------
2082
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2083
+ ---------------------------------------------------------------------
2084
+  (0.1ms) rollback transaction
2085
+  (0.1ms) begin transaction
2086
+ -------------------------------------------------------------------
2087
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2088
+ -------------------------------------------------------------------
2089
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2090
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2091
+  (0.0ms) rollback transaction
2092
+  (0.0ms) begin transaction
2093
+ ---------------------------------------------------------
2094
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2095
+ ---------------------------------------------------------
2096
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.670107','2016-05-03 16:42:31.670107','chartreuse')
2097
+  (0.4ms) rollback transaction
2098
+  (0.1ms) begin transaction
2099
+ ------------------------------------------------------------------------------
2100
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2101
+ ------------------------------------------------------------------------------
2102
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:31.674139','2016-05-03 16:42:31.674139','chartreuse')
2103
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2104
+  (0.5ms) rollback transaction
2105
+  (0.1ms) begin transaction
2106
+ ----------------------------------------------------------------
2107
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2108
+ ----------------------------------------------------------------
2109
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:31.681855','2016-05-03 16:42:31.681855','chartreuse')
2110
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2111
+  (0.5ms) rollback transaction
2112
+  (0.1ms) begin transaction
2113
+ ------------------------------------------------------
2114
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2115
+ ------------------------------------------------------
2116
+  (0.0ms) rollback transaction
2117
+  (0.0ms) begin transaction
2118
+ -------------------------------------------
2119
+ BulkInsertWorkerTest: test_default_set_size
2120
+ -------------------------------------------
2121
+  (0.0ms) rollback transaction
2122
+  (0.1ms) begin transaction
2123
+ ----------------------------------------------------------------
2124
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2125
+ ----------------------------------------------------------------
2126
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:31.685669','2016-05-03 16:42:31.685669',NULL)
2127
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2128
+  (0.4ms) rollback transaction
2129
+  (0.0ms) begin transaction
2130
+ ----------------------------------------------------------------------------
2131
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2132
+ ----------------------------------------------------------------------------
2133
+  (0.0ms) rollback transaction
2134
+  (0.1ms) begin transaction
2135
+ ----------------------------------------------------------------------------------------------
2136
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2137
+ ----------------------------------------------------------------------------------------------
2138
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.688225','2016-05-03 16:42:31.688225','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:31.688225','2016-05-03 16:42:31.688225','chartreuse')
2139
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2140
+  (0.4ms) rollback transaction
2141
+  (0.1ms) begin transaction
2142
+ ----------------------------------------------------------------------------------
2143
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2144
+ ----------------------------------------------------------------------------------
2145
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.690240','2016-05-03 16:42:31.690240','chartreuse')
2146
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2147
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2148
+  (0.4ms) rollback transaction
2149
+  (0.1ms) begin transaction
2150
+ --------------------------------------------------------------------
2151
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2152
+ --------------------------------------------------------------------
2153
+  (0.0ms) rollback transaction
2154
+  (0.1ms) begin transaction
2155
+ -------------------------------------------------------------------------------
2156
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2157
+ -------------------------------------------------------------------------------
2158
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.693189','2016-05-03 16:42:31.693189','chartreuse')
2159
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2160
+  (0.5ms) rollback transaction
2161
+  (0.1ms) begin transaction
2162
+ --------------------------------------------------------
2163
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2164
+ --------------------------------------------------------
2165
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:31.695730','2016-05-03 16:42:31.695730','chartreuse'),('Hello',25,'t','2016-05-03 16:42:31.695730','2016-05-03 16:42:31.695730','chartreuse')
2166
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2167
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2168
+  (0.4ms) rollback transaction
2169
+  (0.1ms) begin transaction
2170
+ ------------------------------------------------------------------------------
2171
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2172
+ ------------------------------------------------------------------------------
2173
+  (0.1ms) rollback transaction
2174
+  (0.1ms) begin transaction
2175
+ ---------------------------------------------------------------------
2176
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2177
+ ---------------------------------------------------------------------
2178
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2179
+  (0.1ms) SAVEPOINT active_record_1
2180
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:31.706689','2016-05-03 16:42:31.706689','chartreuse')
2181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2182
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2183
+  (0.4ms) rollback transaction
2184
+  (0.0ms) begin transaction
2185
+ -------------------------------------------------------------------
2186
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2187
+ -------------------------------------------------------------------
2188
+  (0.1ms) rollback transaction
2189
+  (0.0ms) begin transaction
2190
+ -----------------------------------------------------------------------------
2191
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2192
+ -----------------------------------------------------------------------------
2193
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2194
+  (0.0ms) SAVEPOINT active_record_1
2195
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:31.710916','chartreuse'),('Hey',20,'f','2016-05-03 16:42:31.710916','2016-05-03 16:42:31.710916','chartreuse')
2196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2197
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2198
+  (0.4ms) rollback transaction
2199
+  (0.1ms) begin transaction
2200
+ ---------------------------------------------------------------
2201
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2202
+ ---------------------------------------------------------------
2203
+  (0.0ms) SAVEPOINT active_record_1
2204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2205
+  (0.0ms) rollback transaction
2206
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2207
+  (0.2ms) begin transaction
2208
+ ---------------------------------------------------------------------
2209
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2210
+ ---------------------------------------------------------------------
2211
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2212
+  (0.1ms) SAVEPOINT active_record_1
2213
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:48.573051','2016-05-03 16:42:48.573051','chartreuse')
2214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2215
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2216
+  (0.5ms) rollback transaction
2217
+  (0.1ms) begin transaction
2218
+ -------------------------------------------------------------------
2219
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2220
+ -------------------------------------------------------------------
2221
+  (0.0ms) rollback transaction
2222
+  (0.1ms) begin transaction
2223
+ -----------------------------------------------------------------------------
2224
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2225
+ -----------------------------------------------------------------------------
2226
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2227
+  (0.0ms) SAVEPOINT active_record_1
2228
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:48.577883','chartreuse'),('Hey',20,'f','2016-05-03 16:42:48.577883','2016-05-03 16:42:48.577883','chartreuse')
2229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2230
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2231
+  (0.4ms) rollback transaction
2232
+  (0.1ms) begin transaction
2233
+ ---------------------------------------------------------------
2234
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2235
+ ---------------------------------------------------------------
2236
+  (0.0ms) SAVEPOINT active_record_1
2237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2238
+  (0.0ms) rollback transaction
2239
+  (0.1ms) begin transaction
2240
+ ------------------------------------------------------------------------------
2241
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2242
+ ------------------------------------------------------------------------------
2243
+  (0.0ms) rollback transaction
2244
+  (0.0ms) begin transaction
2245
+ ----------------------------------------------------------------
2246
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2247
+ ----------------------------------------------------------------
2248
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:48.581825','2016-05-03 16:42:48.581825','chartreuse')
2249
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2250
+  (0.5ms) rollback transaction
2251
+  (0.1ms) begin transaction
2252
+ ----------------------------------------------------------------------------------
2253
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2254
+ ----------------------------------------------------------------------------------
2255
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.589619','2016-05-03 16:42:48.589619','chartreuse')
2256
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2257
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2258
+  (0.4ms) rollback transaction
2259
+  (0.1ms) begin transaction
2260
+ -------------------------------------------
2261
+ BulkInsertWorkerTest: test_default_set_size
2262
+ -------------------------------------------
2263
+  (0.0ms) rollback transaction
2264
+  (0.1ms) begin transaction
2265
+ ----------------------------------------------------------------
2266
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2267
+ ----------------------------------------------------------------
2268
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:48.592636','2016-05-03 16:42:48.592636',NULL)
2269
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2270
+  (0.4ms) rollback transaction
2271
+  (0.1ms) begin transaction
2272
+ ---------------------------------------------------------------------
2273
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2274
+ ---------------------------------------------------------------------
2275
+  (0.0ms) rollback transaction
2276
+  (0.1ms) begin transaction
2277
+ ------------------------------------------------------
2278
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2279
+ ------------------------------------------------------
2280
+  (0.0ms) rollback transaction
2281
+  (0.1ms) begin transaction
2282
+ -------------------------------------------------------------------------------
2283
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2284
+ -------------------------------------------------------------------------------
2285
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.595770','2016-05-03 16:42:48.595770','chartreuse')
2286
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2287
+  (0.4ms) rollback transaction
2288
+  (0.1ms) begin transaction
2289
+ ------------------------------------------------------------------------------
2290
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2291
+ ------------------------------------------------------------------------------
2292
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:48.597749','2016-05-03 16:42:48.597749','chartreuse')
2293
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2294
+  (0.5ms) rollback transaction
2295
+  (0.1ms) begin transaction
2296
+ --------------------------------------------------------
2297
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2298
+ --------------------------------------------------------
2299
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:48.599866','2016-05-03 16:42:48.599866','chartreuse'),('Hello',25,'t','2016-05-03 16:42:48.599866','2016-05-03 16:42:48.599866','chartreuse')
2300
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2301
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2302
+  (0.4ms) rollback transaction
2303
+  (0.0ms) begin transaction
2304
+ ----------------------------------------------------------------------------------------------
2305
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2306
+ ----------------------------------------------------------------------------------------------
2307
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.607268','2016-05-03 16:42:48.607268','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:48.607268','2016-05-03 16:42:48.607268','chartreuse')
2308
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2309
+  (0.4ms) rollback transaction
2310
+  (0.1ms) begin transaction
2311
+ --------------------------------------------------------------------
2312
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2313
+ --------------------------------------------------------------------
2314
+  (0.1ms) rollback transaction
2315
+  (0.1ms) begin transaction
2316
+ ----------------------------------------------------------------------------
2317
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2318
+ ----------------------------------------------------------------------------
2319
+  (0.1ms) rollback transaction
2320
+  (0.1ms) begin transaction
2321
+ -------------------------------------------------------------------
2322
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2323
+ -------------------------------------------------------------------
2324
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2325
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2326
+  (0.1ms) rollback transaction
2327
+  (0.1ms) begin transaction
2328
+ ---------------------------------------------------------
2329
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2330
+ ---------------------------------------------------------
2331
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.614012','2016-05-03 16:42:48.614012','chartreuse')
2332
+  (0.4ms) rollback transaction
2333
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2334
+  (0.2ms) begin transaction
2335
+ -------------------------------------------
2336
+ BulkInsertWorkerTest: test_default_set_size
2337
+ -------------------------------------------
2338
+  (0.1ms) rollback transaction
2339
+  (0.1ms) begin transaction
2340
+ ----------------------------------------------------------------
2341
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2342
+ ----------------------------------------------------------------
2343
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:54.270837','2016-05-03 16:42:54.270837',NULL)
2344
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2345
+  (2.0ms) rollback transaction
2346
+  (0.1ms) begin transaction
2347
+ -------------------------------------------------------------------------------
2348
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2349
+ -------------------------------------------------------------------------------
2350
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.283206','2016-05-03 16:42:54.283206','chartreuse')
2351
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2352
+  (0.4ms) rollback transaction
2353
+  (0.1ms) begin transaction
2354
+ ----------------------------------------------------------------------------------
2355
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2356
+ ----------------------------------------------------------------------------------
2357
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.285488','2016-05-03 16:42:54.285488','chartreuse')
2358
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2359
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2360
+  (0.4ms) rollback transaction
2361
+  (0.1ms) begin transaction
2362
+ ------------------------------------------------------
2363
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2364
+ ------------------------------------------------------
2365
+  (0.0ms) rollback transaction
2366
+  (0.1ms) begin transaction
2367
+ ---------------------------------------------------------------------
2368
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2369
+ ---------------------------------------------------------------------
2370
+  (0.0ms) rollback transaction
2371
+  (0.1ms) begin transaction
2372
+ ------------------------------------------------------------------------------
2373
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2374
+ ------------------------------------------------------------------------------
2375
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:54.289341','2016-05-03 16:42:54.289341','chartreuse')
2376
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2377
+  (0.4ms) rollback transaction
2378
+  (0.1ms) begin transaction
2379
+ ----------------------------------------------------------------------------------------------
2380
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2381
+ ----------------------------------------------------------------------------------------------
2382
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.291041','2016-05-03 16:42:54.291041','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:54.291041','2016-05-03 16:42:54.291041','chartreuse')
2383
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2384
+  (0.4ms) rollback transaction
2385
+  (0.0ms) begin transaction
2386
+ ----------------------------------------------------------------
2387
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2388
+ ----------------------------------------------------------------
2389
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:54.292897','2016-05-03 16:42:54.292897','chartreuse')
2390
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2391
+  (0.4ms) rollback transaction
2392
+  (0.1ms) begin transaction
2393
+ --------------------------------------------------------------------
2394
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2395
+ --------------------------------------------------------------------
2396
+  (0.1ms) rollback transaction
2397
+  (0.1ms) begin transaction
2398
+ --------------------------------------------------------
2399
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2400
+ --------------------------------------------------------
2401
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:54.295852','2016-05-03 16:42:54.295852','chartreuse'),('Hello',25,'t','2016-05-03 16:42:54.295852','2016-05-03 16:42:54.295852','chartreuse')
2402
+ Testing Load (0.3ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2403
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2404
+  (0.5ms) rollback transaction
2405
+  (0.1ms) begin transaction
2406
+ ----------------------------------------------------------------------------
2407
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2408
+ ----------------------------------------------------------------------------
2409
+  (0.0ms) rollback transaction
2410
+  (0.1ms) begin transaction
2411
+ ---------------------------------------------------------
2412
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2413
+ ---------------------------------------------------------
2414
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.303949','2016-05-03 16:42:54.303949','chartreuse')
2415
+  (0.7ms) rollback transaction
2416
+  (0.0ms) begin transaction
2417
+ -------------------------------------------------------------------
2418
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2419
+ -------------------------------------------------------------------
2420
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2421
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2422
+  (0.0ms) rollback transaction
2423
+  (0.0ms) begin transaction
2424
+ ---------------------------------------------------------------------
2425
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2426
+ ---------------------------------------------------------------------
2427
+  (0.2ms) SELECT COUNT(*) FROM "testings"
2428
+  (0.0ms) SAVEPOINT active_record_1
2429
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:54.309559','2016-05-03 16:42:54.309559','chartreuse')
2430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2431
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2432
+  (0.4ms) rollback transaction
2433
+  (0.1ms) begin transaction
2434
+ ------------------------------------------------------------------------------
2435
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2436
+ ------------------------------------------------------------------------------
2437
+  (0.0ms) rollback transaction
2438
+  (0.0ms) begin transaction
2439
+ -----------------------------------------------------------------------------
2440
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2441
+ -----------------------------------------------------------------------------
2442
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2443
+  (0.0ms) SAVEPOINT active_record_1
2444
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:54.312368','chartreuse'),('Hey',20,'f','2016-05-03 16:42:54.312368','2016-05-03 16:42:54.312368','chartreuse')
2445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2446
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2447
+  (0.4ms) rollback transaction
2448
+  (0.1ms) begin transaction
2449
+ ---------------------------------------------------------------
2450
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2451
+ ---------------------------------------------------------------
2452
+  (0.0ms) SAVEPOINT active_record_1
2453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2454
+  (0.0ms) rollback transaction
2455
+  (0.1ms) begin transaction
2456
+ -------------------------------------------------------------------
2457
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2458
+ -------------------------------------------------------------------
2459
+  (0.0ms) rollback transaction
2460
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2461
+  (0.2ms) begin transaction
2462
+ --------------------------------------------------------------------
2463
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2464
+ --------------------------------------------------------------------
2465
+  (0.1ms) rollback transaction
2466
+  (0.1ms) begin transaction
2467
+ --------------------------------------------------------
2468
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
2469
+ --------------------------------------------------------
2470
+  (0.6ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:43:24.824960','2016-05-03 16:43:24.824960','chartreuse'),('Hello',25,'t','2016-05-03 16:43:24.824960','2016-05-03 16:43:24.824960','chartreuse')
2471
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
2472
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
2473
+  (0.4ms) rollback transaction
2474
+  (0.1ms) begin transaction
2475
+ ------------------------------------------------------------------------------
2476
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2477
+ ------------------------------------------------------------------------------
2478
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:43:24.847866','2016-05-03 16:43:24.847866','chartreuse')
2479
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2480
+  (0.3ms) rollback transaction
2481
+  (0.0ms) begin transaction
2482
+ -------------------------------------------------------------------------------
2483
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2484
+ -------------------------------------------------------------------------------
2485
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.851020','2016-05-03 16:43:24.851020','chartreuse')
2486
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2487
+  (0.4ms) rollback transaction
2488
+  (0.1ms) begin transaction
2489
+ -------------------------------------------------------------------
2490
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2491
+ -------------------------------------------------------------------
2492
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2493
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2494
+  (0.1ms) rollback transaction
2495
+  (0.1ms) begin transaction
2496
+ ----------------------------------------------------------------------------------------------
2497
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2498
+ ----------------------------------------------------------------------------------------------
2499
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.857822','2016-05-03 16:43:24.857822','chartreuse'),('Howdy',20,'f','2016-05-03 16:43:24.857822','2016-05-03 16:43:24.857822','chartreuse')
2500
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2501
+  (0.4ms) rollback transaction
2502
+  (0.1ms) begin transaction
2503
+ ----------------------------------------------------------------------------------
2504
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2505
+ ----------------------------------------------------------------------------------
2506
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.860730','2016-05-03 16:43:24.860730','chartreuse')
2507
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2508
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2509
+  (0.4ms) rollback transaction
2510
+  (0.0ms) begin transaction
2511
+ -------------------------------------------
2512
+ BulkInsertWorkerTest: test_default_set_size
2513
+ -------------------------------------------
2514
+  (0.0ms) rollback transaction
2515
+  (0.1ms) begin transaction
2516
+ ----------------------------------------------------------------------------
2517
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2518
+ ----------------------------------------------------------------------------
2519
+  (0.0ms) rollback transaction
2520
+  (0.1ms) begin transaction
2521
+ ----------------------------------------------------------------
2522
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2523
+ ----------------------------------------------------------------
2524
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:43:24.866462','2016-05-03 16:43:24.866462',NULL)
2525
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2526
+  (0.6ms) rollback transaction
2527
+  (0.1ms) begin transaction
2528
+ ---------------------------------------------------------------------
2529
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2530
+ ---------------------------------------------------------------------
2531
+  (0.0ms) rollback transaction
2532
+  (0.0ms) begin transaction
2533
+ ------------------------------------------------------
2534
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
2535
+ ------------------------------------------------------
2536
+  (0.1ms) rollback transaction
2537
+  (0.1ms) begin transaction
2538
+ ---------------------------------------------------------
2539
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2540
+ ---------------------------------------------------------
2541
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.872340','2016-05-03 16:43:24.872340','chartreuse')
2542
+  (0.4ms) rollback transaction
2543
+  (0.1ms) begin transaction
2544
+ ----------------------------------------------------------------
2545
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2546
+ ----------------------------------------------------------------
2547
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:43:24.874056','2016-05-03 16:43:24.874056','chartreuse')
2548
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2549
+  (0.4ms) rollback transaction
2550
+  (0.1ms) begin transaction
2551
+ ---------------------------------------------------------------------
2552
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2553
+ ---------------------------------------------------------------------
2554
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2555
+  (0.0ms) SAVEPOINT active_record_1
2556
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:43:24.879683','2016-05-03 16:43:24.879683','chartreuse')
2557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2558
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2559
+  (0.4ms) rollback transaction
2560
+  (0.1ms) begin transaction
2561
+ -------------------------------------------------------------------
2562
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2563
+ -------------------------------------------------------------------
2564
+  (0.1ms) rollback transaction
2565
+  (0.1ms) begin transaction
2566
+ -----------------------------------------------------------------------------
2567
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2568
+ -----------------------------------------------------------------------------
2569
+  (0.1ms) SELECT COUNT(*) FROM "testings"
2570
+  (0.0ms) SAVEPOINT active_record_1
2571
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:43:24.883856','chartreuse'),('Hey',20,'f','2016-05-03 16:43:24.883856','2016-05-03 16:43:24.883856','chartreuse')
2572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2573
+  (0.0ms) SELECT COUNT(*) FROM "testings"
2574
+  (0.4ms) rollback transaction
2575
+  (0.1ms) begin transaction
2576
+ ---------------------------------------------------------------
2577
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2578
+ ---------------------------------------------------------------
2579
+  (0.0ms) SAVEPOINT active_record_1
2580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2581
+  (0.0ms) rollback transaction
2582
+  (0.0ms) begin transaction
2583
+ ------------------------------------------------------------------------------
2584
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2585
+ ------------------------------------------------------------------------------
2586
+  (0.0ms) 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.1.1
4
+ version: 1.2.0
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-03-20 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 4.1.0
47
+ version: 4.2.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 4.1.0
54
+ version: 4.2.0
55
55
  description: Faster inserts! Insert N records in a single statement.
56
56
  email:
57
57
  - jamis@jamisbuck.org
@@ -180,4 +180,3 @@ test_files:
180
180
  - test/dummy/Rakefile
181
181
  - test/dummy/README.rdoc
182
182
  - test/test_helper.rb
183
- has_rdoc: