dbmlite3 1.0.a1 → 1.0.a2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 546ca0010f91757ca1346cd87ca9f2846318e65123668363239b61e8f1f5bbdd
4
- data.tar.gz: 5500f44eec01f68da64ed8e8d8ec73a1325ffafeab274a2ae00604a68e16ae61
3
+ metadata.gz: 4ddbc3278920ee6c02257bd8474f8f2951d91e9b4f5177eca10b8ce4b5985c5b
4
+ data.tar.gz: 29ad35623686c94edf33e4dfe8dc7b4086119da4d66562dcb50fd73a1ccc1276
5
5
  SHA512:
6
- metadata.gz: 45e67ef18cff8f3f17610e888a7153bb83d83438334c8ce0d204fdda7c599926e5ec210e09cb67bf909dbfa829fb17046b46a540e5373960b049bccb77526cf1
7
- data.tar.gz: 7c113a41818d9bdea1aec2b8e3d5fe1f54c4c134e8fa777a6e19a6c0f8546c326f6ef901caddc4b65985df1b50a89d809db6b32196eb157034e619fd9cebade5
6
+ metadata.gz: 4ad0e0651a960c4a06795c81e036c7b933d4ab1d1d7e5fa982bf441fef07b6a8ad606183a4f84961647f77b6c7a15ee1300de7ed726c62209c46e4d0863a0b3e
7
+ data.tar.gz: 71855d036e0f5fe458568e7e14125adfbe992a86c231b79be1750ef8fabc4e7dda297b1eaedbba1fd24a4ddc1e83caf104fa59cc36e70315339fff0e018d9f21
data/DBMLite3.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'dbmlite3'
6
- s.version = '1.0.a1'
6
+ s.version = '1.0.a2'
7
7
  s.date = '2022-02-21'
8
8
  s.summary = "A DBM-style key-value store using SQLite3"
9
9
  s.description = <<-EOF
data/doc/Lite3/DBM.html CHANGED
@@ -940,8 +940,6 @@ and will result in a Lite3::Error exception.</p>
940
940
  <pre class="lines">
941
941
 
942
942
 
943
- 407
944
- 408
945
943
  409
946
944
  410
947
945
  411
@@ -960,10 +958,12 @@ and will result in a Lite3::Error exception.</p>
960
958
  424
961
959
  425
962
960
  426
963
- 427</pre>
961
+ 427
962
+ 428
963
+ 429</pre>
964
964
  </td>
965
965
  <td>
966
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 407</span>
966
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 409</span>
967
967
 
968
968
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span> <span class='id identifier rubyid_tablename'>tablename</span><span class='comma'>,</span> <span class='id identifier rubyid_serializer'>serializer</span> <span class='op'>=</span> <span class='symbol'>:yaml</span><span class='rparen'>)</span>
969
969
  <span class='ivar'>@filename</span> <span class='op'>=</span> <span class='id identifier rubyid_filename'>filename</span>
@@ -1025,8 +1025,6 @@ This is analagous to <code>File.open</code>.</p>
1025
1025
  <pre class="lines">
1026
1026
 
1027
1027
 
1028
- 433
1029
- 434
1030
1028
  435
1031
1029
  436
1032
1030
  437
@@ -1034,10 +1032,12 @@ This is analagous to <code>File.open</code>.</p>
1034
1032
  439
1035
1033
  440
1036
1034
  441
1037
- 442</pre>
1035
+ 442
1036
+ 443
1037
+ 444</pre>
1038
1038
  </td>
1039
1039
  <td>
1040
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 433</span>
1040
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 435</span>
1041
1041
 
1042
1042
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span> <span class='id identifier rubyid_tablename'>tablename</span><span class='comma'>,</span> <span class='id identifier rubyid_serializer'>serializer</span> <span class='op'>=</span> <span class='symbol'>:yaml</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1043
1043
  <span class='id identifier rubyid_instance'>instance</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span> <span class='id identifier rubyid_tablename'>tablename</span><span class='comma'>,</span> <span class='id identifier rubyid_serializer'>serializer</span><span class='rparen'>)</span>
