File: design.txt

package info (click to toggle)
guile-db 0.1-4
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 80 kB
  • ctags: 30
  • sloc: ansic: 287; makefile: 71; lisp: 55
file content (38 lines) | stat: -rw-r--r-- 870 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
stage 1

db-open filename (always btree, default comparison, etc)
db-put-binary handle key array
db-get-binary handle key
db-del-binary handle key
db-put-text handle key string
db-get-text handle key
db-del-text handle key
db-put handle key data
db-get handle key
db-del handle key
db-close handle

stage 2

db-open filename [options]
	options -
		database name	use database name within file
		btree		use btree format
		hash		use hash format
		queue		use queue format
		recno		use recno format
		create		create if necessary
		excl		fail if already exists
		rdonly		open read-only
		compare proc	set btree comparison function
		ffactor	n	set hashing fill factor
		nelem n		set hashing estimated size
		hash proc	set hashing function
		
db-put handle key data
db-get handle key
db-del handle key
db-put-binary key array
db-get-binary key
db-del-binary key
db-close handle