29 |
IDBOTRUNC |
IDBOTRUNC |
30 |
IDBONOLCK |
IDBONOLCK |
31 |
IDBOLCKNB |
IDBOLCKNB |
32 |
|
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 |
); |
); |
46 |
|
|
47 |
=head1 NAME |
=head1 NAME |
54 |
|
|
55 |
=head2 tcidberrmsg |
=head2 tcidberrmsg |
56 |
|
|
57 |
my $message = Search::TokyoDystopia::tcidberrmsg( $ecode ); |
my $message = tcidberrmsg( $ecode ); |
58 |
|
|
59 |
=head2 tcidbnew |
=head2 tcidbnew |
60 |
|
|
61 |
my $idb = Search::TokyoDystopia::tcidbnew; |
my $idb = tcidbnew; |
62 |
|
|
63 |
=head2 tcidbdel |
=head2 tcidbdel |
64 |
|
|
65 |
Search::TokyoDystopia::tcidbdel( $idb ); |
tcidbdel( $idb ); |
66 |
|
|
67 |
=head2 tcidbecode |
=head2 tcidbecode |
68 |
|
|
69 |
my $ecode = Search::TokyoDystopia::tcidbecode( $idb ); |
my $ecode = tcidbecode( $idb ); |
70 |
|
|
71 |
=head2 tcidbtune |
=head2 tcidbtune |
72 |
|
|
73 |
my $success = Search::TokyoDystopia::tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE || IDBTDEFLATE ); |
my $success = tcidbtune( $idb, $ernum, $etnum, $iusiz, IDBTLARGE | IDBTDEFLATE ); |
74 |
|
|
75 |
=cut |
=cut |
76 |
|
|
82 |
|
|
83 |
=head2 tcidbsetcache |
=head2 tcidbsetcache |
84 |
|
|
85 |
my $success = Search::TokyoDystopia::tcidbsetcache( $idb, $icsiz, $lcnum ); |
my $success = tcidbsetcache( $idb, $icsiz, $lcnum ); |
86 |
|
|
87 |
=head2 tcidbsetfwmmax |
=head2 tcidbsetfwmmax |
88 |
|
|
89 |
my $success = Search::TokyoDystopia::tcidbsetfwmmax( $idb, $fwnum ); |
my $success = tcidbsetfwmmax( $idb, $fwnum ); |
90 |
|
|
91 |
=head2 tcidbopen |
=head2 tcidbopen |
92 |
|
|
93 |
Search::TokyoDystopia::tcidbopen( $idb, 'casket', IDBOTRUNC ), 1, 'tcidbopen' ); |
my $success = tcidbopen( $idb, 'casket', IDBOWRITER | IDBOCREAT ); |
94 |
|
|
95 |
=cut |
=cut |
96 |
|
|
103 |
IDBOLCKNB => 1 << 5, |
IDBOLCKNB => 1 << 5, |
104 |
}; |
}; |
105 |
|
|
106 |
|
=head2 tcidbclose |
107 |
|
|
108 |
|
my $success = tcidbclose( $idb ); |
109 |
|
|
110 |
|
=head2 tcidbput |
111 |
|
|
112 |
|
my $success = tcidbput( $idb, $id, $text ); |
113 |
|
|
114 |
|
=head2 tcidbout |
115 |
|
|
116 |
|
my $success = tcidbout( $idb, $id ); |
117 |
|
|
118 |
|
=head2 tcidbget |
119 |
|
|
120 |
|
my $text = tcidbget( $idb, $id ); |
121 |
|
|
122 |
|
=head2 tcidbsearch |
123 |
|
|
124 |
|
my @ids = tcidbsearch( $idb, $word, IDBSSUBSTR ) |
125 |
|
|
126 |
|
=cut |
127 |
|
|
128 |
|
use constant { |
129 |
|
IDBSSUBSTR => 0, # substring matching |
130 |
|
IDBSPREFIX => 1, # prefix matching |
131 |
|
IDBSSUFFIX => 2, # suffix matching |
132 |
|
IDBSFULL => 3, # full matching |
133 |
|
IDBSTOKEN => 4, # token matching |
134 |
|
IDBSTOKPRE => 5, # token prefix matching |
135 |
|
IDBSTOKSUF => 6, # token suffix matching |
136 |
|
}; |
137 |
|
|
138 |
|
=head2 tcidbiterinit |
139 |
|
|
140 |
|
my $success = tcidbiterinit; |
141 |
|
|
142 |
|
=cut |
143 |
|
|
144 |
=head1 KNOWN BUGS |
=head1 KNOWN BUGS |
145 |
|
|
146 |
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 |