@@ -1086,12 +1086,12 @@ nil if it is not present.</p>
1086
1086
  <pre class="lines">
1087
1087
 
1088
1088
 
1089
- 613
1090
- 614
1091
- 615</pre>
1089
+ 615
1090
+ 616
1091
+ 617</pre>
1092
1092
  </td>
1093
1093
  <td>
1094
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 613</span>
1094
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 615</span>
1095
1095
 
1096
1096
  <span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
1097
1097
  <span class='kw'>return</span> <span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
@@ -1135,8 +1135,6 @@ serialization method you have chosen.</p>
1135
1135
  <pre class="lines">
1136
1136
 
1137
1137
 
1138
- 595
1139
- 596
1140
1138
  597
1141
1139
  598
1142
1140
  599
@@ -1148,10 +1146,12 @@ serialization method you have chosen.</p>
1148
1146
  605
1149
1147
  606
1150
1148
  607
1151
- 608</pre>
1149
+ 608
1150
+ 609
1151
+ 610</pre>
1152
1152
  </td>
1153
1153
  <td>
1154
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 595</span>
1154
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 597</span>
1155
1155
 
1156
1156
  <span class='kw'>def</span> <span class='op'>[]=</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
1157
1157
  <span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='id identifier rubyid_check_key'>check_key</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
@@ -1197,12 +1197,12 @@ serialization method you have chosen.</p>
1197
1197
  <pre class="lines">
1198
1198
 
1199
1199
 
1200
- 697
1201
- 698
1202
- 699</pre>
1200
+ 699
1201
+ 700
1202
+ 701</pre>
1203
1203
  </td>
1204
1204
  <td>
1205
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 697</span>
1205
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 699</span>
1206
1206
 
1207
1207
  <span class='kw'>def</span> <span class='id identifier rubyid_clear'>clear</span>
