source: vendor/current/docs/manpages/ldb.3@ 740

Last change on this file since 740 was 740, checked in by Silvan Scherrer, 12 years ago

Samba Server: update vendor to 3.6.0

File size: 7.8 KB
Line 
1'\" t
2.\" Title: ldb
3.\" Author: [see the "Author" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 06/07/2011
6.\" Manual: C Library Functions
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "LDB" "3" "06/07/2011" "Samba 3\&.6" "C Library Functions"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22ldb \- A light\-weight database library
23.SH "SYNOPSIS"
24.sp
25.nf
26#include <ldb\&.h>
27.fi
28.SH "DESCRIPTION"
29.PP
30ldb is a light weight embedded database library and API\&. With a programming interface that is very similar to LDAP, ldb can store its data either in a tdb(3) database or in a real LDAP database\&.
31.PP
32When used with the tdb backend ldb does not require any database daemon\&. Instead, ldb function calls are processed immediately by the ldb library, which does IO directly on the database, while allowing multiple readers/writers using operating system byte range locks\&. This leads to an API with very low overheads, often resulting in speeds of more than 10x what can be achieved with a more traditional LDAP architecture\&.
33.PP
34In a taxonomy of databases ldb would sit half way between key/value pair databases (such as berkley db or tdb) and a full LDAP database\&. With a structured attribute oriented API like LDAP and good indexing capabilities, ldb can be used for quite sophisticated applications that need a light weight database, without the administrative overhead of a full LDAP installation\&.
35.PP
36Included with ldb are a number of useful command line tools for manipulating a ldb database\&. These tools are similar in style to the equivalent ldap command line tools\&.
37.PP
38In its default mode of operation with a tdb backend, ldb can also be seen as a "schema\-less LDAP"\&. By default ldb does not require a schema, which greatly reduces the complexity of getting started with ldb databases\&. As the complexity of you application grows you can take advantage of some of the optional schema\-like attributes that ldb offers, or you can migrate to using the full LDAP api while keeping your exiting ldb code\&.
39.PP
40If you are new to ldb, then I suggest starting with the manual pages for ldbsearch(1) and ldbedit(1), and experimenting with a local database\&. Then I suggest you look at the ldb_connect(3) and ldb_search(3) manual pages\&.
41.SH "TOOLS"
42.sp
43.RS 4
44.ie n \{\
45\h'-04'\(bu\h'+03'\c
46.\}
47.el \{\
48.sp -1
49.IP \(bu 2.3
50.\}
51
52ldbsearch(1)
53\- command line ldb search utility
54.RE
55.sp
56.RS 4
57.ie n \{\
58\h'-04'\(bu\h'+03'\c
59.\}
60.el \{\
61.sp -1
62.IP \(bu 2.3
63.\}
64
65ldbedit(1)
66\- edit all or part of a ldb database using your favourite editor
67.RE
68.sp
69.RS 4
70.ie n \{\
71\h'-04'\(bu\h'+03'\c
72.\}
73.el \{\
74.sp -1
75.IP \(bu 2.3
76.\}
77
78ldbadd(1)
79\- add records to a ldb database using LDIF formatted input
80.RE
81.sp
82.RS 4
83.ie n \{\
84\h'-04'\(bu\h'+03'\c
85.\}
86.el \{\
87.sp -1
88.IP \(bu 2.3
89.\}
90
91ldbdel(1)
92\- delete records from a ldb database
93.RE
94.sp
95.RS 4
96.ie n \{\
97\h'-04'\(bu\h'+03'\c
98.\}
99.el \{\
100.sp -1
101.IP \(bu 2.3
102.\}
103
104ldbmodify(1)
105\- modify records in a ldb database using LDIF formatted input
106.RE
107.SH "FUNCTIONS"
108.sp
109.RS 4
110.ie n \{\
111\h'-04'\(bu\h'+03'\c
112.\}
113.el \{\
114.sp -1
115.IP \(bu 2.3
116.\}
117
118\fBldb_connect(3)\fR
119\- connect to a ldb backend
120.RE
121.sp
122.RS 4
123.ie n \{\
124\h'-04'\(bu\h'+03'\c
125.\}
126.el \{\
127.sp -1
128.IP \(bu 2.3
129.\}
130
131\fBldb_search(3)\fR
132\- perform a database search
133.RE
134.sp
135.RS 4
136.ie n \{\
137\h'-04'\(bu\h'+03'\c
138.\}
139.el \{\
140.sp -1
141.IP \(bu 2.3
142.\}
143
144\fBldb_add(3)\fR
145\- add a record to the database
146.RE
147.sp
148.RS 4
149.ie n \{\
150\h'-04'\(bu\h'+03'\c
151.\}
152.el \{\
153.sp -1
154.IP \(bu 2.3
155.\}
156
157\fBldb_delete(3)\fR
158\- delete a record from the database
159.RE
160.sp
161.RS 4
162.ie n \{\
163\h'-04'\(bu\h'+03'\c
164.\}
165.el \{\
166.sp -1
167.IP \(bu 2.3
168.\}
169
170\fBldb_modify(3)\fR
171\- modify a record in the database
172.RE
173.sp
174.RS 4
175.ie n \{\
176\h'-04'\(bu\h'+03'\c
177.\}
178.el \{\
179.sp -1
180.IP \(bu 2.3
181.\}
182
183\fBldb_errstring(3)\fR
184\- retrieve extended error information from the last operation
185.RE
186.sp
187.RS 4
188.ie n \{\
189\h'-04'\(bu\h'+03'\c
190.\}
191.el \{\
192.sp -1
193.IP \(bu 2.3
194.\}
195
196\fBldb_ldif_write(3)\fR
197\- write a LDIF formatted message
198.RE
199.sp
200.RS 4
201.ie n \{\
202\h'-04'\(bu\h'+03'\c
203.\}
204.el \{\
205.sp -1
206.IP \(bu 2.3
207.\}
208
209\fBldb_ldif_write_file(3)\fR
210\- write a LDIF formatted message to a file
211.RE
212.sp
213.RS 4
214.ie n \{\
215\h'-04'\(bu\h'+03'\c
216.\}
217.el \{\
218.sp -1
219.IP \(bu 2.3
220.\}
221
222\fBldb_ldif_read(3)\fR
223\- read a LDIF formatted message
224.RE
225.sp
226.RS 4
227.ie n \{\
228\h'-04'\(bu\h'+03'\c
229.\}
230.el \{\
231.sp -1
232.IP \(bu 2.3
233.\}
234
235\fBldb_ldif_read_free(3)\fR
236\- free the result of a ldb_ldif_read()
237.RE
238.sp
239.RS 4
240.ie n \{\
241\h'-04'\(bu\h'+03'\c
242.\}
243.el \{\
244.sp -1
245.IP \(bu 2.3
246.\}
247
248\fBldb_ldif_read_file(3)\fR
249\- read a LDIF message from a file
250.RE
251.sp
252.RS 4
253.ie n \{\
254\h'-04'\(bu\h'+03'\c
255.\}
256.el \{\
257.sp -1
258.IP \(bu 2.3
259.\}
260
261\fBldb_ldif_read_string(3)\fR
262\- read a LDIF message from a string
263.RE
264.sp
265.RS 4
266.ie n \{\
267\h'-04'\(bu\h'+03'\c
268.\}
269.el \{\
270.sp -1
271.IP \(bu 2.3
272.\}
273
274\fBldb_msg_find_element(3)\fR
275\- find an element in a ldb_message
276.RE
277.sp
278.RS 4
279.ie n \{\
280\h'-04'\(bu\h'+03'\c
281.\}
282.el \{\
283.sp -1
284.IP \(bu 2.3
285.\}
286
287\fBldb_val_equal_exact(3)\fR
288\- compare two ldb_val structures
289.RE
290.sp
291.RS 4
292.ie n \{\
293\h'-04'\(bu\h'+03'\c
294.\}
295.el \{\
296.sp -1
297.IP \(bu 2.3
298.\}
299
300\fBldb_msg_find_val(3)\fR
301\- find an element by value
302.RE
303.sp
304.RS 4
305.ie n \{\
306\h'-04'\(bu\h'+03'\c
307.\}
308.el \{\
309.sp -1
310.IP \(bu 2.3
311.\}
312
313\fBldb_msg_add_empty(3)\fR
314\- add an empty message element to a ldb_message
315.RE
316.sp
317.RS 4
318.ie n \{\
319\h'-04'\(bu\h'+03'\c
320.\}
321.el \{\
322.sp -1
323.IP \(bu 2.3
324.\}
325
326\fBldb_msg_add(3)\fR
327\- add a non\-empty message element to a ldb_message
328.RE
329.sp
330.RS 4
331.ie n \{\
332\h'-04'\(bu\h'+03'\c
333.\}
334.el \{\
335.sp -1
336.IP \(bu 2.3
337.\}
338
339\fBldb_msg_element_compare(3)\fR
340\- compare two ldb_message_element structures
341.RE
342.sp
343.RS 4
344.ie n \{\
345\h'-04'\(bu\h'+03'\c
346.\}
347.el \{\
348.sp -1
349.IP \(bu 2.3
350.\}
351
352\fBldb_msg_find_int(3)\fR
353\- return an integer value from a ldb_message
354.RE
355.sp
356.RS 4
357.ie n \{\
358\h'-04'\(bu\h'+03'\c
359.\}
360.el \{\
361.sp -1
362.IP \(bu 2.3
363.\}
364
365\fBldb_msg_find_uint(3)\fR
366\- return an unsigned integer value from a ldb_message
367.RE
368.sp
369.RS 4
370.ie n \{\
371\h'-04'\(bu\h'+03'\c
372.\}
373.el \{\
374.sp -1
375.IP \(bu 2.3
376.\}
377
378\fBldb_msg_find_double(3)\fR
379\- return a double value from a ldb_message
380.RE
381.sp
382.RS 4
383.ie n \{\
384\h'-04'\(bu\h'+03'\c
385.\}
386.el \{\
387.sp -1
388.IP \(bu 2.3
389.\}
390
391\fBldb_msg_find_string(3)\fR
392\- return a string value from a ldb_message
393.RE
394.sp
395.RS 4
396.ie n \{\
397\h'-04'\(bu\h'+03'\c
398.\}
399.el \{\
400.sp -1
401.IP \(bu 2.3
402.\}
403
404\fBldb_set_alloc(3)\fR
405\- set the memory allocation function to be used by ldb
406.RE
407.sp
408.RS 4
409.ie n \{\
410\h'-04'\(bu\h'+03'\c
411.\}
412.el \{\
413.sp -1
414.IP \(bu 2.3
415.\}
416
417\fBldb_set_debug(3)\fR
418\- set a debug handler to be used by ldb
419.RE
420.sp
421.RS 4
422.ie n \{\
423\h'-04'\(bu\h'+03'\c
424.\}
425.el \{\
426.sp -1
427.IP \(bu 2.3
428.\}
429
430\fBldb_set_debug_stderr(3)\fR
431\- set a debug handler for stderr output
432.RE
433.SH "AUTHOR"
434.PP
435ldb was written by
436Andrew Tridgell\&.
437.PP
438If you wish to report a problem or make a suggestion then please see the
439: http://ldb.samba.org/
440web site for current contact and maintainer information\&.
441.PP
442ldb is released under the GNU Lesser General Public License version 2 or later\&. Please see the file COPYING for license details\&.
Note: See TracBrowser for help on using the repository browser.