This file is indexed.

/usr/share/doc/python-bsddb3/html/db.html is in python-bsddb3-doc 6.0.1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>DB &mdash; PyBSDDB 6.0.0 documentation</title>
    
    <link rel="stylesheet" href="static/default.css" type="text/css" />
    <link rel="stylesheet" href="static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '6.0.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  false
      };
    </script>
    <script type="text/javascript" src="static/jquery.js"></script>
    <script type="text/javascript" src="static/underscore.js"></script>
    <script type="text/javascript" src="static/doctools.js"></script>
    <link rel="top" title="PyBSDDB 6.0.0 documentation" href="index.html" />
    <link rel="next" title="DBCursor" href="dbcursor.html" />
    <link rel="prev" title="DBEnv" href="dbenv.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="dbcursor.html" title="DBCursor"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="dbenv.html" title="DBEnv"
             accesskey="P">previous</a> |</li>
        <li><a href="contents.html">PyBSDDB 6.0.0 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="db">
<h1>DB<a class="headerlink" href="#db" title="Permalink to this headline"></a></h1>
<p>Read <a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/programmer_reference/index.html">Oracle documentation</a>
for better understanding.</p>
<p><a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/db.html">More info...</a></p>
<div class="section" id="db-methods">
<h2>DB Methods<a class="headerlink" href="#db-methods" title="Permalink to this headline"></a></h2>
<dl class="function">
<dt id="DB">
<tt class="descname">DB</tt><big>(</big><em>dbEnv=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#DB" title="Permalink to this definition"></a></dt>
<dd><p>Constructor.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbcreate.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="append">
<tt class="descname">append</tt><big>(</big><em>data</em>, <em>txn=None</em><big>)</big><a class="headerlink" href="#append" title="Permalink to this definition"></a></dt>
<dd><p>A convenient version of put() that can be used for Recno or Queue
databases. The DB_APPEND flag is automatically used, and the record
number is returned.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbput.html#dbput_DB_APPEND">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="associate">
<tt class="descname">associate</tt><big>(</big><em>secondaryDB</em>, <em>callback</em>, <em>flags=0</em>, <em>txn=None</em><big>)</big><a class="headerlink" href="#associate" title="Permalink to this definition"></a></dt>
<dd><p>Used to associate secondaryDB to act as a secondary index for this
(primary) database. The callback parameter should be a reference to a
Python callable object that will construct and return the secondary
key or DB_DONOTINDEX if the item should not be indexed. The
parameters the callback will receive are the primaryKey and
primaryData values.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbassociate.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="close">
<tt class="descname">close</tt><big>(</big><em>flags=0</em><big>)</big><a class="headerlink" href="#close" title="Permalink to this definition"></a></dt>
<dd><p>Flushes cached data and closes the database.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbclose.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt>
<tt class="descname">compact(start=None, stop=None, flags=0,</tt></dt>
<dt>
<tt class="descname">compact_fillpercent=0, compact_pages=0, compact_timeout=0)</tt></dt>
<dd><p>Compacts Btree and Recno access method databases, and optionally
returns unused Btree, Hash or Recno database pages to the underlying
filesystem.</p>
<p>The method returns the number of pages returned to the filesystem.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbcompact.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="consume">
<tt class="descname">consume</tt><big>(</big><em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#consume" title="Permalink to this definition"></a></dt>
<dd><p>For a database with the Queue access method, returns the record
number and data from the first available record and deletes it from
the queue.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget.html#dbget_DB_CONSUME">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="consume_wait">
<tt class="descname">consume_wait</tt><big>(</big><em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#consume_wait" title="Permalink to this definition"></a></dt>
<dd><p>For a database with the Queue access method, returns the record
number and data from the first available record and deletes it from
the queue. If the Queue database is empty, the thread of control
will wait until there is data in the queue before returning.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget.html#dbget_DB_CONSUME_WAIT">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="cursor">
<tt class="descname">cursor</tt><big>(</big><em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#cursor" title="Permalink to this definition"></a></dt>
<dd><p>Create a cursor on the DB and returns a DBCursor object. If a
transaction is passed then the cursor can only be used within that
transaction and you <em>must</em> be sure to close the cursor before
commiting the transaction.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbcursor.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="delete">
<tt class="descname">delete</tt><big>(</big><em>key</em>, <em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#delete" title="Permalink to this definition"></a></dt>
<dd><p>Removes a key/data pair from the database.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbdel.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="exists">
<tt class="descname">exists</tt><big>(</big><em>key</em>, <em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#exists" title="Permalink to this definition"></a></dt>
<dd><p>Test if a key exists in the database. Returns True or False.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbexists.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="fd">
<tt class="descname">fd</tt><big>(</big><big>)</big><a class="headerlink" href="#fd" title="Permalink to this definition"></a></dt>
<dd><p>Returns a file descriptor for the database.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbfd.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get">
<tt class="descname">get</tt><big>(</big><em>key</em>, <em>default=None</em>, <em>txn=None</em>, <em>flags=0</em>, <em>dlen=-1</em>, <em>doff=-1</em><big>)</big><a class="headerlink" href="#get" title="Permalink to this definition"></a></dt>
<dd><p>Returns the data object associated with key. If key is an integer
then the DB_SET_RECNO flag is automatically set for BTree databases
and the actual key and the data value are returned as a tuple. If
default is given then it is returned if the key is not found in the
database. Partial records can be read using dlen and doff, however be
sure to not read beyond the end of the actual data or you may get
garbage.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="pget">
<tt class="descname">pget</tt><big>(</big><em>key</em>, <em>default=None</em>, <em>txn=None</em>, <em>flags=0</em>, <em>dlen=-1</em>, <em>doff=-1</em><big>)</big><a class="headerlink" href="#pget" title="Permalink to this definition"></a></dt>
<dd><p>This method is available only on secondary databases. It will return
the primary key, given the secondary one, and associated data.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_transactional">
<tt class="descname">get_transactional</tt><big>(</big><big>)</big><a class="headerlink" href="#get_transactional" title="Permalink to this definition"></a></dt>
<dd><p>Returns True if the database is transactional. False if not.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_transactional.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_priority">
<tt class="descname">get_priority</tt><big>(</big><big>)</big><a class="headerlink" href="#get_priority" title="Permalink to this definition"></a></dt>
<dd><p>Returns the cache priority for pages referenced by the DB handle.
This priority value is set using the DB-&gt;set_priority() method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_priority.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_priority">
<tt class="descname">set_priority</tt><big>(</big><em>priority</em><big>)</big><a class="headerlink" href="#set_priority" title="Permalink to this definition"></a></dt>
<dd><p>Set the cache priority for pages referenced by the DB handle.</p>
<p>The priority of a page biases the replacement algorithm to be more
or less likely to discard a page when space is needed in the buffer
pool. The bias is temporary, and pages will eventually be discarded
if they are not referenced again. The DB-&gt;set_priority() method is
only advisory, and does not guarantee pages will be treated in a
specific way.</p>
<p>The value provided must be symbolic. Check the Oracle documentation.</p>
<p><a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_priority.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_dbname">
<tt class="descname">get_dbname</tt><big>(</big><big>)</big><a class="headerlink" href="#get_dbname" title="Permalink to this definition"></a></dt>
<dd><p>Returns a tuple with the filename and the database name. If
there is no database name, the value returned will be None.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_dbname.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_open_flags">
<tt class="descname">get_open_flags</tt><big>(</big><big>)</big><a class="headerlink" href="#get_open_flags" title="Permalink to this definition"></a></dt>
<dd><p>Returns the current open method flags. That is, this method returns
the flags that were specified when DB-&gt;open() was called.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_open_flags.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_private">
<tt class="descname">set_private</tt><big>(</big><em>object</em><big>)</big><a class="headerlink" href="#set_private" title="Permalink to this definition"></a></dt>
<dd><p>Link an object to the DB object. This allows to pass around an
arbitrary object. For instance, for callback context.</p>
</dd></dl>

<dl class="function">
<dt id="get_private">
<tt class="descname">get_private</tt><big>(</big><big>)</big><a class="headerlink" href="#get_private" title="Permalink to this definition"></a></dt>
<dd><p>Give the object linked to the DB.</p>
</dd></dl>

<dl class="function">
<dt id="get_both">
<tt class="descname">get_both</tt><big>(</big><em>key</em>, <em>data</em>, <em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#get_both" title="Permalink to this definition"></a></dt>
<dd><p>A convenient version of get() that automatically sets the DB_GET_BOTH
flag, and which will be successful only if both the key and data
value are found in the database. (Can be used to verify the presence
of a record in the database when duplicate keys are allowed.)
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget.html#get_DB_GET_BOTH">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_byteswapped">
<tt class="descname">get_byteswapped</tt><big>(</big><big>)</big><a class="headerlink" href="#get_byteswapped" title="Permalink to this definition"></a></dt>
<dd><p>May be used to determine if the database was created on a machine
with the same endianess as the current machine.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_byteswapped.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_size">
<tt class="descname">get_size</tt><big>(</big><em>key</em>, <em>txn=None</em><big>)</big><a class="headerlink" href="#get_size" title="Permalink to this definition"></a></dt>
<dd><p>Return the size of the data object associated with key.</p>
</dd></dl>

<dl class="function">
<dt id="get_type">
<tt class="descname">get_type</tt><big>(</big><big>)</big><a class="headerlink" href="#get_type" title="Permalink to this definition"></a></dt>
<dd><p>Return the database&#8217;s access method type.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_type.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="join">
<tt class="descname">join</tt><big>(</big><em>cursorList</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#join" title="Permalink to this definition"></a></dt>
<dd><p>Create and return a specialized cursor for use in performing joins on
secondary indices.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbjoin.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="key_range">
<tt class="descname">key_range</tt><big>(</big><em>key</em>, <em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#key_range" title="Permalink to this definition"></a></dt>
<dd><p>Returns an estimate of the proportion of keys that are less than,
equal to and greater than the specified key.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbkey_range.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="open">
<tt class="descname">open</tt><big>(</big><em>filename</em>, <em>dbname=None</em>, <em>dbtype=DB_UNKNOWN</em>, <em>flags=0</em>, <em>mode=0660</em>, <em>txn=None</em><big>)</big><a class="headerlink" href="#open" title="Permalink to this definition"></a></dt>
<dd><p>Opens the database named dbname in the file named filename. The
dbname argument is optional and allows applications to have multiple
logical databases in a single physical file. It is an error to
attempt to open a second database in a file that was not initially
created using a database name. In-memory databases never intended to
be shared or preserved on disk may be created by setting both the
filename and dbname arguments to None.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbopen.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="put">
<tt class="descname">put</tt><big>(</big><em>key</em>, <em>data</em>, <em>txn=None</em>, <em>flags=0</em>, <em>dlen=-1</em>, <em>doff=-1</em><big>)</big><a class="headerlink" href="#put" title="Permalink to this definition"></a></dt>
<dd><p>Stores the key/data pair in the database. If the DB_APPEND flag is
used and the database is using the Recno or Queue access method then
the record number allocated to the data is returned. Partial data
objects can be written using dlen and doff.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbput.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="remove">
<tt class="descname">remove</tt><big>(</big><em>filename</em>, <em>dbname=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#remove" title="Permalink to this definition"></a></dt>
<dd><p>Remove a database.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbremove.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="rename">
<tt class="descname">rename</tt><big>(</big><em>filename</em>, <em>dbname</em>, <em>newname</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#rename" title="Permalink to this definition"></a></dt>
<dd><p>Rename a database.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbrename.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_encrypt">
<tt class="descname">set_encrypt</tt><big>(</big><em>passwd</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#set_encrypt" title="Permalink to this definition"></a></dt>
<dd><p>Set the password used by the Berkeley DB library to perform
encryption and decryption. Because databases opened within Berkeley
DB environments use the password specified to the environment, it is
an error to attempt to set a password in a database created within an
environment.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_encrypt.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_encrypt_flags">
<tt class="descname">get_encrypt_flags</tt><big>(</big><big>)</big><a class="headerlink" href="#get_encrypt_flags" title="Permalink to this definition"></a></dt>
<dd><p>Returns the encryption flags.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_encrypt_flags.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_bt_compare">
<tt class="descname">set_bt_compare</tt><big>(</big><em>compareFunc</em><big>)</big><a class="headerlink" href="#set_bt_compare" title="Permalink to this definition"></a></dt>
<dd><p>Set the B-Tree database comparison function. This can only be called
once before the database has been opened. compareFunc takes two
arguments: (left key string, right key string) It must return a -1,
0, 1 integer similar to cmp. You can shoot your database in the
foot, beware!  Read the Berkeley DB docs for the full details of
how the comparison function MUST behave.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_bt_compare.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_bt_minkey">
<tt class="descname">get_bt_minkey</tt><big>(</big><big>)</big><a class="headerlink" href="#get_bt_minkey" title="Permalink to this definition"></a></dt>
<dd><p>Returns the minimum number of key/data pairs intended to be stored on
any single Btree leaf page. This value can be set using the
DB-&gt;set_bt_minkey() method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_bt_minkey.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_bt_minkey">
<tt class="descname">set_bt_minkey</tt><big>(</big><em>minKeys</em><big>)</big><a class="headerlink" href="#set_bt_minkey" title="Permalink to this definition"></a></dt>
<dd><p>Set the minimum number of keys that will be stored on any single
BTree page.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_bt_minkey.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_cachesize">
<tt class="descname">set_cachesize</tt><big>(</big><em>gbytes</em>, <em>bytes</em>, <em>ncache=0</em><big>)</big><a class="headerlink" href="#set_cachesize" title="Permalink to this definition"></a></dt>
<dd><p>Set the size of the database&#8217;s shared memory buffer pool.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_cachesize.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_cachesize">
<tt class="descname">get_cachesize</tt><big>(</big><big>)</big><a class="headerlink" href="#get_cachesize" title="Permalink to this definition"></a></dt>
<dd><p>Returns a tuple with the current size and composition of the cache.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_cachesize.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_dup_compare">
<tt class="descname">set_dup_compare</tt><big>(</big><em>compareFunc</em><big>)</big><a class="headerlink" href="#set_dup_compare" title="Permalink to this definition"></a></dt>
<dd><p>Set the duplicate data item comparison function. This can only be
called once before the database has been opened. compareFunc takes
two arguments: (left key string, right key string) It must return a
-1, 0, 1 integer similar to cmp. You can shoot your database in the
foot, beware!  Read the Berkeley DB docs for the full details of how
the comparison function MUST behave.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_dup_compare.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_get_returns_none">
<tt class="descname">set_get_returns_none</tt><big>(</big><em>flag</em><big>)</big><a class="headerlink" href="#set_get_returns_none" title="Permalink to this definition"></a></dt>
<dd><p>Controls what get and related methods do when a key is not found.</p>
<p>See the DBEnv set_get_returns_none documentation.</p>
<p>The previous setting is returned.</p>
</dd></dl>

<dl class="function">
<dt id="get_flags">
<tt class="descname">get_flags</tt><big>(</big><big>)</big><a class="headerlink" href="#get_flags" title="Permalink to this definition"></a></dt>
<dd><p>Returns the current database flags as set by the DB-&gt;set_flags()
method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_flags.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_flags">
<tt class="descname">set_flags</tt><big>(</big><em>flags</em><big>)</big><a class="headerlink" href="#set_flags" title="Permalink to this definition"></a></dt>
<dd><p>Set additional flags on the database before opening.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_flags.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_h_ffactor">
<tt class="descname">get_h_ffactor</tt><big>(</big><big>)</big><a class="headerlink" href="#get_h_ffactor" title="Permalink to this definition"></a></dt>
<dd><p>Returns the hash table density as set by the DB-&gt;set_h_ffactor()
method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_h_ffactor.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_h_ffactor">
<tt class="descname">set_h_ffactor</tt><big>(</big><em>ffactor</em><big>)</big><a class="headerlink" href="#set_h_ffactor" title="Permalink to this definition"></a></dt>
<dd><p>Set the desired density within the hash table.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_h_ffactor.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_h_nelem">
<tt class="descname">get_h_nelem</tt><big>(</big><big>)</big><a class="headerlink" href="#get_h_nelem" title="Permalink to this definition"></a></dt>
<dd><p>Returns the estimate of the final size of the hash table as set by the
DB-&gt;set_h_nelem() method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_h_nelem.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_h_nelem">
<tt class="descname">set_h_nelem</tt><big>(</big><em>nelem</em><big>)</big><a class="headerlink" href="#set_h_nelem" title="Permalink to this definition"></a></dt>
<dd><p>Set an estimate of the final size of the hash table.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_h_nelem.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_lorder">
<tt class="descname">get_lorder</tt><big>(</big><big>)</big><a class="headerlink" href="#get_lorder" title="Permalink to this definition"></a></dt>
<dd><p>Returns the database byte order; a byte order of 4,321 indicates a
big endian order, and a byte order of 1,234 indicates a little endian
order. This value is set using the DB-&gt;set_lorder() method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_lorder.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_lorder">
<tt class="descname">set_lorder</tt><big>(</big><em>lorder</em><big>)</big><a class="headerlink" href="#set_lorder" title="Permalink to this definition"></a></dt>
<dd><p>Set the byte order for integers in the stored database metadata.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_lorder.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_pagesize">
<tt class="descname">get_pagesize</tt><big>(</big><big>)</big><a class="headerlink" href="#get_pagesize" title="Permalink to this definition"></a></dt>
<dd><p>Returns the database&#8217;s current page size, as set by the
DB-&gt;set_pagesize() method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_pagesize.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_pagesize">
<tt class="descname">set_pagesize</tt><big>(</big><em>pagesize</em><big>)</big><a class="headerlink" href="#set_pagesize" title="Permalink to this definition"></a></dt>
<dd><p>Set the size of the pages used to hold items in the database, in
bytes.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_pagesize.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_re_delim">
<tt class="descname">get_re_delim</tt><big>(</big><big>)</big><a class="headerlink" href="#get_re_delim" title="Permalink to this definition"></a></dt>
<dd><p>Returns the delimiting byte, which is used to mark the end of a
record in the backing source file for the Recno access method.
The return value will be a numeric byte value.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_re_delim.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_re_delim">
<tt class="descname">set_re_delim</tt><big>(</big><em>delim</em><big>)</big><a class="headerlink" href="#set_re_delim" title="Permalink to this definition"></a></dt>
<dd><p>Set the delimiting byte used to mark the end of a record in the
backing source file for the Recno access method. You can
specify a char or a numeric byte value.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_re_delim.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_re_len">
<tt class="descname">get_re_len</tt><big>(</big><big>)</big><a class="headerlink" href="#get_re_len" title="Permalink to this definition"></a></dt>
<dd><p>Returns the length of the records held in a Queue access method
database. This value can be set using the DB-&gt;set_re_len() method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_re_len.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_re_len">
<tt class="descname">set_re_len</tt><big>(</big><em>length</em><big>)</big><a class="headerlink" href="#set_re_len" title="Permalink to this definition"></a></dt>
<dd><p>For the Queue access method, specify that the records are of length
length. For the Recno access method, specify that the records are
fixed-length, not byte delimited, and are of length length.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_re_len.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_re_pad">
<tt class="descname">get_re_pad</tt><big>(</big><big>)</big><a class="headerlink" href="#get_re_pad" title="Permalink to this definition"></a></dt>
<dd><p>Returns the pad character used for short, fixed-length records used
by the Queue and Recno access methods. The method returns a byte
value.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_re_pad.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_re_pad">
<tt class="descname">set_re_pad</tt><big>(</big><em>pad</em><big>)</big><a class="headerlink" href="#set_re_pad" title="Permalink to this definition"></a></dt>
<dd><p>Set the padding character for short, fixed-length records for the
Queue and Recno access methods. You can specify a char or a numeric
byte value.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_re_pad.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_re_source">
<tt class="descname">get_re_source</tt><big>(</big><big>)</big><a class="headerlink" href="#get_re_source" title="Permalink to this definition"></a></dt>
<dd><p>Returns the source file used by the Recno access method. This file is
configured for the Recno access method using the DB-&gt;set_re_source()
method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_re_source.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_re_source">
<tt class="descname">set_re_source</tt><big>(</big><em>source</em><big>)</big><a class="headerlink" href="#set_re_source" title="Permalink to this definition"></a></dt>
<dd><p>Set the underlying source file for the Recno access method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_re_source.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="get_q_extentsize">
<tt class="descname">get_q_extentsize</tt><big>(</big><big>)</big><a class="headerlink" href="#get_q_extentsize" title="Permalink to this definition"></a></dt>
<dd><p>Returns the number of pages in an extent. This value is used only for
Queue databases and is set using the DB-&gt;set_q_extentsize() method.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbget_q_extentsize.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="set_q_extentsize">
<tt class="descname">set_q_extentsize</tt><big>(</big><em>extentsize</em><big>)</big><a class="headerlink" href="#set_q_extentsize" title="Permalink to this definition"></a></dt>
<dd><p>Set the size of the extents used to hold pages in a Queue database,
specified as a number of pages. Each extent is created as a separate
physical file. If no extent size is set, the default behavior is to
create only a single underlying database file.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbset_q_extentsize.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="stat">
<tt class="descname">stat</tt><big>(</big><em>flags=0</em>, <em>txn=None</em><big>)</big><a class="headerlink" href="#stat" title="Permalink to this definition"></a></dt>
<dd><p>Return a dictionary containing database statistics with the following
keys.</p>
<p>For Hash databases:</p>
<blockquote>
<div><table border="1" class="docutils">
<colgroup>
<col width="18%" />
<col width="82%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td>magic</td>
<td>Magic number that identifies the file as a Hash
database.</td>
</tr>
<tr class="row-even"><td>version</td>
<td>Version of the Hash database.</td>
</tr>
<tr class="row-odd"><td>nkeys</td>
<td>Number of unique keys in the database.</td>
</tr>
<tr class="row-even"><td>ndata</td>
<td>Number of key/data pairs in the database.</td>
</tr>
<tr class="row-odd"><td>pagecnt</td>
<td>The number of pages in the database.</td>
</tr>
<tr class="row-even"><td>pagesize</td>
<td>Underlying Hash database page (&amp; bucket) size.</td>
</tr>
<tr class="row-odd"><td>nelem</td>
<td>Estimated size of the hash table specified at
database creation time.</td>
</tr>
<tr class="row-even"><td>ffactor</td>
<td>Desired fill factor (number of items per bucket)
specified at database creation time.</td>
</tr>
<tr class="row-odd"><td>buckets</td>
<td>Number of hash buckets.</td>
</tr>
<tr class="row-even"><td>free</td>
<td>Number of pages on the free list.</td>
</tr>
<tr class="row-odd"><td>bfree</td>
<td>Number of bytes free on bucket pages.</td>
</tr>
<tr class="row-even"><td>bigpages</td>
<td>Number of big key/data pages.</td>
</tr>
<tr class="row-odd"><td>big_bfree</td>
<td>Number of bytes free on big item pages.</td>
</tr>
<tr class="row-even"><td>overflows</td>
<td>Number of overflow pages (overflow pages are
pages that contain items that did not fit in
the main bucket page).</td>
</tr>
<tr class="row-odd"><td>ovfl_free</td>
<td>Number of bytes free on overflow pages.</td>
</tr>
<tr class="row-even"><td>dup</td>
<td>Number of duplicate pages.</td>
</tr>
<tr class="row-odd"><td>dup_free</td>
<td>Number of bytes free on duplicate pages.</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>For BTree and Recno databases:</p>
<blockquote>
<div><table border="1" class="docutils">
<colgroup>
<col width="22%" />
<col width="78%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td>magic</td>
<td>Magic number that identifies the file as a
Btree database.</td>
</tr>
<tr class="row-even"><td>version</td>
<td>Version of the Btree database.</td>
</tr>
<tr class="row-odd"><td>nkeys</td>
<td><p class="first">For the Btree Access Method, the number of
unique keys in the database.</p>
<p class="last">For the Recno Access Method, the number of
records in the database. If the database has
been configured to not re-number records
during deletion, the number of records may
include records that have been deleted.</p>
</td>
</tr>
<tr class="row-even"><td>ndata</td>
<td><p class="first">For the Btree Access Method, the number of
key/data pairs in the database.</p>
<p class="last">For the Recno Access Method, the number of
records in the database. If the database has
been configured to not re-number records
during deletion, the number of records may
include records that have been deleted.</p>
</td>
</tr>
<tr class="row-odd"><td>pagecnt</td>
<td>The number of pages in the database.</td>
</tr>
<tr class="row-even"><td>pagesize</td>
<td>Underlying database page size.</td>
</tr>
<tr class="row-odd"><td>minkey</td>
<td>Minimum keys per page.</td>
</tr>
<tr class="row-even"><td>re_len</td>
<td>Length of fixed-length records.</td>
</tr>
<tr class="row-odd"><td>re_pad</td>
<td>Padding byte value for fixed-length records.</td>
</tr>
<tr class="row-even"><td>levels</td>
<td>Number of levels in the database.</td>
</tr>
<tr class="row-odd"><td>int_pg</td>
<td>Number of database internal pages.</td>
</tr>
<tr class="row-even"><td>leaf_pg</td>
<td>Number of database leaf pages.</td>
</tr>
<tr class="row-odd"><td>dup_pg</td>
<td>Number of database duplicate pages.</td>
</tr>
<tr class="row-even"><td>over_pg</td>
<td>Number of database overflow pages.</td>
</tr>
<tr class="row-odd"><td>empty_pg</td>
<td>Number of empty database pages.</td>
</tr>
<tr class="row-even"><td>free</td>
<td>Number of pages on the free list.</td>
</tr>
<tr class="row-odd"><td>int_pgfree</td>
<td>Num of bytes free in database internal pages.</td>
</tr>
<tr class="row-even"><td>leaf_pgfree</td>
<td>Number of bytes free in database leaf pages.</td>
</tr>
<tr class="row-odd"><td>dup_pgfree</td>
<td>Num bytes free in database duplicate pages.</td>
</tr>
<tr class="row-even"><td>over_pgfree</td>
<td>Num of bytes free in database overflow pages.</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>For Queue databases:</p>
<blockquote>
<div><table border="1" class="docutils">
<colgroup>
<col width="22%" />
<col width="78%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td>magic</td>
<td>Magic number that identifies the file as a
Queue database.</td>
</tr>
<tr class="row-even"><td>version</td>
<td>Version of the Queue file type.</td>
</tr>
<tr class="row-odd"><td>nkeys</td>
<td>Number of records in the database.</td>
</tr>
<tr class="row-even"><td>ndata</td>
<td>Number of records in the database.</td>
</tr>
<tr class="row-odd"><td>pagesize</td>
<td>Underlying database page size.</td>
</tr>
<tr class="row-even"><td>extentsize</td>
<td>Underlying database extent size, in pages.</td>
</tr>
<tr class="row-odd"><td>pages</td>
<td>Number of pages in the database.</td>
</tr>
<tr class="row-even"><td>re_len</td>
<td>Length of the records.</td>
</tr>
<tr class="row-odd"><td>re_pad</td>
<td>Padding byte value for the records.</td>
</tr>
<tr class="row-even"><td>pgfree</td>
<td>Number of bytes free in database pages.</td>
</tr>
<tr class="row-odd"><td>first_recno</td>
<td>First undeleted record in the database.</td>
</tr>
<tr class="row-even"><td>cur_recno</td>
<td>Last allocated record number in the database.</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p><a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbstat.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="stat_print">
<tt class="descname">stat_print</tt><big>(</big><em>flags=0</em><big>)</big><a class="headerlink" href="#stat_print" title="Permalink to this definition"></a></dt>
<dd><p>Displays the database statistical information.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbstat_print.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="sync">
<tt class="descname">sync</tt><big>(</big><em>flags=0</em><big>)</big><a class="headerlink" href="#sync" title="Permalink to this definition"></a></dt>
<dd><p>Flushes any cached information to disk.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbsync.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="truncate">
<tt class="descname">truncate</tt><big>(</big><em>txn=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#truncate" title="Permalink to this definition"></a></dt>
<dd><p>Empties the database, discarding all records it contains. The number
of records discarded from the database is returned.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbtruncate.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="upgrade">
<tt class="descname">upgrade</tt><big>(</big><em>filename</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#upgrade" title="Permalink to this definition"></a></dt>
<dd><p>Upgrades all of the databases included in the file filename, if
necessary.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbupgrade.html">More info...</a></p>
</dd></dl>

<dl class="function">
<dt id="verify">
<tt class="descname">verify</tt><big>(</big><em>filename</em>, <em>dbname=None</em>, <em>outfile=None</em>, <em>flags=0</em><big>)</big><a class="headerlink" href="#verify" title="Permalink to this definition"></a></dt>
<dd><p>Verifies the integrity of all databases in the file specified by the
filename argument, and optionally outputs the databases&#8217; key/data
pairs to a file.
<a class="reference external" href="http://docs.oracle.com/cd/E17076_03/html/api_reference/C/dbverify.html">More info...</a></p>
</dd></dl>

</div>
<div class="section" id="db-mapping-and-compatibility-methods">
<h2>DB Mapping and Compatibility Methods<a class="headerlink" href="#db-mapping-and-compatibility-methods" title="Permalink to this headline"></a></h2>
<p>These methods of the DB type are for implementing the Mapping Interface,
as well as others for making a DB behave as much like a dictionary as
possible. The main downside to using a DB as a dictionary is you are not
able to specify a transaction object.</p>
<dl class="function">
<dt>
<tt class="descname">DB_length() [ usage: len(db) ]</tt></dt>
<dd><p>Return the number of key/data pairs in the database.</p>
</dd></dl>

<dl class="function">
<dt>
<tt class="descname">DB_subscript(key) [ usage: db[key] ]</tt></dt>
<dd><p>Return the data associated with key.</p>
</dd></dl>

<dl class="function">
<dt>
<tt class="descname">DB_ass_sub(key, data) [ usage: db[key] = data ]</tt></dt>
<dd><p>Assign or update a key/data pair, or delete a key/data pair if data
is NULL.</p>
</dd></dl>

<dl class="function">
<dt id="keys">
<tt class="descname">keys</tt><big>(</big><em>txn=None</em><big>)</big><a class="headerlink" href="#keys" title="Permalink to this definition"></a></dt>
<dd><p>Return a list of all keys in the database. Warning: this method
traverses the entire database so it can possibly take a long time to
complete.</p>
</dd></dl>

<dl class="function">
<dt id="items">
<tt class="descname">items</tt><big>(</big><em>txn=None</em><big>)</big><a class="headerlink" href="#items" title="Permalink to this definition"></a></dt>
<dd><p>Return a list of tuples of all key/data pairs in the database.
Warning: this method traverses the entire database so it can possibly
take a long time to complete.</p>
</dd></dl>

<dl class="function">
<dt id="values">
<tt class="descname">values</tt><big>(</big><em>txn=None</em><big>)</big><a class="headerlink" href="#values" title="Permalink to this definition"></a></dt>
<dd><p>Return a list of all data values in the database. Warning: this
method traverses the entire database so it can possibly take a long
time to complete.</p>
</dd></dl>

<dl class="function">
<dt id="has_key">
<tt class="descname">has_key</tt><big>(</big><em>key</em>, <em>txn=None</em><big>)</big><a class="headerlink" href="#has_key" title="Permalink to this definition"></a></dt>
<dd><p>Returns true if key is present in the database.</p>
</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="contents.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">DB</a><ul>
<li><a class="reference internal" href="#db-methods">DB Methods</a></li>
<li><a class="reference internal" href="#db-mapping-and-compatibility-methods">DB Mapping and Compatibility Methods</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="dbenv.html"
                        title="previous chapter">DBEnv</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="dbcursor.html"
                        title="next chapter">DBCursor</a></p>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="dbcursor.html" title="DBCursor"
             >next</a> |</li>
        <li class="right" >
          <a href="dbenv.html" title="DBEnv"
             >previous</a> |</li>
        <li><a href="contents.html">PyBSDDB 6.0.0 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2008-2013 Jesus Cea Avion.
      Last updated on Dec 04, 2013.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>