30 |
IDBONOLCK |
IDBONOLCK |
31 |
IDBOLCKNB |
IDBOLCKNB |
32 |
tcidbclose |
tcidbclose |
33 |
|
tcidbput |
34 |
|
tcidbout |
35 |
|
tcidbget |
36 |
|
tcidbsearch |
37 |
|
IDBSSUBSTR |
38 |
|
IDBSPREFIX |
39 |
|
IDBSSUFFIX |
40 |
|
IDBSFULL |
41 |
|
IDBSTOKEN |
42 |
|
IDBSTOKPRE |
43 |
|
IDBSTOKSUF |
44 |
|
tcidbiterinit |
45 |
|
tcidbiternext |
46 |
|
tcidbsync |
47 |
); |
); |
48 |
|
|
49 |
=head1 NAME |
=head1 NAME |
72 |
|
|
73 |
=head2 tcidbtune |
=head2 tcidbtune |
74 |
|
|
75 |
my $success = tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE || IDBTDEFLATE ); |
my $success = tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE | IDBTDEFLATE ); |
76 |
|
|
77 |
=cut |
=cut |
78 |
|
|
92 |
|
|
93 |
=head2 tcidbopen |
=head2 tcidbopen |
94 |
|
|
95 |
my $success = tcidbopen( $idb, 'casket', IDBOWRITER || IDBOCREAT ); |
my $success = tcidbopen( $idb, 'casket', IDBOWRITER | IDBOCREAT ); |
96 |
|
|
97 |
=cut |
=cut |
98 |
|
|
109 |
|
|
110 |
my $success = tcidbclose( $idb ); |
my $success = tcidbclose( $idb ); |
111 |
|
|
112 |
|
=head2 tcidbput |
113 |
|
|
114 |
|
my $success = tcidbput( $idb, $id, $text ); |
115 |
|
|
116 |
|
=head2 tcidbout |
117 |
|
|
118 |
|
my $success = tcidbout( $idb, $id ); |
119 |
|
|
120 |
|
=head2 tcidbget |
121 |
|
|
122 |
|
my $text = tcidbget( $idb, $id ); |
123 |
|
|
124 |
|
=head2 tcidbsearch |
125 |
|
|
126 |
|
my @ids = tcidbsearch( $idb, $word, IDBSSUBSTR ) |
127 |
|
|
128 |
|
=cut |
129 |
|
|
130 |
|
use constant { |
131 |
|
IDBSSUBSTR => 0, # substring matching |
132 |
|
IDBSPREFIX => 1, # prefix matching |
133 |
|
IDBSSUFFIX => 2, # suffix matching |
134 |
|
IDBSFULL => 3, # full matching |
135 |
|
IDBSTOKEN => 4, # token matching |
136 |
|
IDBSTOKPRE => 5, # token prefix matching |
137 |
|
IDBSTOKSUF => 6, # token suffix matching |
138 |
|
}; |
139 |
|
|
140 |
|
=head2 tcidbiterinit |
141 |
|
|
142 |
|
my $success = tcidbiterinit( $idb ); |
143 |
|
|
144 |
|
=head2 tcidbiternext |
145 |
|
|
146 |
|
my $id = tcidbiternext( $idb ); |
147 |
|
|
148 |
|
=head2 tcidbsync |
149 |
|
|
150 |
|
my $success = tcidbsync( $idb ); |
151 |
|
|
152 |
|
=cut |
153 |
|
|
154 |
=head1 KNOWN BUGS |
=head1 KNOWN BUGS |
155 |
|
|
156 |
Low-level functions often just die when called on invalid (or deleted) database |
Low-level functions often just die when called on invalid (or deleted) database |