File: bdb.rd

package info (click to toggle)
libdb2-ruby 0.5.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,352 kB
  • ctags: 2,743
  • sloc: ansic: 11,156; ruby: 6,199; cpp: 6,064; makefile: 86; sh: 31
file content (127 lines) | stat: -rw-r--r-- 4,037 bytes parent folder | download | duplicates (4)
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
=begin
= BDB

((<Download|URL:ftp://moulon.inra.fr/pub/ruby/>))

#^
Berkeley DB is an embedded database system that supports keyed access
to data.

Developers may choose to store data in any of several different
storage structures to satisfy the requirements of a particular
application. In database terminology, these storage structures and the
code that operates on them are called access methods.
#^
The library includes support for the following access methods:
# module BDB
#^
   * B+tree: Stores keys in sorted order, using a default function that does
     lexicographical ordering of keys.
#^
# class Btree < Common
# end
#^
   * Hashing: Stores records in a hash table for fast searches based
     on strict equality, using a default that hashes on the key as a bit
     string. Extended Linear Hashing modifies the hash function used by the
     table as new records are inserted, in order to keep buckets underfull in
     the steady state.
#^
# class Hash < Common
# end
#^
   * Fixed and Variable-Length Records: Stores fixed- or
     variable-length records in sequential order. Record numbers may be
     immutable, requiring that new records be added only at the end
     of the database, or mutable, permitting new records to be inserted
     between existing records. 
#^
# class Recno < Common
# end
((<Berkeley DB environnement|URL:docs/env.html>))

#^
Berkeley DB environment is an encapsulation of one or more databases,
log files and shared information about the database environment such
as shared memory buffer cache pages.
#^
# class Env
# end
Acces Methods
   
    * ((<Hash like interface|URL:docs/hashlike.html>))
      these are the common methods for BDB::Btree,
      BDB::Hash, BDB::Recno, BDB::Queue

    * ((<Array like interface|URL:docs/arraylike.html>))
      methods for BDB::Recnum


((<Sequence|URL:docs/sequence.html>))
#^
A sequence is created with BDB::Common::create_sequence or
BDB::Common::open_sequence (only with db >= 4.3)
#^
# class Sequence
# end

((<Transaction Manager|URL:docs/transaction.html>))

#^
The transaction subsystem makes operations atomic, consistent,
isolated, and durable in the face of system and application
failures. The subsystem requires that the data be properly logged and
locked in order to attain these properties. Berkeley DB contains all
the components necessary to transaction-protect the Berkeley DB access
methods and other forms of data may be protected if they are logged
and locked appropriately.
#^
# class Txn
# end

((<Cursor operation|URL:docs/cursor.html>))

#^
A database cursor is a sequential pointer to the database entries. It
allows traversal of the database and access to duplicate keyed
entries.  Cursors are used for operating on collections of records,
for iterating over a database, and for saving handles to individual
records, so that they can be modified after they have been read.
#^
# class Cursor
# end
See also iterators in ((<Acces Methods|URL:docs/hashlike.html#each>))

((<Lock system|URL:docs/lock.html>))


#^
The lock subsystem provides interprocess and intraprocess concurrency
control mechanisms. While the locking system is used extensively by
the Berkeley DB access methods and transaction system, it may also be
used as a stand-alone subsystem to provide concurrency control to any
set of designated resources.
#^
# class Lock
# end

((<Logging subsystem|URL:docs/log.html>))

#^
The logging subsystem is the logging facility used by Berkeley DB. It
is largely Berkeley DB specific, although it is potentially useful
outside of the Berkeley DB package for applications wanting
write-ahead logging support. Applications wanting to use the log for
purposes other than logging file modifications based on a set of open
file descriptors will almost certainly need to make source code
modifications to the Berkeley DB code base.
#^
##
## BDB::Env defines the following methods
##
## log_archive, log_checkpoint, log_curlsn, log_each, log_put, log_get,
## log_flush, log_reverse_each, log_stat
# class Log
# end
# end
=end