1208
1208
  <span class='id identifier rubyid_transaction'>transaction</span> <span class='lbrace'>{</span> <span class='ivar'>@handle</span><span class='period'>.</span><span class='id identifier rubyid_sql'>sql</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>delete from </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_actual_tbl'>actual_tbl</span><span class='embexpr_end'>}</span><span class='tstring_content'>;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
@@ -1242,13 +1242,13 @@ no other <code>DBM</code> objects using that file.</p>
1242
1242
  <pre class="lines">
1243
1243
 
1244
1244
 
1245
- 530
1246
- 531
1247
1245
  532
1248
- 533</pre>
1246
+ 533
1247
+ 534
1248
+ 535</pre>
1249
1249
  </td>
1250
1250
  <td>
1251
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 530</span>
1251
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 532</span>
1252
1252
 
1253
1253
  <span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
1254
1254
  <span class='ivar'>@handle</span><span class='period'>.</span><span class='id identifier rubyid_delref'>delref</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
@@ -1298,12 +1298,12 @@ closed <code>DBM</code>.</p>
1298
1298
  <pre class="lines">
1299
1299
 
1300
1300
 
1301
- 537
1302
- 538
1303
- 539</pre>
1301
+ 539
1302
+ 540
1303
+ 541</pre>
1304
1304
  </td>
1305
1305
  <td>
1306
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 537</span>
1306
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 539</span>
1307
1307
 
1308
1308
  <span class='kw'>def</span> <span class='id identifier rubyid_closed?'>closed?</span><span class='lparen'>(</span><span class='rparen'>)</span>
1309
1309
  <span class='kw'>return</span> <span class='ivar'>@handle</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>ClosedHandle</span>
@@ -1339,14 +1339,14 @@ not present, does nothing.</p>
1339
1339
  <pre class="lines">
1340
1340
 
1341
1341
 
1342
- 786
1343
- 787
1344
1342
  788
1345
1343
  789
1346
- 790</pre>
1344
+ 790
1345
+ 791
1346
+ 792</pre>
1347
1347
  </td>
1348
1348
  <td>
1349
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 786</span>
1349
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 788</span>
1350
1350
 
1351
1351
  <span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
1352
1352
  <span class='id identifier rubyid_transaction'>transaction</span> <span class='lbrace'>{</span>
@@ -1405,14 +1405,14 @@ each entry for which the block returns true.</p>
1405
1405
  <pre class="lines">
1406
1406
 
1407
1407
 
1408
- 796
1409
- 797
1410
1408
  798
1411
1409
  799
1412
- 800</pre>
1410
+ 800
1411
+ 801
1412
+ 802</pre>
1413
1413
  </td>
1414
1414
  <td>
1415
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 796</span>
1415
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 798</span>
1416
1416
 
1417
1417
  <span class='kw'>def</span> <span class='id identifier rubyid_delete_if'>delete_if</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1418
1418
  <span class='id identifier rubyid_transaction'>transaction</span> <span class='lbrace'>{</span>
@@ -1477,14 +1477,14 @@ own transaction.</p>
1477
1477
  <pre class="lines">
1478
1478
 
1479
1479
 
1480
- 711
1481
- 712
1482
1480
  713
1483
1481
  714
1484
- 715</pre>
1482
+ 715
1483
+ 716
1484
+ 717</pre>
1485
1485
  </td>
1486
1486
  <td>
1487
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 711</span>
1487
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 713</span>
1488
1488
 
1489
1489
  <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1490
1490
  <span class='kw'>return</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_enum'>to_enum</span><span class='lparen'>(</span><span class='symbol'>:nt_each</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block'>block</span>
@@ -1539,13 +1539,13 @@ own transaction.</p>
1539
1539
  <pre class="lines">
1540
1540
 
1541
1541
 
1542
- 761
1543
- 762
1544
1542
  763
1545
- 764</pre>
1543
+ 764
1544
+ 765
1545
+ 766</pre>
1546
1546
  </td>
1547
1547
  <td>
1548
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 761</span>
1548
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 763</span>
1549
1549
 
1550
1550
  <span class='kw'>def</span> <span class='id identifier rubyid_each_key'>each_key</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1551
1551
  <span class='kw'>return</span> <span class='const'>Enumerator</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_y'>y</span><span class='op'>|</span> <span class='id identifier rubyid_nt_each'>nt_each</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_y'>y</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_k'>k</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block'>block</span>
@@ -1599,13 +1599,13 @@ own transaction.</p>
1599
1599
  <pre class="lines">
1600
1600
 
1601
1601
 
1602
- 770
1603
- 771
1604
1602
  772
1605
- 773</pre>
1603
+ 773
1604
+ 774
1605
+ 775</pre>
1606
1606
  </td>
1607
1607
  <td>
1608
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 770</span>
1608
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 772</span>
1609
1609
 
1610
1610
  <span class='kw'>def</span> <span class='id identifier rubyid_each_value'>each_value</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1611
1611
  <span class='kw'>return</span> <span class='const'>Enumerator</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_y'>y</span><span class='op'>|</span> <span class='id identifier rubyid_nt_each'>nt_each</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_y'>y</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_v'>v</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block'>block</span>
@@ -1654,12 +1654,12 @@ own transaction.</p>
1654
1654
  <pre class="lines">
1655
1655
 
1656
1656
 
1657
- 813
1658
- 814
1659
- 815</pre>
1657
+ 815
1658
+ 816
1659
+ 817</pre>
1660
1660
  </td>
1661
1661
  <td>
1662
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 813</span>
1662
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 815</span>
1663
1663
 
1664
1664
  <span class='kw'>def</span> <span class='id identifier rubyid_empty?'>empty?</span>
1665
1665
  <span class='kw'>return</span> <span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>0</span>
@@ -1735,8 +1735,6 @@ exception.</p>
1735
1735
  <pre class="lines">
1736
1736
 
1737
1737
 
1738
- 631
1739
- 632
1740
1738
  633
1741
1739
  634
1742
1740
  635
@@ -1761,10 +1759,12 @@ exception.</p>
1761
1759
  654
1762
1760
  655
1763
1761
  656
1764
- 657</pre>
1762
+ 657
1763
+ 658
1764
+ 659</pre>
1765
1765
  </td>
1766
1766
  <td>
1767
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 631</span>
1767
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 633</span>
1768
1768
 
1769
1769
  <span class='kw'>def</span> <span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_default_block'>default_block</span><span class='rparen'>)</span>
1770
1770
 
@@ -1840,12 +1840,12 @@ to help with unit tests.</p>
1840
1840
  <pre class="lines">
1841
1841
 
1842
1842
 
1843
- 546
1844
- 547
1845
- 548</pre>
1843
+ 548
1844
+ 549
1845
+ 550</pre>
1846
1846
  </td>
1847
1847
  <td>
1848
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 546</span>
1848
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 548</span>
1849
1849
 
1850
1850
  <span class='kw'>def</span> <span class='id identifier rubyid_handle_closed?'>handle_closed?</span>
1851
1851
  <span class='kw'>return</span> <span class='ivar'>@handle</span><span class='period'>.</span><span class='id identifier rubyid_closed?'>closed?</span>
@@ -1898,14 +1898,14 @@ to help with unit tests.</p>
1898
1898
  <pre class="lines">
1899
1899
 
1900
1900
 
1901
- 687
1902
- 688
1903
1901
  689
1904
1902
  690
1905
- 691</pre>
1903
+ 691
1904
+ 692
1905
+ 693</pre>
1906
1906
  </td>
1907
1907
  <td>
1908
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 687</span>
1908
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 689</span>
1909
1909
 
1910
1910
  <span class='kw'>def</span> <span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
1911
1911
  <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>String</span> <span class='op'>||</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='const'>Symbol</span>
@@ -1961,13 +1961,13 @@ to help with unit tests.</p>
1961
1961
  <pre class="lines">
1962
1962
 
1963
1963
 
1964
- 856
1965
- 857
1966
1964
  858
1967
- 859</pre>
1965
+ 859
1966
+ 860
1967
+ 861</pre>
1968
1968
  </td>
1969
1969
  <td>
1970
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 856</span>
1970
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 858</span>
1971
1971
 
1972
1972
  <span class='kw'>def</span> <span class='id identifier rubyid_has_value?'>has_value?</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
1973
1973
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span> <span class='op'>==</span> <span class='id identifier rubyid_val'>val</span><span class='rbrace'>}</span>
@@ -2008,14 +2008,14 @@ program.</p>
2008
2008
  <pre class="lines">
2009
2009
 
2010
2010
 
2011
- 868
2012
- 869
2013
2011
  870
2014
2012
  871
2015
- 872</pre>
2013
+ 872
2014
+ 873
2015
+ 874</pre>
2016
2016
  </td>
2017
2017
  <td>
2018
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 868</span>
2018
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 870</span>
2019
2019
 
2020
2020
  <span class='kw'>def</span> <span class='id identifier rubyid_invert'>invert</span>
2021
2021
  <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
@@ -2055,14 +2055,14 @@ that the result could exceed available memory.</p>
2055
2055
  <pre class="lines">
2056
2056
 
2057
2057
 
2058
- 669
2059
- 670
2060
2058
  671
2061
2059
  672
2062
- 673</pre>
2060
+ 673
2061
+ 674
2062
+ 675</pre>
2063
2063
  </td>
2064
2064
  <td>
2065
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 669</span>
2065
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 671</span>
2066
2066
 
2067
2067
  <span class='kw'>def</span> <span class='id identifier rubyid_keys'>keys</span>
2068
2068
  <span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -2101,8 +2101,6 @@ as determined by SQLite3.</p>
2101
2101
  <pre class="lines">
2102
2102
 
2103
2103
 
2104
- 877
2105
- 878
2106
2104
  879
2107
2105
  880
2108
2106
  881
@@ -2110,10 +2108,12 @@ as determined by SQLite3.</p>
2110
2108
  883
2111
2109
  884
2112
2110
  885
2113
- 886</pre>
2111
+ 886
2112
+ 887
2113
+ 888</pre>
2114
2114
  </td>
2115
2115
  <td>
2116
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 877</span>
2116
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 879</span>
2117
2117
 
2118
2118
  <span class='kw'>def</span> <span class='id identifier rubyid_shift'>shift</span>
2119
2119
  <span class='id identifier rubyid_transaction'>transaction</span> <span class='lbrace'>{</span>
@@ -2159,15 +2159,15 @@ as determined by SQLite3.</p>
2159
2159
  <pre class="lines">
2160
2160
 
2161
2161
 
2162
- 804
2163
- 805
2164
2162
  806
2165
2163
  807
2166
2164
  808
2167
- 809</pre>
2165
+ 809
2166
+ 810
2167
+ 811</pre>
2168
2168
  </td>
2169
2169
  <td>
2170
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 804</span>
2170
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 806</span>
2171
2171
 
2172
2172
  <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
2173
2173
  <span class='ivar'>@handle</span><span class='period'>.</span><span class='id identifier rubyid_sql'>sql</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>select count(*) from </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_actual_tbl'>actual_tbl</span><span class='embexpr_end'>}</span><span class='tstring_content'>;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_row'>row</span><span class='op'>|</span>
@@ -2210,14 +2210,14 @@ program.</p>
2210
2210
  <pre class="lines">
2211
2211
 
2212
2212
 
2213
- 841
2214
- 842
2215
2213
  843
2216
2214
  844
2217
- 845</pre>
2215
+ 845
2216
+ 846
2217
+ 847</pre>
2218
2218
  </td>
2219
2219
  <td>
2220
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 841</span>
2220
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 843</span>
2221
2221
 
2222
2222
  <span class='kw'>def</span> <span class='id identifier rubyid_to_a'>to_a</span>
2223
2223
  <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -2258,14 +2258,14 @@ program.</p>
2258
2258
  <pre class="lines">
2259
2259
 
2260
2260
 
2261
- 828
2262
- 829
2263
2261
  830
2264
2262
  831
2265
- 832</pre>
2263
+ 832
2264
+ 833
2265
+ 834</pre>
2266
2266
  </td>
2267
2267
  <td>
2268
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 828</span>
2268
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 830</span>
2269
2269
 
2270
2270
  <span class='kw'>def</span> <span class='id identifier rubyid_to_hash'>to_hash</span>
2271
2271
  <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
@@ -2296,14 +2296,14 @@ program.</p>
2296
2296
  <pre class="lines">
2297
2297
 
2298
2298
 
2299
- 517
2300
- 518
2301
2299
  519
2302
2300
  520
2303
- 521</pre>
2301
+ 521
2302
+ 522
2303
+ 523</pre>
2304
2304
  </td>
2305
2305
  <td>
2306
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 517</span>
2306
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 519</span>
2307
2307
 
2308
2308
  <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
2309
2309
  <span class='id identifier rubyid_openstr'>openstr</span> <span class='op'>=</span> <span class='id identifier rubyid_closed?'>closed?</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CLOSED</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>OPEN</span><span class='tstring_end'>&#39;</span></span>
@@ -2371,12 +2371,12 @@ argument.</p>
2371
2371
  <pre class="lines">
2372
2372
 
2373
2373
 
2374
- 574
2375
- 575
2376
- 576</pre>
2374
+ 576
2375
+ 577
2376
+ 578</pre>
2377
2377
  </td>
2378
2378
  <td>
2379
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 574</span>
2379
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 576</span>
2380
2380
 
2381
2381
  <span class='kw'>def</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
2382
2382
  <span class='kw'>return</span> <span class='ivar'>@handle</span><span class='period'>.</span><span class='id identifier rubyid_transaction'>transaction</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
@@ -2424,12 +2424,12 @@ argument.</p>
2424
2424
  <pre class="lines">
2425
2425
 
2426
2426
 
2427
- 579
2428
- 580
2429
- 581</pre>
2427
+ 581
2428
+ 582
2429
+ 583</pre>
2430
2430
  </td>
2431
2431
  <td>
2432
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 579</span>
2432
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 581</span>
2433
2433
 
2434
2434
  <span class='kw'>def</span> <span class='id identifier rubyid_transaction_active?'>transaction_active?</span>
2435
2435
  <span class='kw'>return</span> <span class='ivar'>@handle</span><span class='period'>.</span><span class='id identifier rubyid_transaction_active?'>transaction_active?</span>
@@ -2466,14 +2466,14 @@ including <code>Hash</code> and <code>DBM</code> objects.</p>
2466
2466
  <pre class="lines">
2467
2467
 
2468
2468
 
2469
- 778
2470
- 779
2471
2469
  780
2472
2470
  781
2473
- 782</pre>
2471
+ 782
2472
+ 783
2473
+ 784</pre>
2474
2474
  </td>
2475
2475
  <td>
2476
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 778</span>
2476
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 780</span>
2477
2477
 
2478
2478
  <span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
2479
2479
  <span class='id identifier rubyid_transaction'>transaction</span> <span class='lbrace'>{</span>
@@ -2513,14 +2513,14 @@ that the result could exceed available memory.</p>
2513
2513
  <pre class="lines">
2514
2514
 
2515
2515
 
2516
- 679
2517
- 680
2518
2516
  681
2519
2517
  682
2520
- 683</pre>
2518
+ 683
2519
+ 684
2520
+ 685</pre>
2521
2521
  </td>
2522
2522
  <td>
2523
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 679</span>
2523
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 681</span>
2524
2524
 
2525
2525
  <span class='kw'>def</span> <span class='id identifier rubyid_values'>values</span>
2526
2526
  <span class='id identifier rubyid_values'>values</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -2558,12 +2558,12 @@ given keys.</p>
2558
2558
  <pre class="lines">
2559
2559
 
2560
2560
 
2561
- 661
2562
- 662
2563
- 663</pre>
2561
+ 663
2562
+ 664
2563
+ 665</pre>
2564
2564
  </td>
2565
2565
  <td>
2566
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 661</span>
2566
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 663</span>
2567
2567
 
2568
2568
  <span class='kw'>def</span> <span class='id identifier rubyid_values_at'>values_at</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span>
2569
2569
  <span class='kw'>return</span> <span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='rbracket'>]</span><span class='rbrace'>}</span>
@@ -2578,7 +2578,7 @@ given keys.</p>
2578
2578
  </div>
2579
2579
 
2580
2580
  <div id="footer">
2581
- Generated on Fri Feb 25 14:42:43 2022 by
2581
+ Generated on Fri Feb 25 20:44:51 2022 by
2582
2582
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2583
2583
  0.9.25 (ruby-2.7.0).
2584
2584
  </div>
data/doc/Lite3/Error.html CHANGED
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Feb 25 14:42:43 2022 by
128
+ Generated on Fri Feb 25 20:44:51 2022 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.25 (ruby-2.7.0).
131
131
  </div>
data/doc/Lite3/SQL.html CHANGED
@@ -266,10 +266,10 @@ progress. (E.g. do <strong>not</strong> call this from the block of
266
266
  <pre class="lines">
267
267
 
268
268
 
269
- 307</pre>
269
+ 309</pre>
270
270
  </td>
271
271
  <td>
272
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 307</span>
272
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 309</span>
273
273
 
274
274
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_close_all'>close_all</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>return</span> <span class='const'>HandlePool</span><span class='period'>.</span><span class='id identifier rubyid_close_all'>close_all</span> <span class='kw'>end</span></pre>
275
275
  </td>
@@ -310,10 +310,10 @@ probably not useful to you; it&#39;s there for the unit tests.</p>
310
310
  <pre class="lines">
311
311
 
312
312
 
313
- 298</pre>
313
+ 300</pre>
314
314
  </td>
315
315
  <td>
316
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 298</span>
316
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 300</span>
317
317
 
318
318
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_gc'>gc</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>return</span> <span class='const'>HandlePool</span><span class='period'>.</span><span class='id identifier rubyid_gc'>gc</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
319
319
  </td>
@@ -360,12 +360,12 @@ thread safe. Just a wrapper around <code>SQLite3.threadsafe?</code></p>
360
360
  <pre class="lines">
361
361
 
362
362
 
363
- 285
364
- 286
365
- 287</pre>
363
+ 287
364
+ 288
365
+ 289</pre>
366
366
  </td>
367
367
  <td>
368
- <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 285</span>
368
+ <pre class="code"><span class="info file"># File 'lib/dbmlite3.rb', line 287</span>
369
369
 
370
370
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_threadsafe?'>threadsafe?</span>
371
371
  <span class='kw'>return</span> <span class='const'>SQLite3</span><span class='period'>.</span><span class='id identifier rubyid_threadsafe?'>threadsafe?</span>
@@ -380,7 +380,7 @@ thread safe. Just a wrapper around <code>SQLite3.threadsafe?</code></p>
380
380
  </div>
381
381
 
382
382
  <div id="footer">
383
- Generated on Fri Feb 25 14:42:43 2022 by
383
+ Generated on Fri Feb 25 20:44:51 2022 by
384
384
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
385
385
  0.9.25 (ruby-2.7.0).
386
386
  </div>
data/doc/Lite3.html CHANGED
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Fri Feb 25 14:42:43 2022 by
110
+ Generated on Fri Feb 25 20:44:51 2022 by
111
111
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.25 (ruby-2.7.0).
113
113
  </div>
data/doc/_index.html CHANGED
@@ -142,7 +142,7 @@
142
142
  </div>
143
143
 
144
144
  <div id="footer">
145
- Generated on Fri Feb 25 14:42:43 2022 by
145
+ Generated on Fri Feb 25 20:44:51 2022 by
146
146
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
147
147
  0.9.25 (ruby-2.7.0).
148
148
  </div>
data/doc/file.README.html CHANGED
@@ -193,7 +193,7 @@ make sense of them.</p>
193
193
  </div></div>
194
194
 
195
195
  <div id="footer">
196
- Generated on Fri Feb 25 14:42:43 2022 by
196
+ Generated on Fri Feb 25 20:44:51 2022 by
197
197
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
198
  0.9.25 (ruby-2.7.0).
199
199
  </div>
data/doc/index.html CHANGED
@@ -193,7 +193,7 @@ make sense of them.</p>
193
193
  </div></div>
194
194
 
195
195
  <div id="footer">
196
- Generated on Fri Feb 25 14:42:43 2022 by
196
+ Generated on Fri Feb 25 20:44:51 2022 by
197
197
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
198
  0.9.25 (ruby-2.7.0).
199
199
  </div>
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Fri Feb 25 14:42:43 2022 by
103
+ Generated on Fri Feb 25 20:44:51 2022 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.25 (ruby-2.7.0).
106
106
  </div>
data/lib/dbmlite3.rb CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ gem "sqlite3", "~> 1.4"
3
+
2
4
  require 'sqlite3'
3
5
  require 'yaml'
4
6
  require 'set'
@@ -1,8 +1,6 @@
1
1
 
2
2
  # Tests for *some* of util.rb; this is nowhere near complete.
3
3
 
4
- gem "sqlite3", "~> 1.4"
5
-
6
4
  require_relative '../lib/dbmlite3.rb'
7
5
  require 'fileutils'
8
6
  require 'set'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbmlite3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.a1
4
+ version: 1.0.a2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Reuter