merge with 4.0
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union BUILD/SETUP.sh: Auto merged BUILD/compile-pentium-debug: Auto merged BitKeeper/triggers/post-commit: Auto merged configure.in: Auto merged Docs/manual.texi: Auto merged client/mysql.cc: Auto merged client/mysqldump.c: Auto merged client/mysqltest.c: Auto merged extra/mysql_install.c: Auto merged extra/resolve_stack_dump.c: Auto merged extra/resolveip.c: Auto merged include/my_sys.h: Auto merged include/mysqld_error.h: Auto merged isam/pack_isam.c: Auto merged libmysql/Makefile.shared: Auto merged libmysql/libmysql.c: Auto merged myisam/ft_dump.c: Auto merged myisam/ft_test1.c: Auto merged myisam/ftdefs.h: Auto merged myisam/mi_check.c: Auto merged myisam/mi_test1.c: Auto merged myisam/mi_write.c: Auto merged myisam/myisamchk.c: Auto merged myisam/myisampack.c: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/select_found.result: Auto merged mysql-test/t/select_found.test: Auto merged mysys/charset.c: Auto merged mysys/default.c: Auto merged mysys/hash.c: Auto merged sql/field.cc: Auto merged sql/gen_lex_hash.cc: Auto merged sql/ha_innodb.cc: Auto merged sql/hostname.cc: Auto merged sql/item_cmpfunc.h: Auto merged sql/item_strfunc.cc: Auto merged sql/item_timefunc.h: Auto merged sql/lex.h: Auto merged sql/log.cc: Auto merged sql/mysql_priv.h: Auto merged sql/repl_failsafe.cc: Auto merged sql/slave.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_cache.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_db.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_string.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_union.cc: Auto merged sql/share/czech/errmsg.txt: Auto merged sql/share/danish/errmsg.txt: Auto merged sql/share/dutch/errmsg.txt: Auto merged sql/share/english/errmsg.txt: Auto merged sql/share/estonian/errmsg.txt: Auto merged sql/share/german/errmsg.txt: Auto merged sql/share/greek/errmsg.txt: Auto merged sql/share/hungarian/errmsg.txt: Auto merged sql/share/italian/errmsg.txt: Auto merged sql/share/japanese/errmsg.txt: Auto merged sql/share/korean/errmsg.txt: Auto merged sql/share/norwegian-ny/errmsg.txt: Auto merged sql/share/norwegian/errmsg.txt: Auto merged sql/sql_update.cc: Auto merged sql/structs.h: Auto merged sql/share/polish/errmsg.txt: Auto merged sql/share/portuguese/errmsg.txt: Auto merged sql/share/romanian/errmsg.txt: Auto merged sql/share/russian/errmsg.txt: Auto merged sql/share/slovak/errmsg.txt: Auto merged sql/share/spanish/errmsg.txt: Auto merged sql/share/swedish/errmsg.txt: Auto merged sql/share/ukrainian/errmsg.txt: Auto merged strings/Makefile.am: Auto merged strings/ctype-ujis.c: Auto merged tools/mysqlmanager.c: Auto merged
This commit is contained in:
commit
f0409fa920
@ -38,6 +38,7 @@ COPYING.LIB
|
||||
Docs/#manual.texi#
|
||||
Docs/INSTALL-BINARY
|
||||
Docs/include.texi
|
||||
Docs/internals.info
|
||||
Docs/manual.aux
|
||||
Docs/manual.cp
|
||||
Docs/manual.cps
|
||||
@ -334,6 +335,8 @@ linked_libmysqldex_sources
|
||||
linked_server_sources
|
||||
linked_tools_sources
|
||||
locked
|
||||
mit-pthreads/config.flags
|
||||
mit-pthreads/syscall.S
|
||||
myisam/FT1.MYD
|
||||
myisam/FT1.MYI
|
||||
myisam/ft_dump
|
||||
@ -350,6 +353,9 @@ myisam/rt_test
|
||||
myisam/sp_test
|
||||
myisam/test1.MYD
|
||||
myisam/test1.MYI
|
||||
mysql-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
|
||||
mysql-4.0.2-alpha.tar.gz
|
||||
mysql-max-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
|
||||
mysql-test/gmon.out
|
||||
mysql-test/install_test_db
|
||||
mysql-test/mysql-test-run
|
||||
@ -369,6 +375,8 @@ mysql.proj
|
||||
mysqld.S
|
||||
mysqld.sym
|
||||
mysys/#mf_iocache.c#
|
||||
mysys/getopt.c
|
||||
mysys/getopt1.c
|
||||
mysys/test_charset
|
||||
mysys/test_dir
|
||||
mysys/test_io_cache
|
||||
|
@ -34,10 +34,10 @@ AM_MAKEFLAGS="-j 4"
|
||||
# The following warning flag will give too many warnings:
|
||||
# -Wshadow -Wunused -Winline (The later isn't usable in C++ as
|
||||
# __attribute()__ doesn't work with gnu C++)
|
||||
global_warnings="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings"
|
||||
global_warnings="-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings"
|
||||
#debug_extra_warnings="-Wuninitialized"
|
||||
c_warnings="$global_warnings -Wunused"
|
||||
cxx_warnings="$global_warnings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"
|
||||
cxx_warnings="$global_warnings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"
|
||||
|
||||
alpha_cflags="-mcpu=ev6 -Wa,-mev6" # Not used yet
|
||||
pentium_cflags="-mcpu=pentiumpro"
|
||||
|
@ -3,7 +3,8 @@
|
||||
path=`dirname $0`
|
||||
. "$path/SETUP.sh"
|
||||
|
||||
extra_flags="$pentium_cflags -O2 -fprofile-arcs -ftest-coverage"
|
||||
extra_flags="$pentium_cflags -fprofile-arcs -ftest-coverage"
|
||||
extra_configs="$pentium_configs $debug_configs --disable-shared $static_link"
|
||||
extra_configs="$extra_configs --with-innodb --with-berkeley-db"
|
||||
|
||||
. "$path/FINISH.sh"
|
||||
|
@ -8,6 +8,7 @@ extra_configs="$pentium_configs"
|
||||
strip=yes
|
||||
|
||||
extra_configs="$extra_configs --with-innodb --with-berkeley-db \
|
||||
--enable-thread-safe-client --with-openssl --with-vio"
|
||||
--with-embedded-server --enable-thread-safe-client \
|
||||
--with-openssl --with-vio"
|
||||
|
||||
. "$path/FINISH.sh"
|
||||
|
@ -11,6 +11,6 @@ then
|
||||
(cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
|
||||
fi
|
||||
|
||||
CFLAGS="-g -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa" CXX=gcc CXXFLAGS="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa -g" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client
|
||||
CFLAGS="-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa" CXX=gcc CXXFLAGS="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa -g" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client
|
||||
|
||||
gmake -j 4
|
||||
|
@ -11,6 +11,6 @@ then
|
||||
(cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
|
||||
fi
|
||||
|
||||
CFLAGS="-g -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa" CXX=gcc CXXFLAGS="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa -g" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-debug
|
||||
CFLAGS="-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa" CXX=gcc CXXFLAGS="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -O3 -fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa -g" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-debug
|
||||
|
||||
gmake -j 4
|
||||
|
@ -6,7 +6,7 @@ aclocal && autoheader && aclocal && automake && autoconf
|
||||
(cd bdb/dist && sh s_all)
|
||||
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
|
||||
|
||||
CFLAGS="-g -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -DHAVE_purify -DEXTRA_DEBUG -O2" CXX=gcc CXXLD=g++ CXXFLAGS="-g -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -DHAVE_purify -DEXTRA_DEBUG -O2" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-berkeley-db --with-innodb
|
||||
CFLAGS="-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -DHAVE_purify -DEXTRA_DEBUG -O2" CXX=gcc CXXLD=g++ CXXFLAGS="-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -DHAVE_purify -DEXTRA_DEBUG -O2" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-berkeley-db --with-innodb
|
||||
|
||||
gmake -j 4
|
||||
|
||||
|
@ -4,11 +4,44 @@ BK|config.h.in|19700101030959|00050|aecae693cca472c
|
||||
BK|include/my_global.h|19700101030959|00105|f657f708961a4632
|
||||
BK|libmysql/acconfig.h|19700101030959|02604|7b620dbd69ea6074
|
||||
BK|mit-pthreads/config.flags|19700101030959|00594|dcec5296ef811cd6
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/__math.h|19700101030959|01011|79d9a37715f2c7fe
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/__signal.h|19700101030959|01012|45332b2a56f62580
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/__stdio.h|19700101030959|01013|a81562134446c64c
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/__stdlib.h|19700101030959|01014|bcbed6d62d1885ae
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/__string.h|19700101030959|01015|94a2e4f9574bf1e8
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/__time.h|19700101030959|01016|2cde57d8feea7fc8
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/__unistd.h|19700101030959|01017|5cc4575b5a74066f
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/compat.h|19700101030959|01018|1f7e450a2e18603e
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/dirent.h|19700101030959|01019|13608bf11af98f70
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/posix/__signal.h|19700101030959|01024|9bb7b240bec88b2d
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/socket.h|19700101030959|01020|9f78f7e5a7b4a83f
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/syscall.h|19700101030959|01021|d9543a0474656339
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/timers.h|19700101030959|01022|d5e694e48990538c
|
||||
BK|mit-pthreads/machdep/i386-sco-3.2v5/trash.can|19700101030959|01023|9332039abd82a925
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/__math.h|19700101030959|00971|f3855eb411435a06
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/__signal.h|19700101030959|00972|3d6f84e96bc1462
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/__stdio.h|19700101030959|00973|b991fad3327275e0
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/__stdlib.h|19700101030959|00974|6179a0922d90025e
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/__string.h|19700101030959|00975|d2cc42eeb5e1666
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/__time.h|19700101030959|00976|a9594bab280ced64
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/__unistd.h|19700101030959|00977|99e6f1116d1f920
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/compat.h|19700101030959|00978|3f150ff6223d49be
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/dirent.h|19700101030959|00979|388af3465ad4680f
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/posix/__signal.h|19700101030959|00984|5e14827a3b91a6db
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/socket.h|19700101030959|00980|1b409f3f1fcbbf7a
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/syscall.h|19700101030959|00981|c69bd58eba4d5076
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/timers.h|19700101030959|00982|4907a958151368ed
|
||||
BK|mit-pthreads/machdep/sco-3.2v5/trash.can|19700101030959|00983|7eecac9fc944ade2
|
||||
BK|myisam/common_words|19700101030959|01665|13c10ef32aaa7537
|
||||
BK|myisam/mi_test_all|19700101030959|01666|ae7a366c45527b4e
|
||||
BK|mysys/mf_reccache.c|19700101030959|01419|f8191c8485e158fe
|
||||
BK|sql-bench/Results-linux/ATIS-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02361|6a0a837742a861bb
|
||||
BK|sql-bench/Results-linux/ATIS-interbase-Linux_2.2.14_5.0_i686|19700101030959|02348|e87091e2a6dce931
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02326|70981cb1dd58d3fb
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02327|67957b2b80839c59
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.2.12_20smp_i686|19700101030959|02437|28211fb9f0e6ab0e
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02438|136bdd9fd1a2cd14
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02362|20e8179c6f87930d
|
||||
BK|sql-bench/Results-linux/ATIS-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02443|defb62af5958fcac
|
||||
BK|sql-bench/Results-linux/Attic/ATIS-mysql-Linux_2.0.33_i586|19700101030959|02381|ef64fcf54c271212
|
||||
BK|sql-bench/Results-linux/Attic/ATIS-mysql-Linux_dynamic|19700101030959|02382|ffa77bdc262ac10f
|
||||
@ -66,29 +99,67 @@ BK|sql-bench/Results-linux/Attic/wisconsin-mysql-Linux_static|19700101030959|024
|
||||
BK|sql-bench/Results-linux/Attic/wisconsin-mysql_fast-Linux_2.0.33_i586|19700101030959|02434|7d98b33fa6d91a87
|
||||
BK|sql-bench/Results-linux/Attic/wisconsin-mysql_local_tcp-Linux_2.0.33_i586|19700101030959|02435|28a4840ebd5dd015
|
||||
BK|sql-bench/Results-linux/Attic/wisconsin-mysql_new-Linux_2.0.33_i586|19700101030959|02436|e1f17edfbee1f22e
|
||||
BK|sql-bench/Results-linux/RUN-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02365|5e446b99518aa0b1
|
||||
BK|sql-bench/Results-linux/RUN-interbase-Linux_2.2.14_5.0_i686|19700101030959|02351|9a0d8be7d641fae7
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02334|5f0504783180d906
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02335|6abba8bd8d9f8b7b
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.2.12_20smp_i686|19700101030959|02328|da28ced3e0aac09c
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02329|f6fa9f46d4a6152
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02366|730674f4ac333638
|
||||
BK|sql-bench/Results-linux/RUN-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02444|16694c5927b7600c
|
||||
BK|sql-bench/Results-linux/alter-table-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02367|e901749edf05bb58
|
||||
BK|sql-bench/Results-linux/alter-table-interbase-Linux_2.2.14_5.0_i686|19700101030959|02352|c4e27f25a15b6681
|
||||
BK|sql-bench/Results-linux/alter-table-mysql-Linux_2.2.12_20smp_i686|19700101030959|02330|67ae4e91b5f4eabd
|
||||
BK|sql-bench/Results-linux/alter-table-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02331|c85eb85ba45dd748
|
||||
BK|sql-bench/Results-linux/alter-table-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02368|19c95f9fc4ee458
|
||||
BK|sql-bench/Results-linux/alter-table-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02445|b062db76cf6df5d2
|
||||
BK|sql-bench/Results-linux/big-tables-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02371|c0c1c5efea0661ad
|
||||
BK|sql-bench/Results-linux/big-tables-interbase-Linux_2.2.14_5.0_i686|19700101030959|02353|beba3adfcfd472c0
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02341|cabe523a8f103945
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02342|c682fb7ee1fb3d8
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.2.12_20smp_i686|19700101030959|02332|a2dcb74a3c73ac18
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02333|b5f4f4c35225f0f
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02372|69d33d25eda85041
|
||||
BK|sql-bench/Results-linux/big-tables-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02446|a9eedd951eab7e8b
|
||||
BK|sql-bench/Results-linux/connect-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02373|744f1e38649d21d
|
||||
BK|sql-bench/Results-linux/connect-interbase-Linux_2.2.14_5.0_i686|19700101030959|02354|c28534284b9f5657
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02349|ebdc62367f5fcd43
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02350|7ed494b7cc7081c9
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.2.12_20smp_i686|19700101030959|02336|beedcd769a903c19
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02337|74ec2bf5f55b81f
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02374|55d777517ce8091
|
||||
BK|sql-bench/Results-linux/connect-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02447|f6d7665c418d62c6
|
||||
BK|sql-bench/Results-linux/create-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02377|d60ca06157cfc9b9
|
||||
BK|sql-bench/Results-linux/create-interbase-Linux_2.2.14_5.0_i686|19700101030959|02355|537da98f6c1bc6df
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02356|612a182b889dd778
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02357|b501391eec112dd0
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.2.12_20smp_i686|19700101030959|02338|fe23ee50aea195f4
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02339|771b40d3280fe8ad
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02378|35bd48cfe30c16a3
|
||||
BK|sql-bench/Results-linux/create-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02448|c46d6c283c0e34ae
|
||||
BK|sql-bench/Results-linux/insert-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02379|25161ee7c13036c1
|
||||
BK|sql-bench/Results-linux/insert-interbase-Linux_2.2.14_5.0_i686|19700101030959|02358|461a48df25628c0f
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02363|3260743076dbe95f
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02364|9de5538694cd87ea
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.2.12_20smp_i686|19700101030959|02340|f120b0ead3836c81
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02343|17f262f12d2244bc
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02380|7451b789c29b7dcd
|
||||
BK|sql-bench/Results-linux/insert-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02449|3245ba5633a18e8
|
||||
BK|sql-bench/Results-linux/select-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02439|816ec12a9152b578
|
||||
BK|sql-bench/Results-linux/select-interbase-Linux_2.2.14_5.0_i686|19700101030959|02359|3535cd00c2a9cb5d
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02369|de288cd8c11e1749
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02370|a82e759dbd5d66b
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.2.12_20smp_i686|19700101030959|02344|3b64aff0dfddfff4
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02345|9fd9c6e036f988d7
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02440|862a7c0ef1b17f29
|
||||
BK|sql-bench/Results-linux/select-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02450|744633c6e13a897f
|
||||
BK|sql-bench/Results-linux/wisconsin-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02441|cb767c1f9abc2ebd
|
||||
BK|sql-bench/Results-linux/wisconsin-interbase-Linux_2.2.14_5.0_i686|19700101030959|02360|9404247a2e483b34
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02375|8669562660b2c238
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02376|c7cbe3b167655f9c
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.2.12_20smp_i686|19700101030959|02346|d49db545341a732f
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.2.13_SMP_alpha|19700101030959|02347|ad7babd436f26841
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02442|74b238eca114dbbe
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql_fast-Linux_2.2.13_SMP_alpha|19700101030959|02451|6ad065fe4c6b4fa9
|
||||
BK|sql-bench/Results/ATIS-mysql-Linux_2.2.10_i686|19700101030959|02025|3fa4d167cceff7e8
|
||||
BK|sql-bench/Results/ATIS-mysql-Linux_2.2.14_5.0_i686-cmp-mysql,pg|19700101030959|02312|84ca3b85ff306133
|
||||
@ -236,7 +307,44 @@ BK|sql-bench/Results/wisconsin-pg_fast-Linux_2.2.14_5.0_i686-cmp-mysql,pg|197001
|
||||
BK|sql-bench/Results/wisconsin-pg_fast-Linux_2.2.14_5.0_i686|19700101030959|02270|ef201ca14f635c57
|
||||
BK|sql/share/romanian/errmsg.sys|19700101030959|01869|9d8282efb437e8cc
|
||||
BK|sql/share/romanian/errmsg.txt|19700101030959|01870|2c64fb13a8f104ad
|
||||
miguel@hegel.local|zlib/Make_vms.com|20020319032513|57151|35050a50ec612bbf
|
||||
miguel@hegel.local|zlib/Makefile.riscos|20020319032513|63798|8ab53f195fe429af
|
||||
miguel@hegel.local|zlib/amiga/Makefile.pup|20020319032513|19225|6a9ee8128d11541f
|
||||
miguel@hegel.local|zlib/amiga/Makefile.sas|20020319032513|25562|d7128ac7e0946f0b
|
||||
miguel@hegel.local|zlib/contrib/untgz/makefile.w32|20020319032516|01267|2c584f05a16db4ba
|
||||
miguel@hegel.local|zlib/msdos/Makefile.b32|20020319032518|33760|86772037f3344353
|
||||
miguel@hegel.local|zlib/msdos/Makefile.bor|20020319032518|40099|7aa9edaac099cdb9
|
||||
miguel@hegel.local|zlib/msdos/Makefile.dj2|20020319032518|46371|ca26f5fe96e3e999
|
||||
miguel@hegel.local|zlib/msdos/Makefile.emx|20020319032518|52757|64efbf8cedc146b5
|
||||
miguel@hegel.local|zlib/msdos/Makefile.msc|20020319032518|59050|1bb69abdddf390f2
|
||||
miguel@hegel.local|zlib/msdos/Makefile.tc|20020319032518|65341|2a9dff916115ae77
|
||||
miguel@hegel.local|zlib/msdos/Makefile.w32|20020319032518|06083|8d84523c1dcdc0f7
|
||||
miguel@hegel.local|zlib/msdos/Makefile.wat|20020319032518|12471|82f8714d825e97e3
|
||||
miguel@hegel.local|zlib/nt/Makefile.emx|20020319032518|31715|7e9fcf6f5ad2e51a
|
||||
miguel@hegel.local|zlib/nt/Makefile.gcc|20020319032519|03630|351fa8bd15c704b9
|
||||
miguel@hegel.local|zlib/nt/Makefile.nt|20020319032519|09990|ee461a3dd393a061
|
||||
miguel@hegel.local|zlib/os2/Makefile.os2|20020319032519|22554|7a05f2a27812703a
|
||||
monty@donna.mysql.com|myisam/mi_debug.c|20000829092809|23459|873a6e7d6ff8297c
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/ATIS-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|34755|45d7837423db243f
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/ATIS-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|37262|2274651e29d38b07
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/RUN-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|39831|a6ef8229d40b75d1
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/RUN-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|42374|65ccbcd7b1c4d7b5
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/alter-table-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|44909|de84e4a2fd07f53
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/alter-table-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|47422|ee162dd1474ba9d8
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/big-tables-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|49948|d11a751a268a4df3
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/big-tables-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|52469|c13eca5ec25cd6e1
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/connect-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|54998|dfaa50e67eb15556
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/connect-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|57532|4015a2bef627d8cd
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/create-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|60103|fa19b9a2c7a3c3c
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/create-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|62710|21ec8ba1ea3ca4c4
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/insert-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|65289|a02aceb3b30de493
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/insert-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|02393|7c9baa774fc324e1
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/select-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|05001|da73eefa16ca9383
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/select-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|07610|cffd7d282a90113a
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/wisconsin-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|10615|8dcd7271a9137341
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/wisconsin-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|13213|4398328883aa75da
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/chew_on_this/select.res|20001014084759|41327|1295456b9394876
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/chew_on_this/select.res|20001014084759|41327|1295456b93948768
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/mybin/start-mysqld|20001016055648|54840|9c8f21a7ab97793a
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/mybin/stop-mysqld|20001016055653|20710|89a1194045f05d1c
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/mybin/translate-tests|20001018130217|00206|3869c1fdf0a5ea1a
|
||||
@ -315,67 +423,3 @@ sasha@mysql.sashanet.com|mysql-test/t/include/master-slave.inc|20001118030458|01
|
||||
sasha@work.mysql.com|BitKeeper/etc/logging_ok|20001214015456|29919|32b6551b8288c2fa
|
||||
serg@serg.mysql.com|mysql-test/r/3.23/mrg000001.dummy.result|20001206231604|05053|bf7e6d609f22b897
|
||||
serg@serg.mysql.com|mysql-test/r/3.23/mrg000001.result|20001206231609|46662|db2ef2e717ab8332
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/chew_on_this/select.res|20001014084759|41327|1295456b9394876
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/chew_on_this/select.res|20001014084759|41327|1295456b93948768
|
||||
BK|sql-bench/Results-linux/ATIS-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02361|6a0a837742a861bb
|
||||
BK|sql-bench/Results-linux/ATIS-interbase-Linux_2.2.14_5.0_i686|19700101030959|02348|e87091e2a6dce931
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02326|70981cb1dd58d3fb
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02327|67957b2b80839c59
|
||||
BK|sql-bench/Results-linux/ATIS-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02362|20e8179c6f87930d
|
||||
BK|sql-bench/Results-linux/RUN-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02365|5e446b99518aa0b1
|
||||
BK|sql-bench/Results-linux/RUN-interbase-Linux_2.2.14_5.0_i686|19700101030959|02351|9a0d8be7d641fae7
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02334|5f0504783180d906
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02335|6abba8bd8d9f8b7b
|
||||
BK|sql-bench/Results-linux/RUN-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02366|730674f4ac333638
|
||||
BK|sql-bench/Results-linux/alter-table-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02367|e901749edf05bb58
|
||||
BK|sql-bench/Results-linux/alter-table-interbase-Linux_2.2.14_5.0_i686|19700101030959|02352|c4e27f25a15b6681
|
||||
BK|sql-bench/Results-linux/alter-table-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02368|19c95f9fc4ee458
|
||||
BK|sql-bench/Results-linux/big-tables-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02371|c0c1c5efea0661ad
|
||||
BK|sql-bench/Results-linux/big-tables-interbase-Linux_2.2.14_5.0_i686|19700101030959|02353|beba3adfcfd472c0
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02341|cabe523a8f103945
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02342|c682fb7ee1fb3d8
|
||||
BK|sql-bench/Results-linux/big-tables-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02372|69d33d25eda85041
|
||||
BK|sql-bench/Results-linux/connect-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02373|744f1e38649d21d
|
||||
BK|sql-bench/Results-linux/connect-interbase-Linux_2.2.14_5.0_i686|19700101030959|02354|c28534284b9f5657
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02349|ebdc62367f5fcd43
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02350|7ed494b7cc7081c9
|
||||
BK|sql-bench/Results-linux/connect-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02374|55d777517ce8091
|
||||
BK|sql-bench/Results-linux/create-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02377|d60ca06157cfc9b9
|
||||
BK|sql-bench/Results-linux/create-interbase-Linux_2.2.14_5.0_i686|19700101030959|02355|537da98f6c1bc6df
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02356|612a182b889dd778
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02357|b501391eec112dd0
|
||||
BK|sql-bench/Results-linux/create-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02378|35bd48cfe30c16a3
|
||||
BK|sql-bench/Results-linux/insert-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02379|25161ee7c13036c1
|
||||
BK|sql-bench/Results-linux/insert-interbase-Linux_2.2.14_5.0_i686|19700101030959|02358|461a48df25628c0f
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02363|3260743076dbe95f
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02364|9de5538694cd87ea
|
||||
BK|sql-bench/Results-linux/insert-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02380|7451b789c29b7dcd
|
||||
BK|sql-bench/Results-linux/select-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02439|816ec12a9152b578
|
||||
BK|sql-bench/Results-linux/select-interbase-Linux_2.2.14_5.0_i686|19700101030959|02359|3535cd00c2a9cb5d
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02369|de288cd8c11e1749
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02370|a82e759dbd5d66b
|
||||
BK|sql-bench/Results-linux/select-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02440|862a7c0ef1b17f29
|
||||
BK|sql-bench/Results-linux/wisconsin-interbase-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02441|cb767c1f9abc2ebd
|
||||
BK|sql-bench/Results-linux/wisconsin-interbase-Linux_2.2.14_5.0_i686|19700101030959|02360|9404247a2e483b34
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.0.33_i586-cmp-access,mysql|19700101030959|02375|8669562660b2c238
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.0.33_i586-cmp-ms-sql,mysql,sybase|19700101030959|02376|c7cbe3b167655f9c
|
||||
BK|sql-bench/Results-linux/wisconsin-mysql-Linux_2.2.14_5.0_i686-cmp-interbase,mysql|19700101030959|02442|74b238eca114dbbe
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/ATIS-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|34755|45d7837423db243f
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/ATIS-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|37262|2274651e29d38b07
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/RUN-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|39831|a6ef8229d40b75d1
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/RUN-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|42374|65ccbcd7b1c4d7b5
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/alter-table-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|44909|de84e4a2fd07f53
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/alter-table-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|47422|ee162dd1474ba9d8
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/big-tables-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|49948|d11a751a268a4df3
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/big-tables-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|52469|c13eca5ec25cd6e1
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/connect-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|54998|dfaa50e67eb15556
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/connect-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|57532|4015a2bef627d8cd
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/create-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|60103|fa19b9a2c7a3c3c
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/create-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|62710|21ec8ba1ea3ca4c4
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/insert-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|65289|a02aceb3b30de493
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/insert-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|02393|7c9baa774fc324e1
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/select-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|05001|da73eefa16ca9383
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/select-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|07610|cffd7d282a90113a
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/wisconsin-mysql_dbug-Linux_2.2.14_my_SMP_i686|20001218140918|10615|8dcd7271a9137341
|
||||
monty@donna.mysql.com|sql-bench/Results-linux/wisconsin-mysql_dbug_full-Linux_2.2.14_my_SMP_i686|20001218140918|13213|4398328883aa75da
|
||||
mwagner@evoq.home.mwagner.org|mysql-test/chew_on_this/select.res|20001014084759|41327|1295456b9394876
|
||||
|
@ -4,6 +4,7 @@ Administrator@fred.
|
||||
Miguel@light.local
|
||||
Sinisa@sinisa.nasamreza.org
|
||||
ahlentz@co3064164-a.rochd1.qld.optusnet.com.au
|
||||
akishkin@work.mysql.com
|
||||
arjen@co3064164-a.bitbike.com
|
||||
arjen@fred.bitbike.com
|
||||
arjen@george.bitbike.com
|
||||
@ -12,9 +13,12 @@ bell@sanja.is.com.ua
|
||||
davida@isil.mysql.com
|
||||
heikki@donna.mysql.fi
|
||||
heikki@hundin.mysql.fi
|
||||
jani@dsl-jkl1657.dial.inet.fi
|
||||
jani@hynda.(none)
|
||||
jani@hynda.mysql.fi
|
||||
jani@janikt.pp.saunalahti.fi
|
||||
jani@rhols221.adsl.netsonic.fi
|
||||
jani@rhols221.arenanet.fi
|
||||
jcole@abel.spaceapes.com
|
||||
jcole@main.burghcom.com
|
||||
jcole@mugatu.spaceapes.com
|
||||
@ -22,21 +26,29 @@ jcole@sarvik.tfr.cafe.ee
|
||||
jcole@tetra.spaceapes.com
|
||||
jorge@linux.jorge.mysql.com
|
||||
kaj@work.mysql.com
|
||||
lenz@kallisto.mysql.com
|
||||
lenz@mysql.com
|
||||
miguel@hegel.local
|
||||
miguel@light.local
|
||||
monty@bitch.mysql.fi
|
||||
monty@donna.mysql.fi
|
||||
monty@hundin.mysql.fi
|
||||
monty@narttu.
|
||||
monty@narttu.mysql.fi
|
||||
monty@tik.
|
||||
monty@tik.mysql.fi
|
||||
monty@tramp.mysql.fi
|
||||
monty@work.mysql.com
|
||||
mwagner@cash.mwagner.org
|
||||
mwagner@evoq.mwagner.org
|
||||
nick@nick.leippe.com
|
||||
paul@central.snake.net
|
||||
paul@teton.kitebird.com
|
||||
ram@gw.udmsearch.izhnet.ru
|
||||
root@x3.internalnet
|
||||
sasha@mysql.sashanet.com
|
||||
serg@serg.mysql.com
|
||||
serg@sergbook.mysql.com
|
||||
sinisa@rhols221.adsl.netsonic.fi
|
||||
tfr@sarvik.tfr.cafe.ee
|
||||
tim@bitch.mysql.fi
|
||||
@ -51,6 +63,6 @@ tonu@volk.internalnet
|
||||
tonu@x153.internalnet
|
||||
tonu@x3.internalnet
|
||||
venu@work.mysql.com
|
||||
worm@altair.is.lan
|
||||
zak@balfor.local
|
||||
zak@linux.local
|
||||
ram@gw.udmsearch.izhnet.ru
|
||||
|
@ -59,8 +59,9 @@ EOF
|
||||
|
||||
#++
|
||||
# docs-commit@ mail
|
||||
# Picks up anything under the Docs subdirectory (relevant for docs team).
|
||||
#--
|
||||
bk changes -v -r+ | grep -q Docs/manual.texi
|
||||
bk changes -v -r+ | grep -q " Docs/"
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "Notifying docs list at $DOCS"
|
||||
|
@ -1,9 +1,17 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -e -x
|
||||
OTHER_LIBC_DIR=/usr/local/mysql-glibc
|
||||
|
||||
BUILD/compile-pentium-max --with-other-libc=$OTHER_LIBC_DIR \
|
||||
# Only use the "--with-other-libc" parameter, if another libc actually
|
||||
# exists, since this will also force static linking, which does not work
|
||||
# together with OpenSSL
|
||||
OTHER_LIBC_DIR=/usr/local/mysql-glibc
|
||||
OTHER_LIBC=""
|
||||
if [ -d OTHER_LIBC_DIR ] ; then
|
||||
OTHER_LIBC="--with-other-libc=$OTHER_LIBC_DIR"
|
||||
fi
|
||||
|
||||
BUILD/compile-pentium-max $OTHER_LIBC \
|
||||
--with-comment="Official MySQL Binary" \
|
||||
--prefix=/usr/local/mysql --with-extra-charset=complex \
|
||||
--enable-thread-safe-client --enable-local-infile \
|
||||
|
@ -13,8 +13,8 @@ NEW="mysql-$VER.tar.gz"
|
||||
OLD="mysql-$PVER.tar.gz"
|
||||
RESULT="mysql-$PVER-$VER.patch.gz"
|
||||
PATCH_DIR=/my/web/Downloads-live/Patches
|
||||
RESULT_DIR=/my/web/Downloads-live/MySQL-3.23
|
||||
RESULT_DIR_MAX=/my/web/Downloads-live/MySQL-Max-3.23
|
||||
RESULT_DIR=/my/web/Downloads-live/MySQL-4.0
|
||||
RESULT_DIR_MAX=/my/web/Downloads-live/MySQL-Max-4.0
|
||||
|
||||
if test ! -f $NEWDIR/$NEW
|
||||
then
|
||||
|
@ -159,10 +159,14 @@ cat > $logdir/$TMP_SCRIPT_MYSQL <<END
|
||||
set -x
|
||||
|
||||
# Check environment
|
||||
export MYSQL_BUILD_PATH="/usr/local/bin:/my/gnu/bin:/usr/bin:/bin"
|
||||
export MYSQL_BUILD_CFLAGS="-O6 -fno-omit-frame-pointer -mcpu=pentiumpro"
|
||||
#export MYSQL_BUILD_PATH="/usr/local/bin:/my/gnu/bin:/usr/bin:/bin"
|
||||
#export MYSQL_BUILD_CFLAGS="-O6 -fno-omit-frame-pointer -mcpu=pentiumpro"
|
||||
#export MYSQL_BUILD_CXXFLAGS="-O6 -fno-omit-frame-pointer \
|
||||
# -felide-constructors -fno-exceptions -fno-rtti -mcpu=pentiumpro"
|
||||
export MYSQL_BUILD_PATH="/usr/bin:/bin"
|
||||
export MYSQL_BUILD_CFLAGS="-O6 -fno-omit-frame-pointer -mpentium"
|
||||
export MYSQL_BUILD_CXXFLAGS="-O6 -fno-omit-frame-pointer \
|
||||
-felide-constructors -fno-exceptions -fno-rtti -mcpu=pentiumpro"
|
||||
-felide-constructors -fno-exceptions -fno-rtti -mpentium"
|
||||
gcc -v
|
||||
|
||||
# Make RPM
|
||||
|
98
Docs/Flags/new-zealand.eps
Normal file
98
Docs/Flags/new-zealand.eps
Normal file
@ -0,0 +1,98 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%Creator: pnmtops
|
||||
%%Title: new-zealand.ps
|
||||
%%Pages: 1
|
||||
%%BoundingBox: 290 385 321 407
|
||||
%%EndComments
|
||||
/readstring {
|
||||
currentfile exch readhexstring pop
|
||||
} bind def
|
||||
/rpicstr 32 string def
|
||||
/gpicstr 32 string def
|
||||
/bpicstr 32 string def
|
||||
%%EndProlog
|
||||
%%Page: 1 1
|
||||
gsave
|
||||
290.64 385.44 translate
|
||||
30.72 21.12 scale
|
||||
32 22 8
|
||||
[ 32 0 0 -22 0 22 ]
|
||||
{ rpicstr readstring }
|
||||
{ gpicstr readstring }
|
||||
{ bpicstr readstring }
|
||||
true 3
|
||||
colorimage
|
||||
000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000ce770d08080874c6770808080c77ce0808080808080808
|
||||
0808080808080800003e58050000004d005000000005583e000000000000
|
||||
000000000000000000000042b4b6b5b5b5aa00abb5b5b5b6b442b5b5b5b5
|
||||
b5b5b5b5b5b5b5b5b5b5b50000aed2b433080874c677080833b4d2ae0808
|
||||
0808080808080808080808080800008a3d5e2b00004d005000002b5e3d8a
|
||||
0000000000000000000000000000000000bb3d81bfb5b5aa00abb5b5bf81
|
||||
3dbbb5b5b5b5b5b5b5b5b5b5b5b5b5b5b500000967d3ce770d74c6770c77
|
||||
ced36709080808080808083e230808080808080000015f733e58054d0050
|
||||
05583e735f0100000000000000341c0000000000000000b5cb7d42b4b6aa
|
||||
00abb6b4427dcbb5b5b5b5b5b5b5b5bfbcb5b5b5b5b5b50000080825aed2
|
||||
b49bc69db3d2ae25080808080808080a65a49a5a0808080808000000001e
|
||||
893d5e7400765d3d8a1e000000000000000253444c4d00000000000000b5
|
||||
b5bdbb3d81b300b4813dbbbdb5b5b5b5b5b5b5b6bf7285c3b5b5b5b5b500
|
||||
00d3d3d3d3d6d5d3c6d3d5d6d3d3d3d30808080808081ccfc01308080808
|
||||
0800004d4d4d4d4f4d4200424d4f4d4d4d4d00000000000015484a0b0000
|
||||
00000000004f4f4f4f4f4d4200424d4f4f4f4f4fb5b5b5b5b5b5ba4e5fb8
|
||||
b5b5b5b5b50000d6d6d6d6d6d6d3c6d3d6d6d6d6d6d60808080808082c59
|
||||
6b1808080808080000505050505050420042505050505050000000000000
|
||||
25475a1000000000000000505050505050420042505050505050b5b5b5b5
|
||||
b5b5bfbdc2b9b5b5b5b5b50000080825aed2b49bc69db4d2ae2508080808
|
||||
08080908080808080832080808000000001e8a3d5e7400775e3d8a1e0000
|
||||
00000000010000000000002c0000000000b5b5bdbb3d81b300b4813dbbbd
|
||||
b5b5b5b5b5b5b5b5b5b5b5b5b5c1b5b5b500000967d3ce770d74c6770c77
|
||||
ced36709080808086408080808183eb14528080000015f733e58054d0050
|
||||
05583e735f010000000058000000001138714021000000b5cb7d42b4b6aa
|
||||
00abb6b4427dcbb5b5b5b5b5c6b5b5b5b5b9c49bc6beb50000aed2b43308
|
||||
0874c677080833b4d2ae08083188c8821e08080a7ec8a6190800008a3d5e
|
||||
2b00004d005000002b5e3d8a00002b534b591700000252074912000000bb
|
||||
3d81bfb5b5aa00abb5b5bf813dbbb5b5c09f58abbbb5b5b6a70776bab500
|
||||
00ce770d08080874c6770808080c77ce08080882cd5f0808080861798a08
|
||||
0800003e58050000004d005000000005583e0000004b2649000000005249
|
||||
660000000042b4b6b5b5b5aa00abb5b5b5b6b442b5b5b59a26b9b5b5b5b5
|
||||
c2a1b3b5b50000080808080808080808080808080808080808622d540808
|
||||
080810081008080000000000000000000000000000000000000000552548
|
||||
0000000008000800000000b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5c4
|
||||
bec2b5b5b5b5b7b5b7b5b500000808080808080808080808080808080808
|
||||
080808080808080808080808080000000000000000000000000000000000
|
||||
0000000000000000000000000000000000b5b5b5b5b5b5b5b5b5b5b5b5b5
|
||||
b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b500000808080808080808080808
|
||||
080808080808080808080808080808080808080000000000000000000000
|
||||
0000000000000000000000000000000000000000000000b5b5b5b5b5b5b5
|
||||
b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b500000808080808
|
||||
080808080808080808080808080808080808080808080808080000000000
|
||||
0000000000000000000000000000000000000000000000000000000000b5
|
||||
b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b500
|
||||
00080808080808080808080808080808080808080808081c080808080808
|
||||
080000000000000000000000000000000000000000000000001400000000
|
||||
0000000000b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5bab5b5
|
||||
b5b5b5b5b500000808080808080808080808080808080808080808080886
|
||||
200808080808080000000000000000000000000000000000000000000000
|
||||
005f190000000000000000b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5
|
||||
b5b5b5adbcb5b5b5b5b5b500000808080808080808080808080808080808
|
||||
0808081196cdc94808080808080000000000000000000000000000000000
|
||||
00000000000a7728674100000000000000b5b5b5b5b5b5b5b5b5b5b5b5b5
|
||||
b5b5b5b5b5b5b5b8bc2978c5b5b5b5b5b500000808080808080808080808
|
||||
080808080808080808083dada00808080808080000000000000000000000
|
||||
0000000000000000000000003555670000000000000000b5b5b5b5b5b5b5
|
||||
b5b5b5b5b5b5b5b5b5b5b5b5b5b5c17e9fb5b5b5b5b5b500000808080808
|
||||
08080808080808080808080808080808240a250908080808080000000000
|
||||
0000000000000000000000000000000000001d021e0100000000000000b5
|
||||
b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5bdb5bdb5b5b5b5b5b500
|
||||
000808080808080808080808080808080808080808080808080808080808
|
||||
080000000000000000000000000000000000000000000000000000000000
|
||||
0000000000b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5
|
||||
b5b5b5b5b500000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000
|
||||
grestore
|
||||
showpage
|
||||
%%Trailer
|
BIN
Docs/Flags/new-zealand.gif
Normal file
BIN
Docs/Flags/new-zealand.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 661 B |
BIN
Docs/Flags/new-zealand.pdf
Normal file
BIN
Docs/Flags/new-zealand.pdf
Normal file
Binary file not shown.
0
Docs/Flags/new-zealand.txt
Normal file
0
Docs/Flags/new-zealand.txt
Normal file
279
Docs/ManualStyleGuidelines.wiki
Normal file
279
Docs/ManualStyleGuidelines.wiki
Normal file
@ -0,0 +1,279 @@
|
||||
OriginalAuthor: PaulDuBois
|
||||
|
||||
!!! ManualStyleGuidelines
|
||||
|
||||
''Version 1.0''
|
||||
|
||||
!! Revision History
|
||||
|
||||
* 2002-05-17 ArjenLentz - Version 1.0, Posted to Wiki
|
||||
|
||||
!! MySQL Manual Style Guidelines
|
||||
|
||||
Paul DuBois <paul@snake.net>
|
||||
|
||||
The following list of guidelines contains items that I've been jotting
|
||||
down over time as style questions have come up in relation to the
|
||||
MySQL manual. I wouldn't say they're exactly "official", but they
|
||||
do reflect current working practice. Arjen asked me to post this
|
||||
on the list some time ago so that it can be discussed with a view
|
||||
to adding it (or something like it) to the source tree. So here it is!
|
||||
|
||||
Present in the mysql-4.0 source tree: Docs/ManualStyleGuidelines.wiki
|
||||
|
||||
|
||||
The manual is written in UK English, not American English. This means:
|
||||
|
||||
colour, not color
|
||||
behaviour, not behavior
|
||||
authorise, not authorize
|
||||
optimise, not optimize
|
||||
etc.
|
||||
|
||||
Write MySQL, not @strong{MySQL} (the manual used to use the latter, but no
|
||||
more).
|
||||
|
||||
Write Unix, not UNIX.
|
||||
|
||||
Use uppercase for SQL keywords, functions names, etc., when writing
|
||||
SQL statement examples.
|
||||
|
||||
To write a list of items, add commas after all items preceding the last one:
|
||||
Correct: Features, products, and services
|
||||
Incorrect: Features, products and services
|
||||
|
||||
How to pluralize keywords that are enclosed in @code:
|
||||
Correct: @code{SELECT}s
|
||||
Incorrect: @code{SELECTs} or @code{SELECT}'s or @code{SELECT}:s
|
||||
|
||||
Use "its" and "it's" correctly. These words are exceptions to
|
||||
the normal use of "'s" to indicate possession:
|
||||
|
||||
it's = it is (e.g., "one of the strengths of MySQL is that it's fast")
|
||||
its = possession (e.g., "MySQL is fast, which is one of its strengths")
|
||||
|
||||
"a lot" is two words. "alot" is rebarbative.
|
||||
|
||||
Write lowercase, not lower case
|
||||
|
||||
Write uppercase, not upper case
|
||||
|
||||
Write lettercase, not letter case
|
||||
|
||||
Write "web site" (two words), not "website", and "web page" rather
|
||||
than "webpage".
|
||||
|
||||
The word "data" is problematic. It's commonly used both in plural and in
|
||||
singular form. The manual uses it as plural, which means you use "data are"
|
||||
rather than "data is". It's unfortunate that no matter which form we use, it
|
||||
will look incorrect to some people. But we can at least be internally
|
||||
consistent.
|
||||
(Paul: I think that the O'Reilly proofread might have caught one or two of these; could you please pick up on these but don't change them back straight away until the book is finished? Thanks; Arjen).
|
||||
|
||||
Write "press Enter", not "hit Return" or "hit Enter".
|
||||
|
||||
When reproducing program output, reproduce it exactly, even if it contains
|
||||
typos. Don't "fix" it. (If the output is produced by a MySQL program, then
|
||||
fix the source for the program to write the output correctly without the
|
||||
typo, then update the manual to match.)
|
||||
|
||||
Use "okay" rather than "ok" or "Ok" or "OK" in sentences. Exceptions:
|
||||
* When describing instructions for a GUI with buttons that say "OK", then use "OK". That is, use the label that the GUI uses.
|
||||
* When showing the output from a program, show the output exactly; don't change "ok" to "okay", etc.
|
||||
|
||||
Write "Open Source" (inside @code{}), not "open source".
|
||||
|
||||
To put something in quotes, do it ``like this,'' not "like this"
|
||||
or 'like this.' In the latter two cases, the quotes will come
|
||||
out looking rotten in printed formats.
|
||||
Exception: quotes in code examples should be written using whatever
|
||||
contention the program language requires.
|
||||
|
||||
Table types should be written using @code{}; write @code{MyISAM}, not
|
||||
MyISAM.
|
||||
|
||||
When possible, use table names that are singular, not plural.
|
||||
For example, use "item" rather than "items", or "person" rather than
|
||||
"people". Sometimes you can add "_list" (as in "item_list") to make it
|
||||
more clear that the name refers to a collection of items.
|
||||
|
||||
Some commonly occurring misspelling:
|
||||
|
||||
Correct Incorrect
|
||||
---------------------------
|
||||
publicly publically
|
||||
statically staticly
|
||||
dynamically dynamicly
|
||||
automatically automaticly
|
||||
|
||||
There is no hyphen after "ly" words. Write statically linked, not
|
||||
statically-linked.
|
||||
|
||||
To refer to ASCII codes, use ASCII n, not ASCII(n), unless you're
|
||||
referring to the ASCII() function, which case you use @code{ASCII()}.
|
||||
|
||||
ASCII 13 indicates ASCII character code 13
|
||||
@code{ASCII(13)} indicates a function call
|
||||
|
||||
backup is a noun or adjective (as in "a backup file"), back up is a verb
|
||||
(as in "to back up a database")
|
||||
rollback is a noun or adjective (as in "a rollback operation"), roll back
|
||||
is a verb (as in "roll back a transaction")
|
||||
|
||||
core dump is a noun or a verb (as in "a core dump file" or "a program
|
||||
core dumps when it fails"). In the latter case, however, it's better say
|
||||
say "a program dumps core when it fails").
|
||||
|
||||
Write character set names in @code{}, e.g., @code{latin1}, @code{win1251}.
|
||||
|
||||
To prevent problems with various output formats, there should be no link
|
||||
titles in a @uref{}. So @uref{url} is allowed, @uref{url,blabla} is not.
|
||||
Use this format:
|
||||
@uref{url} (WWW)
|
||||
Not this format:
|
||||
@uref{url, WWW}
|
||||
Similarly for FTP sites.
|
||||
|
||||
URLs ending in a domain name or directory should have a "/" at the end.
|
||||
(For example, the URLs for all mirror sites should be written that way.)
|
||||
|
||||
Privilege names are written using @strong and lowercase, as in "the
|
||||
@strong{process} privilege". Column names in the grant tables are
|
||||
written using @code and the lettercase found in the table definition,
|
||||
as in "the @code{Process_priv} column".
|
||||
|
||||
Write "e-mail", not "email". Exceptions are the @email{} construct, and
|
||||
the Email attribute name in X509 certificate strings.
|
||||
|
||||
Write thread-safe, transaction-safe, replication-safe, not thread safe,
|
||||
transaction safe, replication safe.
|
||||
|
||||
Write wildcard, not wild card or wild-card.
|
||||
|
||||
Use "indexes", not "indices": Adding indexes to a table will improve the
|
||||
performance of SELECT statements.
|
||||
Exception: when returning to array elements, use "indices": The elements
|
||||
of the array may be accessed using numeric indices, where the index
|
||||
values ranges from 0 to n.
|
||||
|
||||
Write "heavy-load production systems" (used as an adjective),
|
||||
but "...used under heavy load" (used on its own).
|
||||
|
||||
Write PostScript, not Postscript.
|
||||
|
||||
When writing a list like "A, B, and C", include a comma before the last and.
|
||||
|
||||
Write case-sensitive and case-insensitive (hyphenated).
|
||||
|
||||
Write runtime, not run time.
|
||||
|
||||
Write backward-compatible, not backward compatible or backwards compatible.
|
||||
|
||||
Write application-related, not application related.
|
||||
|
||||
Write filesystem, not file system.
|
||||
|
||||
Write file-size, not file size.
|
||||
|
||||
Write datafile, not data file.
|
||||
|
||||
Write power-start, not power start.
|
||||
|
||||
Write percent, not per cent.
|
||||
|
||||
Write "toward", "and onward", not "towards", "onwards".
|
||||
|
||||
Write third-party, not third party.
|
||||
|
||||
Write turnkey, not turn-key.
|
||||
|
||||
Write "the Net" (capitalised) if referring to the Internet in that way.
|
||||
|
||||
Write long-awaited, not long awaited.
|
||||
|
||||
Write natural-language, not natural language.
|
||||
|
||||
Write low-volume <something> (when used as an adjective).
|
||||
|
||||
Write platform-dependent, not platform dependent.
|
||||
|
||||
Write something like "mentioned previously" instead of "above", and "later in this section" instead of "below" when making such relative references in your text.
|
||||
|
||||
Write "... shown here", not "... shown below".
|
||||
|
||||
Write "following some", not "something [shown] below".
|
||||
|
||||
Write high-priority <something> (when used as an adjective), not high priority.
|
||||
|
||||
Write "whether", not "whether or not".
|
||||
|
||||
Write hand-held, not hand held.
|
||||
|
||||
Write rewriting, not re-writing.
|
||||
|
||||
Write re-issue(ing), not reissue(ing).
|
||||
|
||||
Write command-line, not command line.
|
||||
|
||||
Write server-side, not server side.
|
||||
|
||||
Write "<blabla> only", not "only <blabla>".
|
||||
|
||||
Write floating-point, not floating point.
|
||||
|
||||
Write heavy-duty, not heavy duty.
|
||||
|
||||
Write online, not on-line.
|
||||
|
||||
Write user-defined, not user defined.
|
||||
|
||||
Write multi-user, not multi user.
|
||||
|
||||
Write multi-thread(ed), not multithread(ed).
|
||||
|
||||
Write memory-based, not memory based.
|
||||
|
||||
Write long-time <something> (when used as an adjective), not long time.
|
||||
|
||||
Write 32-bit, not 32 bit or 32 bits. (Same goes for 64-bit, of course! ;-)
|
||||
|
||||
Write "different from [what] ...", not "different than ...".
|
||||
|
||||
Write "@-e.g., " instead of " e.g. " in the middle of a sentence. (The @- will be turned into a dash, or — for DocBook output.)
|
||||
Following "e.g." by a comma, not a space or a colon.
|
||||
|
||||
Write "@-" if you need to put a dash in a text, no surrounding spaces.
|
||||
|
||||
Similar story for "for example" as for "e.g."
|
||||
|
||||
Write CPU, not cpu (it's an acronym, not a word! ;-)
|
||||
|
||||
Write "... uses ... CPU time", not "... uses ... CPU" (unless you're referring the processor itself.)
|
||||
|
||||
If a (comment) is at the end of a sentence, start the comment with lowercase and put the . after the closing ), such as (like this).
|
||||
If a comment is separate, start with uppercase and put the . inside the closing ). (Like this.)
|
||||
|
||||
Write "something cannot do something", not "something can not something".
|
||||
|
||||
Write "otherwise, ..." (with the comma) at the start of a sentence.
|
||||
|
||||
Paul, could you please check "honoring"... is this proper British English? Thanks, Arjen.
|
||||
|
||||
Write "byte-swapping", not "byte swapping".
|
||||
|
||||
Write "Note:", not "NOTE:". And then continue with lowercase, it is not the start of a new sentence.
|
||||
|
||||
Write "single-CPU" and "multiple-CPU", not "single CPU" and "multiple CPU".
|
||||
|
||||
Paul, I think we should also decide whether to write Version or version, and in what situation. I am not changing much now because there's lots of funny instances and I don't want to risk getting it wrong. Thanks, Arjen.
|
||||
|
||||
After a semicolon, don't use uppercase. It is NOT the start of a new sentence!
|
||||
|
||||
It's "unstable", not "instable". ;-)
|
||||
|
||||
It's "full-text", not "fulltext".
|
||||
|
||||
Logical NOT/OR/AND are operators, not functions, so they take operands, not arguments.
|
||||
|
||||
It's NetWare, not Netware (as per Novell's trademark guidelines).
|
||||
|
@ -8,10 +8,10 @@
|
||||
|
||||
use strict;
|
||||
|
||||
my $table_width = 12.75; # cm
|
||||
my $gutter_width = 0.09; # cm
|
||||
my $table_width = 12.75; # Specify the max width of the table in cm
|
||||
my $gutter_width = 0.55; # Specify the width of the gutters in cm
|
||||
|
||||
my $str = join '', <>;
|
||||
my $str = join '', <>; # Push stdin (or file)
|
||||
|
||||
$str =~ s{([\t ]*(<colspec colwidth=\".+?\" />\s*)+)}
|
||||
{&rel2abs($1)}ges;
|
||||
@ -28,12 +28,17 @@ sub msg {
|
||||
}
|
||||
|
||||
sub rel2abs {
|
||||
my $str = shift;
|
||||
my $colnum = 1;
|
||||
my $str = shift;
|
||||
my $colnum = 1;
|
||||
|
||||
my @widths = ();
|
||||
my $total = 0;
|
||||
my $output = '';
|
||||
my @widths = ();
|
||||
my $total = 0;
|
||||
my $output = '';
|
||||
|
||||
my $gutters;
|
||||
my $content_width;
|
||||
my $total_width;
|
||||
my @num_cache;
|
||||
|
||||
$str =~ /^(\s+)/;
|
||||
my $ws = $1;
|
||||
@ -43,12 +48,31 @@ sub rel2abs {
|
||||
push @widths, $1;
|
||||
}
|
||||
|
||||
my $unit = ($table_width - ($#widths * $gutter_width)) / ($total);
|
||||
msg("!!! WARNING: Total Percent > 100%: $total%") if $total > 100;
|
||||
|
||||
if (! $total) {
|
||||
die 'Something bad has happened - the script believes that there are no columns';
|
||||
}
|
||||
|
||||
$gutters = $#widths * $gutter_width;
|
||||
$content_width = $table_width - $gutters;
|
||||
# Don't forget that $#... is the last offset not the count
|
||||
|
||||
foreach (@widths) {
|
||||
$output .= $ws . '<colspec colnum="'. $colnum .'" colwidth="'. sprintf ("%0.2f", $_ * $unit) .'cm" />' . "\n";
|
||||
my $temp = sprintf ("%0.2f", $_/100 * $content_width);
|
||||
$total_width += $temp;
|
||||
|
||||
if ($total_width > $content_width) {
|
||||
$temp -= $total_width - $content_width;
|
||||
msg("!!! WARNING: Column width reduced from " .
|
||||
($temp + ($total_width - $content_width)) . " to $temp !!!");
|
||||
$total_width -= $total_width - $content_width;
|
||||
}
|
||||
|
||||
$output .= $ws . '<colspec colnum="'. $colnum .'" colwidth="'. $temp .'cm" />' . "\n";
|
||||
++$colnum;
|
||||
push @num_cache, $temp;
|
||||
}
|
||||
|
||||
|
||||
return $output . "\n$ws";
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Fix the output of `makeinfo --docbook` version 4.0c
|
||||
# Convert the broken docbook output to well-formed XML that conforms to the O'Reilly idiom
|
||||
# See code for detailed comments
|
||||
# Authors: Arjen Lentz and Zak Greant
|
||||
# Authors: Arjen Lentz and Zak Greant (original code by Jeremy Cole)
|
||||
|
||||
use strict;
|
||||
|
||||
@ -13,7 +13,7 @@ my $apx = '';
|
||||
my @nodes = ();
|
||||
my $nodes = '';
|
||||
|
||||
msg ("\n-- Post-processing `makeinfo --docbook` output --");
|
||||
msg ("-- Post-processing `makeinfo --docbook` output --");
|
||||
msg ("** Written to work with makeinfo version 4.0c **\n");
|
||||
|
||||
msg ("Discarding DTD - not required by subsequent scripts");
|
||||
@ -31,6 +31,26 @@ msg ("Add missing <bookinfo> and <abstract> opening tags");
|
||||
# ...as soon as we find the first instance, we can stop looking.
|
||||
$data =~ s/<book lang="en">/<book lang="en"><bookinfo><abstract>/;
|
||||
|
||||
|
||||
# arjen 2002-05-01
|
||||
msg ("Processing docbook-prefix special strings");
|
||||
$data =~ s/FIXUPmdashFIXUP/\&mdash\;/g;
|
||||
|
||||
$data =~ s/FIXUPdoubledashFIXUP/--/g;
|
||||
|
||||
$data =~ s/FIXUPstrongFIXUP/<emphasis\ role\=bold>/g;
|
||||
$data =~ s/FIXUPendstrongFIXUP/<\/emphasis>/g;
|
||||
|
||||
$data =~ s/FIXUPemphFIXUP/<emphasis>/g;
|
||||
$data =~ s/FIXUPendemphFIXUP/<\/emphasis>/g;
|
||||
|
||||
$data =~ s/FIXUPfileFIXUP/<filename>/g;
|
||||
$data =~ s/FIXUPendfileFIXUP/<\/filename>/g;
|
||||
|
||||
$data =~ s/FIXUPsampFIXUP/<literal>/g;
|
||||
$data =~ s/FIXUPendsampFIXUP/<\/literal>/g;
|
||||
|
||||
|
||||
msg ("Removing mailto: from email addresses...");
|
||||
$data =~ s/mailto://g;
|
||||
|
||||
@ -38,9 +58,19 @@ msg ("Removing INFORMALFIGURE...");
|
||||
$data =~ s{<informalfigure>.+?</informalfigure>}
|
||||
{}gs;
|
||||
|
||||
msg ("Convert ampersands to XML escape sequences ");
|
||||
msg ("Convert ampersand to XML escape sequence...");
|
||||
$data =~ s/&(?!\w+;)/&/g;
|
||||
|
||||
|
||||
# arjen 2002-05-01
|
||||
msg ("Changing (TM) to XML escape sequence...");
|
||||
$data =~ s/MySQL \(TM\)/MySQL™/g;
|
||||
$data =~ s{<command>TM</command>}
|
||||
{™}g;
|
||||
|
||||
# arjen 2002-05-01
|
||||
msg ("Changing ' -- ' to XML escape sequence...");
|
||||
$data =~ s/ -- /—/g;
|
||||
|
||||
msg ("Changing @@ to @...");
|
||||
$data =~ s/@@/@/g;
|
||||
|
||||
@ -68,6 +98,11 @@ msg ("Adding closing / to XREF and COLSPEC tags...");
|
||||
$data =~ s{<(xref|colspec) (.+?)>}
|
||||
{<$1 $2 />}gs;
|
||||
|
||||
# arjen 2002-04-26
|
||||
msg ("Removing separate target titles from LINKs and make them XREFs...");
|
||||
$data =~ s{<link (linkend=.+?)>.+?</link>}
|
||||
{<xref $1 />}gs;
|
||||
|
||||
# Probably need to strip these
|
||||
msg ('Adding "See " to XREFs that used to be @xref...');
|
||||
$data =~ s{([.'!)])\s*<xref }
|
||||
@ -137,7 +172,7 @@ exit;
|
||||
#
|
||||
|
||||
sub msg {
|
||||
print STDERR shift, "\n";
|
||||
print STDERR "docbook-fixup:", shift, "\n";
|
||||
}
|
||||
|
||||
sub strip_tag($$) {
|
||||
|
50
Docs/Support/docbook-prefix.pl
Executable file
50
Docs/Support/docbook-prefix.pl
Executable file
@ -0,0 +1,50 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
# Preprocess the input of `makeinfo --docbook` version 4.0c
|
||||
# Authors: Arjen Lentz and Zak Greant (started by arjen 2002-05-01)
|
||||
|
||||
use strict;
|
||||
|
||||
my $data = '';
|
||||
|
||||
msg ("-- Pre-processing `makeinfo --docbook` input --");
|
||||
msg ("** Written to work with makeinfo version 4.0c **\n");
|
||||
|
||||
# <> is a magic filehandle - either reading lines from stdin or from file(s) specified on the command line
|
||||
msg ("Get the data");
|
||||
$data = join "", <>;
|
||||
|
||||
msg ("Replacing '\@-' with FIXUPmdashFIXUP");
|
||||
$data =~ s/\@-/FIXUPmdashFIXUP/g;
|
||||
|
||||
msg ("Replacing '--' with FIXUPdoubledashFIXUP");
|
||||
$data =~ s/--/FIXUPdoubledashFIXUP/g;
|
||||
|
||||
msg ("Turning \@strong{} into LITERAL blocks");
|
||||
$data =~ s/\@strong\{(.*?)\}/FIXUPstrongFIXUP$1FIXUPendstrongFIXUP/gs;
|
||||
|
||||
msg ("Turning \@emph{} into LITERAL blocks");
|
||||
$data =~ s/\@emph\{(.*?)\}/FIXUPemphFIXUP$1FIXUPendemphFIXUP/gs;
|
||||
|
||||
msg ("Turning \@file{} into LITERAL blocks");
|
||||
$data =~ s/\@file\{(.*?)\}/FIXUPfileFIXUP$1FIXUPendfileFIXUP/gs;
|
||||
|
||||
msg ("Turning \@samp{} into LITERAL blocks");
|
||||
$data =~ s/\@samp\{\@\{\}/FIXUPsampFIXUP\@\{FIXUPendsampFIXUP/g;
|
||||
$data =~ s/\@samp\{\@\}\}/FIXUPsampFIXUP\@\}FIXUPendsampFIXUP/g;
|
||||
$data =~ s/\@samp\{\@\{n\@\}\}/FIXUPsampFIXUP\@\{n\@\}FIXUPendsampFIXUP/g;
|
||||
$data =~ s/\@samp\{(.*?)\}/FIXUPsampFIXUP$1FIXUPendsampFIXUP/gs;
|
||||
|
||||
|
||||
msg ("Write the data");
|
||||
print STDOUT $data;
|
||||
exit;
|
||||
|
||||
#
|
||||
# Definitions for helper sub-routines
|
||||
#
|
||||
|
||||
sub msg {
|
||||
print STDERR "docbook-prefix: ", shift, "\n";
|
||||
}
|
||||
|
@ -6,14 +6,19 @@
|
||||
#create include.texi with version/port #
|
||||
echo "@c This file is autogenerated by the Makefile" > include.texi
|
||||
echo -n "@set mysql_version " >> include.texi
|
||||
# grep "AM_INIT_AUTOMAKE(mysql, " ../configure.in | \
|
||||
# sed -e 's;AM_INIT_AUTOMAKE(mysql, ;;' -e 's;);;' >> include.texi
|
||||
# 2002-04-26 arjen - the below just picks #.# instead of #.#.#-alpha
|
||||
# (code by mwagner - tnx)
|
||||
grep "AM_INIT_AUTOMAKE(mysql, " ../configure.in | \
|
||||
sed -e 's;AM_INIT_AUTOMAKE(mysql, ;;' -e 's;);;' >> include.texi
|
||||
perl -p -e 's/AM_INIT_AUTOMAKE\(mysql,\s(\d+\.\d+)\..+/$1/' >> include.texi
|
||||
echo -n "@set default_port " >> include.texi
|
||||
grep "MYSQL_TCP_PORT_DEFAULT=" ../configure.in | \
|
||||
sed -e 's;MYSQL_TCP_PORT_DEFAULT=;;' >> include.texi
|
||||
|
||||
# produce DocBook XML
|
||||
makeinfo --force --no-ifinfo --docbook -o - manual.texi |\
|
||||
Support/docbook-prefix.pl < manual.texi |\
|
||||
makeinfo --force --no-ifinfo --docbook -o - |\
|
||||
Support/docbook-fixup.pl > mysql.xml
|
||||
|
||||
# See if the XML output is well-formed
|
||||
|
11
Docs/Support/trivial-makeinfo-4.0c.patch
Normal file
11
Docs/Support/trivial-makeinfo-4.0c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- alt-multi.c Sun Apr 14 10:03:19 2002
|
||||
+++ multi.c Tue May 22 20:52:33 2001
|
||||
@@ -287,7 +287,7 @@
|
||||
&& *params != '\n' && *params != '@')
|
||||
params++;
|
||||
setup_output_environment (i,
|
||||
- (int) ((columnfrac * 100.00) + 0.49));
|
||||
+ (int) (columnfrac * (fill_column - current_indent) + .5));
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,8 @@
|
||||
# Implemented in Perl by jeremy@mysql.com
|
||||
# 2001-11-20 Fixups by arjen@mysql.com, 2 keywords and 15 synonyms were missing
|
||||
# 2001-12-07 Fixup by arjen@mysql.com, add column headings for multitable.
|
||||
# 2002-05-01 Fixup by arjen@mysql.com, use 3 columns instead of 4.
|
||||
# 2002-05-03 Fixup by arjen@mysql.com, fill last row to full # of columns.
|
||||
|
||||
print STDERR "Scanning lex.h for symbols..\n";
|
||||
open LEX, "<../sql/lex.h";
|
||||
@ -27,11 +29,6 @@ while(($line = <YACC>) =~ /[\s|]+([A-Z_]+)/) {
|
||||
close YACC;
|
||||
|
||||
|
||||
$list = sprintf("\@c Reserved word list updated %s by %s.\n".
|
||||
"\@c To regenerate, use Support/update-reserved-words.pl.\n\n",
|
||||
&pretty_date, $ENV{USER});
|
||||
|
||||
|
||||
print STDERR "Copying reserved words to an array...\n";
|
||||
foreach(keys %words) { push @words, $words{$_}; };
|
||||
|
||||
@ -40,12 +37,16 @@ print STDERR "Sorting array...\n";
|
||||
|
||||
printf STDERR "There are %i reserved words.\n", scalar @words;
|
||||
|
||||
@pre = ("\@item", "\@tab", " \@tab", "\@tab");
|
||||
@post = ("", "\n", "", "\n");
|
||||
@pre = ("\@item", " \@tab", " \@tab");
|
||||
|
||||
$list = "";
|
||||
for($i=0; $word = shift(@words); $i++) {
|
||||
$list .= sprintf "%s %-30s %s", $pre[$i%4], "\@code\{$word\}", $post[$i%4];
|
||||
}; $list .= "\n";
|
||||
$list .= sprintf "%s %s\n", $pre[$i%3], "\@code\{$word\}";
|
||||
}
|
||||
# Fill last row to full # of columns.
|
||||
for( ; $i%3; $i++) {
|
||||
$list .= sprintf "%s\n", $pre[$i%3];
|
||||
}
|
||||
|
||||
open OLD, "<manual.texi";
|
||||
open NEW, ">manual-tmp.texi";
|
||||
@ -53,9 +54,14 @@ open NEW, ">manual-tmp.texi";
|
||||
print STDERR "Copying beginning of manual.texi...\n";
|
||||
while(($line = <OLD>) !~ /START_OF_RESERVED_WORDS/) { print NEW $line; };
|
||||
print NEW "\@c START_OF_RESERVED_WORDS\n\n";
|
||||
printf NEW "\@c Reserved word list updated %s by %s.\n".
|
||||
"\@c To regenerate, use Support/update-reserved-words.pl.\n\n",
|
||||
&pretty_date, $ENV{USER};
|
||||
|
||||
print STDERR "Inserting list of reserved words...\n";
|
||||
print NEW "\@multitable \@columnfractions .25 .25 .25 .25\n";
|
||||
print NEW "\@item \@strong{Word} \@tab \@strong{Word} \@tab \@strong{Word} \@tab \@strong{Word}\n";
|
||||
# Ensure the fractions add up to 100% otherwise it looks funny in print:
|
||||
print NEW "\@multitable \@columnfractions .33 .33 .34\n";
|
||||
print NEW "\@item \@strong{Word}\n \@tab \@strong{Word}\n \@tab \@strong{Word}\n";
|
||||
print NEW $list;
|
||||
print NEW "\@end multitable\n";
|
||||
print STDERR "Skipping over old list...\n";
|
||||
|
@ -1,73 +1,137 @@
|
||||
diff -Nur --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet ../glibc-2.2.5/linuxthreads/internals.h ./linuxthreads/internals.h
|
||||
--- ../glibc-2.2.5/linuxthreads/internals.h Thu Nov 29 00:44:16 2001
|
||||
+++ ./linuxthreads/internals.h Fri Feb 22 21:18:09 2002
|
||||
@@ -343,7 +343,7 @@
|
||||
THREAD_SELF implementation is used, this must be a power of two and
|
||||
a multiple of PAGE_SIZE. */
|
||||
#ifndef STACK_SIZE
|
||||
-#define STACK_SIZE (2 * 1024 * 1024)
|
||||
+#define STACK_SIZE (128 * 1024)
|
||||
#endif
|
||||
|
||||
/* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */
|
||||
diff -Nur --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet ../glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h ./linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h
|
||||
--- ../glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h Thu Jun 8 13:49:49 2000
|
||||
+++ ./linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h Fri Feb 22 21:18:09 2002
|
||||
@@ -64,7 +64,7 @@
|
||||
/* The number of threads per process. */
|
||||
#define _POSIX_THREAD_THREADS_MAX 64
|
||||
/* This is the value this implementation supports. */
|
||||
-#define PTHREAD_THREADS_MAX 1024
|
||||
+#define PTHREAD_THREADS_MAX 4096
|
||||
|
||||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
||||
priority level. */
|
||||
diff -Nur --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet ../glibc-2.2.5/nss/nsswitch.c ./nss/nsswitch.c
|
||||
--- ../glibc-2.2.5/nss/nsswitch.c Tue Jul 17 02:21:36 2001
|
||||
+++ ./nss/nsswitch.c Fri Feb 22 21:18:09 2002
|
||||
@@ -515,8 +515,16 @@
|
||||
+ (line - name + 1));
|
||||
if (new_service == NULL)
|
||||
return result;
|
||||
-
|
||||
+#ifdef DO_STATIC_NSS
|
||||
+ if (strncmp(name,"files",5) == 0 ||
|
||||
+ strncmp(name,"dns",3) == 0)
|
||||
+#endif
|
||||
*((char *) __mempcpy (new_service->name, name, line - name)) = '\0';
|
||||
+#ifdef DO_STATIC_NSS
|
||||
+ else
|
||||
+ *((char *) __mempcpy (new_service->name, "files", 5)) = '\0';
|
||||
+#endif
|
||||
+
|
||||
|
||||
/* Set default actions. */
|
||||
new_service->actions[2 + NSS_STATUS_TRYAGAIN] = NSS_ACTION_CONTINUE;
|
||||
diff -Nur --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet ../glibc-2.2.5/time/Makefile ./time/Makefile
|
||||
--- ../glibc-2.2.5/time/Makefile Fri Feb 22 21:27:19 2002
|
||||
+++ ./time/Makefile Fri Feb 22 21:26:47 2002
|
||||
@@ -37,8 +37,8 @@
|
||||
|
||||
include ../Rules
|
||||
|
||||
-tz-cflags = -DTZDIR='"$(zonedir)"' \
|
||||
- -DTZDEFAULT='"$(localtime-file)"' \
|
||||
+tz-cflags = -DTZDIR='"/usr/share/zoneinfo/"' \
|
||||
+ -DTZDEFAULT='"/etc/localtime"' \
|
||||
-DTZDEFRULES='"$(posixrules-file)"'
|
||||
|
||||
CFLAGS-tzfile.c = $(tz-cflags)
|
||||
diff -Nur --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet ../glibc-2.2.5/timezone/Makefile ./timezone/Makefile
|
||||
--- ../glibc-2.2.5/timezone/Makefile Wed Aug 29 16:45:25 2001
|
||||
+++ ./timezone/Makefile Fri Feb 22 21:18:09 2002
|
||||
@@ -159,8 +159,8 @@
|
||||
|
||||
$(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
|
||||
|
||||
-tz-cflags = -DTZDIR='"$(zonedir)"' \
|
||||
- -DTZDEFAULT='"$(localtime-file)"' \
|
||||
+tz-cflags = -DTZDIR='"/usr/share/zoneinfo/"' \
|
||||
+ -DTZDEFAULT='"/etc/localtime"' \
|
||||
-DTZDEFRULES='"$(posixrules-file)"' \
|
||||
-DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone
|
||||
|
||||
diff -r -c --exclude='*.info*' glibc-2.2.5.org/linuxthreads/internals.h glibc-2.2.5/linuxthreads/internals.h
|
||||
*** glibc-2.2.5.org/linuxthreads/internals.h Thu Nov 29 08:44:16 2001
|
||||
--- glibc-2.2.5/linuxthreads/internals.h Tue May 21 10:51:53 2002
|
||||
***************
|
||||
*** 343,349 ****
|
||||
THREAD_SELF implementation is used, this must be a power of two and
|
||||
a multiple of PAGE_SIZE. */
|
||||
#ifndef STACK_SIZE
|
||||
! #define STACK_SIZE (2 * 1024 * 1024)
|
||||
#endif
|
||||
|
||||
/* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */
|
||||
--- 343,349 ----
|
||||
THREAD_SELF implementation is used, this must be a power of two and
|
||||
a multiple of PAGE_SIZE. */
|
||||
#ifndef STACK_SIZE
|
||||
! #define STACK_SIZE (128 * 1024)
|
||||
#endif
|
||||
|
||||
/* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */
|
||||
diff -r -c --exclude='*.info*' glibc-2.2.5.org/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h
|
||||
*** glibc-2.2.5.org/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h Thu Jun 8 21:49:49 2000
|
||||
--- glibc-2.2.5/linuxthreads/sysdeps/unix/sysv/linux/bits/local_lim.h Tue May 21 10:52:58 2002
|
||||
***************
|
||||
*** 64,70 ****
|
||||
/* The number of threads per process. */
|
||||
#define _POSIX_THREAD_THREADS_MAX 64
|
||||
/* This is the value this implementation supports. */
|
||||
! #define PTHREAD_THREADS_MAX 1024
|
||||
|
||||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
||||
priority level. */
|
||||
--- 64,70 ----
|
||||
/* The number of threads per process. */
|
||||
#define _POSIX_THREAD_THREADS_MAX 64
|
||||
/* This is the value this implementation supports. */
|
||||
! #define PTHREAD_THREADS_MAX 4096
|
||||
|
||||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
||||
priority level. */
|
||||
diff -r -c --exclude='*.info*' glibc-2.2.5.org/nss/nsswitch.c glibc-2.2.5/nss/nsswitch.c
|
||||
*** glibc-2.2.5.org/nss/nsswitch.c Tue Jul 17 10:21:36 2001
|
||||
--- glibc-2.2.5/nss/nsswitch.c Tue May 21 10:59:55 2002
|
||||
***************
|
||||
*** 496,501 ****
|
||||
--- 496,502 ----
|
||||
{
|
||||
service_user *new_service;
|
||||
const char *name;
|
||||
+ int name_alloc_len;
|
||||
|
||||
while (isspace (line[0]))
|
||||
++line;
|
||||
***************
|
||||
*** 510,522 ****
|
||||
if (name == line)
|
||||
return result;
|
||||
|
||||
|
||||
new_service = (service_user *) malloc (sizeof (service_user)
|
||||
! + (line - name + 1));
|
||||
if (new_service == NULL)
|
||||
return result;
|
||||
|
||||
! *((char *) __mempcpy (new_service->name, name, line - name)) = '\0';
|
||||
|
||||
/* Set default actions. */
|
||||
new_service->actions[2 + NSS_STATUS_TRYAGAIN] = NSS_ACTION_CONTINUE;
|
||||
--- 511,534 ----
|
||||
if (name == line)
|
||||
return result;
|
||||
|
||||
+ name_alloc_len = line - name + 1;
|
||||
+
|
||||
+ #ifdef DO_STATIC_NSS
|
||||
+ if (!((name_alloc_len == 6 && strncmp(name,"files",5) == 0) ||
|
||||
+ (name_alloc_len == 4 && strncmp(name,"dns",3) == 0)))
|
||||
+ {
|
||||
+ name = (char*) "files";
|
||||
+ name_alloc_len = 6;
|
||||
+ }
|
||||
+ #endif
|
||||
|
||||
new_service = (service_user *) malloc (sizeof (service_user)
|
||||
! + name_alloc_len);
|
||||
if (new_service == NULL)
|
||||
return result;
|
||||
|
||||
! *((char *) __mempcpy (new_service->name, name, name_alloc_len-1)) = '\0';
|
||||
!
|
||||
|
||||
/* Set default actions. */
|
||||
new_service->actions[2 + NSS_STATUS_TRYAGAIN] = NSS_ACTION_CONTINUE;
|
||||
diff -r -c --exclude='*.info*' glibc-2.2.5.org/time/Makefile glibc-2.2.5/time/Makefile
|
||||
*** glibc-2.2.5.org/time/Makefile Fri Aug 10 01:59:41 2001
|
||||
--- glibc-2.2.5/time/Makefile Tue May 21 11:01:11 2002
|
||||
***************
|
||||
*** 37,44 ****
|
||||
|
||||
include ../Rules
|
||||
|
||||
! tz-cflags = -DTZDIR='"$(zonedir)"' \
|
||||
! -DTZDEFAULT='"$(localtime-file)"' \
|
||||
-DTZDEFRULES='"$(posixrules-file)"'
|
||||
|
||||
CFLAGS-tzfile.c = $(tz-cflags)
|
||||
--- 37,44 ----
|
||||
|
||||
include ../Rules
|
||||
|
||||
! tz-cflags = -DTZDIR='"/usr/share/zoneinfo/"' \
|
||||
! -DTZDEFAULT='"/etc/localtime"' \
|
||||
-DTZDEFRULES='"$(posixrules-file)"'
|
||||
|
||||
CFLAGS-tzfile.c = $(tz-cflags)
|
||||
diff -r -c --exclude='*.info*' glibc-2.2.5.org/timezone/Makefile glibc-2.2.5/timezone/Makefile
|
||||
*** glibc-2.2.5.org/timezone/Makefile Thu Aug 30 00:45:25 2001
|
||||
--- glibc-2.2.5/timezone/Makefile Tue May 21 11:01:57 2002
|
||||
***************
|
||||
*** 159,166 ****
|
||||
|
||||
$(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
|
||||
|
||||
! tz-cflags = -DTZDIR='"$(zonedir)"' \
|
||||
! -DTZDEFAULT='"$(localtime-file)"' \
|
||||
-DTZDEFRULES='"$(posixrules-file)"' \
|
||||
-DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone
|
||||
|
||||
--- 159,166 ----
|
||||
|
||||
$(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
|
||||
|
||||
! tz-cflags = -DTZDIR='"/usr/share/zoneinfo/"' \
|
||||
! -DTZDEFAULT='"/etc/localtime"' \
|
||||
-DTZDEFRULES='"$(posixrules-file)"' \
|
||||
-DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone
|
||||
|
||||
|
@ -57,6 +57,7 @@ This is a manual about @strong{MySQL} internals.
|
||||
* mysys functions:: Functions In The @code{mysys} Library
|
||||
* DBUG:: DBUG Tags To Use
|
||||
* protocol:: MySQL Client/Server Protocol
|
||||
* Fulltext Search:: Fulltext Search in MySQL
|
||||
@end menu
|
||||
|
||||
|
||||
@ -535,7 +536,7 @@ Print query.
|
||||
@end table
|
||||
|
||||
|
||||
@node protocol, , DBUG, Top
|
||||
@node protocol, Fulltext Search, DBUG, Top
|
||||
@chapter MySQL Client/Server Protocol
|
||||
|
||||
@menu
|
||||
@ -785,6 +786,48 @@ Date 03 0A 00 00 |01 0A |03 00 00 00
|
||||
|
||||
@c @printindex fn
|
||||
|
||||
@node Fulltext Search, , protocol, Top
|
||||
@chapter Fulltext Search in MySQL
|
||||
|
||||
Hopefully, sometime there will be complete description of
|
||||
fulltext search algorithms.
|
||||
Now it's just unsorted notes.
|
||||
|
||||
@menu
|
||||
* Weighting in boolean mode::
|
||||
@end menu
|
||||
|
||||
@node Weighting in boolean mode, , , Fulltext Search
|
||||
@section Weighting in boolean mode
|
||||
|
||||
The basic idea is as follows: in expression
|
||||
@code{A or B or (C and D and E)}, either @code{A} or @code{B} alone
|
||||
is enough to match the whole expression. While @code{C},
|
||||
@code{D}, and @code{E} should @strong{all} match. So it's
|
||||
reasonable to assign weight 1 to @code{A}, @code{B}, and
|
||||
@code{(C and D and E)}. And @code{C}, @code{D}, and @code{E}
|
||||
should get a weight of 1/3.
|
||||
|
||||
Things become more complicated when considering boolean
|
||||
operators, as used in MySQL FTB. Obvioulsy, @code{+A +B}
|
||||
should be treated as @code{A and B}, and @code{A B} -
|
||||
as @code{A or B}. The problem is, that @code{+A B} can @strong{not}
|
||||
be rewritten in and/or terms (that's the reason why this - extended -
|
||||
set of operators was chosen). Still, aproximations can be used.
|
||||
@code{+A B C} can be approximated as @code{A or (A and (B or C))}
|
||||
or as @code{A or (A and B) or (A and C) or (A and B and C)}.
|
||||
Applying the above logic (and omitting mathematical
|
||||
transformations and normalization) one gets that for
|
||||
@code{+A_1 +A_2 ... +A_N B_1 B_2 ... B_M} the weights
|
||||
should be: @code{A_i = 1/N}, @code{B_j=1} if @code{N==0}, and,
|
||||
otherwise, in the first rewritting approach @code{B_j = 1/3},
|
||||
and in the second one - @code{B_j = (1+(M-1)*2^M)/(M*(2^(M+1)-1))}.
|
||||
|
||||
The second expression gives somewhat steeper increase in total
|
||||
weight as number of matched B's increases, because it assigns
|
||||
higher weights to individual B's. Also the first expression in
|
||||
much simplier. So it is the first one, that is implemented in MySQL.
|
||||
|
||||
@summarycontents
|
||||
@contents
|
||||
|
||||
|
@ -11573,10 +11573,10 @@ Weile nichts von ihnen geh
|
||||
|
||||
@node Novell Netware, , BeOS, Operating System Specific Notes
|
||||
@c German node Novell Netware
|
||||
@subsection Anmerkungen zu Novell Netware
|
||||
@subsection Anmerkungen zu Novell NetWare
|
||||
|
||||
Wir sind sehr daran interessiert, MySQL auf Netware ans Laufen zu bringen,
|
||||
aber leider kennen wir niemanden, der sich mit Netware auskennt oder Zeit hat,
|
||||
Wir sind sehr daran interessiert, MySQL auf NetWare ans Laufen zu bringen,
|
||||
aber leider kennen wir niemanden, der sich mit NetWare auskennt oder Zeit hat,
|
||||
eine Portierung durchzuführen.
|
||||
|
||||
Wir sind daran interessiert, jemanden für eine Portierung zu finden, und
|
||||
@ -16998,6 +16998,7 @@ neu starten, um @code{mysqldump} benutzen zu k
|
||||
* Privilege changes::
|
||||
* Default privileges::
|
||||
* Adding users::
|
||||
* User resources::
|
||||
* Passwords::
|
||||
* Password security::
|
||||
@end menu
|
||||
@ -17653,7 +17654,7 @@ m
|
||||
@code{mysql_install_db} laufen lassen.
|
||||
|
||||
|
||||
@node Adding users, Passwords, Default privileges, User Account Management
|
||||
@node Adding users, User resources, Default privileges, User Account Management
|
||||
@c German node Benutzer hinzufügen
|
||||
@subsection Neue MySQL-Benutzer hinzufügen
|
||||
|
||||
@ -17862,8 +17863,71 @@ einzuf
|
||||
@uref{http://www.mysql.com/downloads/contrib/,Contrib-Verzeichnis der
|
||||
MySQL-Website}.
|
||||
|
||||
@node User resources, Passwords, Adding users, User Account Management
|
||||
@c New section added by arjen 2002-05-17 to keep en/de in sync
|
||||
@subsection Limiting user resources
|
||||
|
||||
@node Passwords, Password security, Adding users, User Account Management
|
||||
@c FIX Original section text - to be translated.
|
||||
@c FIX Also check manual.texi for other mentions of MAX_..._PER_HOUR
|
||||
|
||||
Starting from MySQL 4.0.2 one can limit certain resources per user.
|
||||
|
||||
So far, the only available method of limiting user usage of MySQL
|
||||
server resources has been setting the @code{max_user_connections}
|
||||
startup variable to a non-zero value. But this method is strictly
|
||||
global and does not allow for management of individual users, which
|
||||
could be of paricular interest to Internet Service Providers.
|
||||
|
||||
Therefore, management of three resources is introduced on the
|
||||
individual user level:
|
||||
|
||||
@itemize @bullet
|
||||
@item Number of all queries per hour:
|
||||
All commands that could be run by a user.
|
||||
@item Number of all updates per hour:
|
||||
Any command that changes any table or database.
|
||||
@item Number of connections made per hour:
|
||||
New connections opened per hour.
|
||||
@end itemize
|
||||
|
||||
A user in the aforementioned context is a single entry in the
|
||||
@code{user} table, which is uniquely identified by its @code{user}
|
||||
and @code{host} columns.
|
||||
|
||||
All users are by default not limited in using the above resources,
|
||||
unless the limits are granted to them. These limits can be granted
|
||||
@strong{only} via global @code{GRANT (*.*)}, using this syntax:
|
||||
|
||||
@example
|
||||
GRANT ... WITH MAX_QUERIES_PER_HOUR = N1
|
||||
MAX_UPDATES_PER_HOUR = N2
|
||||
MAX_CONNECTIONS_PER_HOUR = N3;
|
||||
@end example
|
||||
|
||||
One can specify any combination of the above resources.
|
||||
N1, N2 and N3 are integers and stands for count / hour.
|
||||
|
||||
If user reaches any of the above limits withing one hour, his
|
||||
connection will be terminated or refused and the appropriate error
|
||||
message shall be issued.
|
||||
|
||||
Current usage values for a particular user can be flushed (set to zero)
|
||||
by issuing a @code{GRANT} statement with any of the above clauses,
|
||||
including a @code{GRANT} statement with the current values.
|
||||
|
||||
Also, current values for all users will be flushed if privileges are
|
||||
reloaded (in the server or using @code{mysqladmin reload})
|
||||
or if the @code{FLUSH USER_RESOURCES} command is issued.
|
||||
|
||||
The feature is enabled as soon as a single user is granted with any
|
||||
of the limiting @code{GRANT} clauses.
|
||||
|
||||
As a prerequisite for enabling this feature, the @code{user} table in
|
||||
the @code{mysql} database must contain the additional columns, as
|
||||
defined in the table creation scripts @code{mysql_install_db} and
|
||||
@code{mysql_install_db.sh} in @file{scripts} subdirectory.
|
||||
|
||||
@node Passwords, Password security, User resources, User Account Management
|
||||
@c German node Passwörter
|
||||
@subsection Passwörter einrichten
|
||||
|
||||
@ -39897,12 +39961,12 @@ gespeichert werden kann.
|
||||
|
||||
|
||||
@menu
|
||||
* InnoDB Disk i/o::
|
||||
* InnoDB Disk I/O::
|
||||
* InnoDB File space::
|
||||
* InnoDB File Defragmenting::
|
||||
@end menu
|
||||
|
||||
@node InnoDB Disk i/o, InnoDB File space, File space management, File space management
|
||||
@node InnoDB Disk I/O, InnoDB File space, File space management, File space management
|
||||
@c German node Festplatten-Ein- und -Ausgaben bei InnoDB
|
||||
@subsubsection Festplatten-Ein- und -Ausgaben
|
||||
|
||||
@ -39969,7 +40033,7 @@ Eingelesenwerdens in den Puffer-Pool zu sein scheint. Dann schickt InnoDB
|
||||
die verbleibenden Lesevorgänge an das Ein-/Ausgabesystem.
|
||||
|
||||
|
||||
@node InnoDB File space, InnoDB File Defragmenting, InnoDB Disk i/o, File space management
|
||||
@node InnoDB File space, InnoDB File Defragmenting, InnoDB Disk I/O, File space management
|
||||
@c German node Speicherplatz in InnoDB
|
||||
@subsubsection Speicherplatzverwaltung
|
||||
|
||||
@ -44743,6 +44807,7 @@ wollen. @xref{Threaded clients}.
|
||||
* my_init::
|
||||
* mysql_thread_init::
|
||||
* mysql_thread_end::
|
||||
* mysql_thread_safe::
|
||||
@end menu
|
||||
|
||||
@node my_init, mysql_thread_init, C Thread functions, C Thread functions
|
||||
@ -44783,7 +44848,7 @@ Diese Funktion wird automatisch von @code{my_init()} und
|
||||
|
||||
Keine.
|
||||
|
||||
@node mysql_thread_end, , mysql_thread_init, C Thread functions
|
||||
@node mysql_thread_end, mysql_thread_safe, mysql_thread_init, C Thread functions
|
||||
@c German node mysql_thread_end()
|
||||
@subsubsection @code{mysql_thread_end()}
|
||||
|
||||
@ -44803,6 +44868,22 @@ Speicherlecks zu vermeiden.
|
||||
|
||||
Keine.
|
||||
|
||||
@node mysql_thread_safe, , mysql_thread_end, C Thread functions
|
||||
@c Arjen note: new @node 2002-04-19, please translate text!
|
||||
@subsubsection @code{mysql_thread_safe()}
|
||||
|
||||
@findex @code{mysql_thread_safe()}
|
||||
|
||||
@code{unsigned int mysql_thread_safe(void)}
|
||||
|
||||
@subsubheading Description
|
||||
|
||||
This function indicates whether the client is compiled as thread safe.
|
||||
|
||||
@subsubheading Return Values
|
||||
|
||||
1 is the client is thread safe, 0 otherwise.
|
||||
|
||||
@node C Embedded Server func, C API problems, C Thread functions, C
|
||||
@c German node C-Embedded-Server-Funktionen
|
||||
@subsection C-Embedded-Server-Funktionsbeschreibungen
|
||||
|
5795
Docs/manual.texi
5795
Docs/manual.texi
File diff suppressed because it is too large
Load Diff
@ -62,6 +62,11 @@ WWW (@uref{http://mysql.tonnikala.org/})
|
||||
WWW (@uref{http://mysql-mirror.free.fr/})
|
||||
FTP (@uref{ftp://ftp.free.fr/pub/MySQL/})
|
||||
|
||||
@item
|
||||
@image{Flags/france} France [mir2.ovh.net/] @@
|
||||
WWW (@uref{http://mir2.ovh.net/ftp.mysql.com/})
|
||||
FTP (@uref{ftp://mir1.ovh.net/ftp.mysql.com/})
|
||||
|
||||
@item
|
||||
@image{Flags/france} France [Netsample] @@
|
||||
WWW (@uref{http://www.mysql.netsample.com/})
|
||||
@ -70,6 +75,11 @@ WWW (@uref{http://www.mysql.netsample.com/})
|
||||
@image{Flags/france} France [Omegatomic] @@
|
||||
WWW (@uref{http://mysql.omegatomic.com/})
|
||||
|
||||
@item
|
||||
@image{Flags/france} France [Universite Paris 10] @@
|
||||
WWW (@uref{http://ftp.u-paris10.fr/mysql.com})
|
||||
FTP (@uref{ftp://ftp.u-paris10.fr/mysql.com})
|
||||
|
||||
@item
|
||||
@image{Flags/germany} Germany [GWDG] @@
|
||||
WWW (@uref{http://ftp.gwdg.de/pub/misc/mysql/})
|
||||
@ -110,9 +120,8 @@ WWW (@uref{http://mysql.sote.hu/})
|
||||
FTP (@uref{ftp://xenia.sote.hu/pub/mirrors/www.mysql.com/})
|
||||
|
||||
@item
|
||||
@image{Flags/iceland} Iceland [GM] @@
|
||||
WWW (@uref{http://mysql.gm.is/})
|
||||
FTP (@uref{ftp://ftp.gm.is/pub/mysql/})
|
||||
@image{Flags/iceland} Iceland [Tvíund] @@
|
||||
WWW (@uref{http://mysql.tviund.is/})
|
||||
|
||||
@item
|
||||
@image{Flags/ireland} Ireland [Esat Net] @@
|
||||
@ -123,6 +132,10 @@ FTP (@uref{ftp://ftp.esat.net/mirrors/download.sourceforge.net/pub/mirrors/mysql
|
||||
@image{Flags/ireland} Ireland [MD NMTB Media] @@
|
||||
WWW (@uref{http://mirrors.nmtbmedia.com/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/israel} Israel [fresh.co.il] @@
|
||||
WWW (@uref{http://mysql.fresh.co.il/})
|
||||
|
||||
@item
|
||||
@image{Flags/italy} Italy [feelinglinux.com] @@
|
||||
WWW (@uref{http://mysql.feelinglinux.com/})
|
||||
@ -170,16 +183,16 @@ FTP (@uref{ftp://sunsite.icm.edu.pl/pub/unix/mysql/})
|
||||
WWW (@uref{http://darkstar.ist.utl.pt/mysql/})
|
||||
FTP (@uref{ftp://darkstar.ist.utl.pt/pub/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/portugal} Portugal [Netc] @@
|
||||
WWW (@uref{http://ftp.netc.pt/pub/mysql/})
|
||||
FTP (@uref{ftp://ftp.netc.pt/pub/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/portugal} Portugal [Netvisão] @@
|
||||
WWW (@uref{http://mysql.netvisao.pt/})
|
||||
FTP (@uref{ftp://mirrors2.netvisao.pt/pub/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/portugal} Portugal [VIZZAVI] @@
|
||||
WWW (@uref{http://ftp.vizzavi.pt/pub/mysql/})
|
||||
FTP (@uref{ftp://ftp.vizzavi.pt/pub/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/romania} Romania [roedu.net/Bucharest] @@
|
||||
FTP (@uref{ftp://ftp.roedu.net/pub/mirrors/ftp.mysql.com/})
|
||||
@ -198,11 +211,6 @@ FTP (@uref{ftp://ftp.chg.ru/pub/databases/mysql/})
|
||||
WWW (@uref{http://ftp.arnes.si/mysql/})
|
||||
FTP (@uref{ftp://ftp.arnes.si/packages/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/spain} Spain [GMC Control Systems] @@
|
||||
WWW (@uref{http://mysql.neptuno2000.com/})
|
||||
FTP (@uref{ftp://ftp.neptuno2000.com/pub/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/sweden} Sweden [Sunet] @@
|
||||
WWW (@uref{http://ftp.sunet.se/pub/unix/databases/relational/mysql/})
|
||||
@ -293,11 +301,6 @@ FTP (@uref{ftp://mirror.sit.wisc.edu/mirrors/mysql/})
|
||||
WWW (@uref{http://mysql.secsup.org/})
|
||||
FTP (@uref{ftp://mysql.secsup.org/pub/software/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/usa} USA [ValueClick / Los Angeles, CA] @@
|
||||
WWW (@uref{http://mysql.valueclick.com/})
|
||||
FTP (@uref{ftp://mysql.valueclick.com/pub/mysql/})
|
||||
|
||||
@end itemize
|
||||
|
||||
@strong{South America:}
|
||||
@ -333,11 +336,6 @@ FTP (@uref{ftp://mysql.ogmios.co.cr/pub/mysql/})
|
||||
|
||||
@itemize @bullet
|
||||
|
||||
@item
|
||||
@image{Flags/china} China [Gremlins/Hong Kong] @@
|
||||
WWW (@uref{http://mysql.gremlins.com.hk/})
|
||||
FTP (@uref{ftp://ftp.mirrors.gremlins.com.hk/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/china} China [HKLPG/Hong Kong] @@
|
||||
WWW (@uref{http://mysql.hklpg.org/})
|
||||
@ -363,6 +361,7 @@ FTP (@uref{ftp://mysql.incaf.net/})
|
||||
@item
|
||||
@image{Flags/indonesia} Indonesia [M-Web] @@
|
||||
WWW (@uref{http://mysql.mweb.net.id/})
|
||||
FTP (@uref{ftp://mysql.mweb.net.id/pub/database/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/indonesia} Indonesia [web.id] @@
|
||||
@ -413,6 +412,10 @@ WWW (@uref{http://mysql.ttn.net/})
|
||||
WWW (@uref{http://mysql.planetmirror.com/})
|
||||
FTP (@uref{ftp://planetmirror.com/pub/mysql/})
|
||||
|
||||
@item
|
||||
@image{Flags/new-zealand} New Zealand [Cubalan] @@
|
||||
WWW (@uref{http://mysql.soa.co.nz/})
|
||||
|
||||
@end itemize
|
||||
|
||||
@strong{Africa:}
|
||||
|
@ -1,457 +1,457 @@
|
||||
/* Copyright Abandoned 1997 TCX DataKonsult AB & Monty Program KB & Detron HB
|
||||
This file is public domain and comes with NO WARRANTY of any kind */
|
||||
|
||||
#define ER_HASHCHK 0
|
||||
#define ER_HASHCHK 1000
|
||||
"hashchk",
|
||||
#define ER_NISAMCHK 1
|
||||
#define ER_NISAMCHK 1001
|
||||
"isamchk",
|
||||
#define ER_NO 2
|
||||
#define ER_NO 1002
|
||||
"NO",
|
||||
#define ER_YES 3
|
||||
#define ER_YES 1003
|
||||
"YES",
|
||||
#define ER_CANT_CREATE_FILE 4
|
||||
#define ER_CANT_CREATE_FILE 1004
|
||||
"Can't create file '%-.64s' (errno: %d)",
|
||||
#define ER_CANT_CREATE_TABLE 5
|
||||
#define ER_CANT_CREATE_TABLE 1005
|
||||
"Can't create table '%-.64s' (errno: %d)",
|
||||
#define ER_CANT_CREATE_DB 6
|
||||
#define ER_CANT_CREATE_DB 1006
|
||||
"Can't create database '%-.64s'. (errno: %d)",
|
||||
#define ER_DB_CREATE_EXISTS 7
|
||||
#define ER_DB_CREATE_EXISTS 1007
|
||||
"Can't create database '%-.64s'. Database exists",
|
||||
#define ER_DB_DROP_EXISTS 8
|
||||
#define ER_DB_DROP_EXISTS 1008
|
||||
"Can't drop database '%-.64s'. Database doesn't exist",
|
||||
#define ER_DB_DROP_DELETE 9
|
||||
#define ER_DB_DROP_DELETE 1009
|
||||
"Error dropping database (can't delete '%-.64s', errno: %d)",
|
||||
#define ER_DB_DROP_RMDIR 10
|
||||
#define ER_DB_DROP_RMDIR 1010
|
||||
"Error dropping database (can't rmdir '%-.64s', errno: %d)",
|
||||
#define ER_CANT_DELETE_FILE 11
|
||||
#define ER_CANT_DELETE_FILE 1011
|
||||
"Error on delete of '%-.64s' (errno: %d)",
|
||||
#define ER_CANT_FIND_SYSTEM_REC 12
|
||||
#define ER_CANT_FIND_SYSTEM_REC 1012
|
||||
"Can't read record in system table",
|
||||
#define ER_CANT_GET_STAT 13
|
||||
#define ER_CANT_GET_STAT 1013
|
||||
"Can't get status of '%-.64s' (errno: %d)",
|
||||
#define ER_CANT_GET_WD 14
|
||||
#define ER_CANT_GET_WD 1014
|
||||
"Can't get working directory (errno: %d)",
|
||||
#define ER_CANT_LOCK 15
|
||||
#define ER_CANT_LOCK 1015
|
||||
"Can't lock file (errno: %d)",
|
||||
#define ER_CANT_OPEN_FILE 16
|
||||
#define ER_CANT_OPEN_FILE 1016
|
||||
"Can't open file: '%-.64s'. (errno: %d)",
|
||||
#define ER_FILE_NOT_FOUND 17
|
||||
#define ER_FILE_NOT_FOUND 1017
|
||||
"Can't find file: '%-.64s' (errno: %d)",
|
||||
#define ER_CANT_READ_DIR 18
|
||||
#define ER_CANT_READ_DIR 1018
|
||||
"Can't read dir of '%-.64s' (errno: %d)",
|
||||
#define ER_CANT_SET_WD 19
|
||||
#define ER_CANT_SET_WD 1019
|
||||
"Can't change dir to '%-.64s' (errno: %d)",
|
||||
#define ER_CHECKREAD 20
|
||||
#define ER_CHECKREAD 1020
|
||||
"Record has changed since last read in table '%-.64s'",
|
||||
#define ER_DISK_FULL 21
|
||||
#define ER_DISK_FULL 1021
|
||||
"Disk full (%s). Waiting for someone to free some space....",
|
||||
#define ER_DUP_KEY 22
|
||||
#define ER_DUP_KEY 1022
|
||||
"Can't write, duplicate key in table '%-.64s'",
|
||||
#define ER_ERROR_ON_CLOSE 23
|
||||
#define ER_ERROR_ON_CLOSE 1023
|
||||
"Error on close of '%-.64s' (errno: %d)",
|
||||
#define ER_ERROR_ON_READ 24
|
||||
#define ER_ERROR_ON_READ 1024
|
||||
"Error reading file '%-.64s' (errno: %d)",
|
||||
#define ER_ERROR_ON_RENAME 25
|
||||
#define ER_ERROR_ON_RENAME 1025
|
||||
"Error on rename of '%-.64s' to '%-.64s' (errno: %d)",
|
||||
#define ER_ERROR_ON_WRITE 26
|
||||
#define ER_ERROR_ON_WRITE 1026
|
||||
"Error writing file '%-.64s' (errno: %d)",
|
||||
#define ER_FILE_USED 27
|
||||
#define ER_FILE_USED 1027
|
||||
"'%-.64s' is locked against change",
|
||||
#define ER_FILSORT_ABORT 28
|
||||
#define ER_FILSORT_ABORT 1028
|
||||
"Sort aborted",
|
||||
#define ER_FORM_NOT_FOUND 29
|
||||
#define ER_FORM_NOT_FOUND 1029
|
||||
"View '%-.64s' doesn't exist for '%-.64s'",
|
||||
#define ER_GET_ERRNO 30
|
||||
#define ER_GET_ERRNO 1030
|
||||
"Got error %d from table handler",
|
||||
#define ER_ILLEGAL_HA 31
|
||||
#define ER_ILLEGAL_HA 1031
|
||||
"Table handler for '%-.64s' doesn't have this option",
|
||||
#define ER_KEY_NOT_FOUND 32
|
||||
#define ER_KEY_NOT_FOUND 1032
|
||||
"Can't find record in '%-.64s'",
|
||||
#define ER_NOT_FORM_FILE 33
|
||||
#define ER_NOT_FORM_FILE 1033
|
||||
"Incorrect information in file: '%-.64s'",
|
||||
#define ER_NOT_KEYFILE 34
|
||||
#define ER_NOT_KEYFILE 1034
|
||||
"Incorrect key file for table: '%-.64s'. Try to repair it",
|
||||
#define ER_OLD_KEYFILE 35
|
||||
#define ER_OLD_KEYFILE 1035
|
||||
"Old key file for table '%-.64s'; Repair it!",
|
||||
#define ER_OPEN_AS_READONLY 36
|
||||
#define ER_OPEN_AS_READONLY 1036
|
||||
"Table '%-.64s' is read only",
|
||||
#define ER_OUTOFMEMORY 37
|
||||
#define ER_OUTOFMEMORY 1037
|
||||
"Out of memory. Restart daemon and try again (needed %d bytes)",
|
||||
#define ER_OUT_OF_SORTMEMORY 38
|
||||
#define ER_OUT_OF_SORTMEMORY 1038
|
||||
"Out of sort memory. Increase daemon sort buffer size",
|
||||
#define ER_UNEXPECTED_EOF 39
|
||||
#define ER_UNEXPECTED_EOF 1039
|
||||
"Unexpected eof found when reading file '%-.64s' (errno: %d)",
|
||||
#define ER_CON_COUNT_ERROR 40
|
||||
#define ER_CON_COUNT_ERROR 1040
|
||||
"Too many connections",
|
||||
#define ER_OUT_OF_RESOURCES 41
|
||||
#define ER_OUT_OF_RESOURCES 1041
|
||||
"Out of memory; Check if mysqld or some other process uses all available memory. If not you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space",
|
||||
#define ER_BAD_HOST_ERROR 42
|
||||
#define ER_BAD_HOST_ERROR 1042
|
||||
"Can't get hostname for your address",
|
||||
#define ER_HANDSHAKE_ERROR 43
|
||||
#define ER_HANDSHAKE_ERROR 1043
|
||||
"Bad handshake",
|
||||
#define ER_DBACCESS_DENIED_ERROR 44
|
||||
#define ER_DBACCESS_DENIED_ERROR 1044
|
||||
"Access denied for user: '%-.32s@%-.64s' to database '%-.64s'",
|
||||
#define ER_ACCESS_DENIED_ERROR 45
|
||||
#define ER_ACCESS_DENIED_ERROR 1045
|
||||
"Access denied for user: '%-.32s@%-.64s' (Using password: %s)",
|
||||
#define ER_NO_DB_ERROR 46
|
||||
#define ER_NO_DB_ERROR 1046
|
||||
"No Database Selected",
|
||||
#define ER_UNKNOWN_COM_ERROR 47
|
||||
#define ER_UNKNOWN_COM_ERROR 1047
|
||||
"Unknown command",
|
||||
#define ER_BAD_NULL_ERROR 48
|
||||
#define ER_BAD_NULL_ERROR 1048
|
||||
"Column '%-.64s' cannot be null",
|
||||
#define ER_BAD_DB_ERROR 49
|
||||
#define ER_BAD_DB_ERROR 1049
|
||||
"Unknown database '%-.64s'",
|
||||
#define ER_TABLE_EXISTS_ERROR 50
|
||||
#define ER_TABLE_EXISTS_ERROR 1050
|
||||
"Table '%-.64s' already exists",
|
||||
#define ER_BAD_TABLE_ERROR 51
|
||||
#define ER_BAD_TABLE_ERROR 1051
|
||||
"Unknown table '%-.64s'",
|
||||
#define ER_NON_UNIQ_ERROR 52
|
||||
#define ER_NON_UNIQ_ERROR 1052
|
||||
"Column: '%-.64s' in %-.64s is ambiguous",
|
||||
#define ER_SERVER_SHUTDOWN 53
|
||||
#define ER_SERVER_SHUTDOWN 1053
|
||||
"Server shutdown in progress",
|
||||
#define ER_BAD_FIELD_ERROR 54
|
||||
#define ER_BAD_FIELD_ERROR 1054
|
||||
"Unknown column '%-.64s' in '%-.64s'",
|
||||
#define ER_WRONG_FIELD_WITH_GROUP 55
|
||||
#define ER_WRONG_FIELD_WITH_GROUP 1055
|
||||
"'%-.64s' isn't in GROUP BY",
|
||||
#define ER_WRONG_GROUP_FIELD 56
|
||||
#define ER_WRONG_GROUP_FIELD 1056
|
||||
"Can't group on '%-.64s'",
|
||||
#define ER_WRONG_SUM_SELECT 57
|
||||
#define ER_WRONG_SUM_SELECT 1057
|
||||
"Statement has sum functions and columns in same statement",
|
||||
#define ER_WRONG_VALUE_COUNT 58
|
||||
#define ER_WRONG_VALUE_COUNT 1058
|
||||
"Column count doesn't match value count",
|
||||
#define ER_TOO_LONG_IDENT 59
|
||||
#define ER_TOO_LONG_IDENT 1059
|
||||
"Identifier name '%-.100s' is too long",
|
||||
#define ER_DUP_FIELDNAME 60
|
||||
#define ER_DUP_FIELDNAME 1060
|
||||
"Duplicate column name '%-.64s'",
|
||||
#define ER_DUP_KEYNAME 61
|
||||
#define ER_DUP_KEYNAME 1061
|
||||
"Duplicate key name '%-.64s'",
|
||||
#define ER_DUP_ENTRY 62
|
||||
#define ER_DUP_ENTRY 1062
|
||||
"Duplicate entry '%-.64s' for key %d",
|
||||
#define ER_WRONG_FIELD_SPEC 63
|
||||
#define ER_WRONG_FIELD_SPEC 1063
|
||||
"Incorrect column specifier for column '%-.64s'",
|
||||
#define ER_PARSE_ERROR 64
|
||||
#define ER_PARSE_ERROR 1064
|
||||
"%s near '%-.80s' at line %d",
|
||||
#define ER_EMPTY_QUERY 65
|
||||
#define ER_EMPTY_QUERY 1065
|
||||
"Query was empty",
|
||||
#define ER_NONUNIQ_TABLE 66
|
||||
#define ER_NONUNIQ_TABLE 1066
|
||||
"Not unique table/alias: '%-.64s'",
|
||||
#define ER_INVALID_DEFAULT 67
|
||||
#define ER_INVALID_DEFAULT 1067
|
||||
"Invalid default value for '%-.64s'",
|
||||
#define ER_MULTIPLE_PRI_KEY 68
|
||||
#define ER_MULTIPLE_PRI_KEY 1068
|
||||
"Multiple primary key defined",
|
||||
#define ER_TOO_MANY_KEYS 69
|
||||
#define ER_TOO_MANY_KEYS 1069
|
||||
"Too many keys specified. Max %d keys allowed",
|
||||
#define ER_TOO_MANY_KEY_PARTS 70
|
||||
#define ER_TOO_MANY_KEY_PARTS 1070
|
||||
"Too many key parts specified. Max %d parts allowed",
|
||||
#define ER_TOO_LONG_KEY 71
|
||||
#define ER_TOO_LONG_KEY 1071
|
||||
"Specified key was too long. Max key length is %d",
|
||||
#define ER_KEY_COLUMN_DOES_NOT_EXITS 72
|
||||
#define ER_KEY_COLUMN_DOES_NOT_EXITS 1072
|
||||
"Key column '%-.64s' doesn't exist in table",
|
||||
#define ER_BLOB_USED_AS_KEY 73
|
||||
#define ER_BLOB_USED_AS_KEY 1073
|
||||
"BLOB column '%-.64s' can't be used in key specification with the used table type",
|
||||
#define ER_TOO_BIG_FIELDLENGTH 74
|
||||
#define ER_TOO_BIG_FIELDLENGTH 1074
|
||||
"Too big column length for column '%-.64s' (max = %d). Use BLOB instead",
|
||||
#define ER_WRONG_AUTO_KEY 75
|
||||
#define ER_WRONG_AUTO_KEY 1075
|
||||
"Incorrect table definition; There can only be one auto column and it must be defined as a key",
|
||||
#define ER_READY 76
|
||||
#define ER_READY 1076
|
||||
"%s: ready for connections\n",
|
||||
#define ER_NORMAL_SHUTDOWN 77
|
||||
#define ER_NORMAL_SHUTDOWN 1077
|
||||
"%s: Normal shutdown\n",
|
||||
#define ER_GOT_SIGNAL 78
|
||||
#define ER_GOT_SIGNAL 1078
|
||||
"%s: Got signal %d. Aborting!\n",
|
||||
#define ER_SHUTDOWN_COMPLETE 79
|
||||
#define ER_SHUTDOWN_COMPLETE 1079
|
||||
"%s: Shutdown Complete\n",
|
||||
#define ER_FORCING_CLOSE 80
|
||||
#define ER_FORCING_CLOSE 1080
|
||||
"%s: Forcing close of thread %ld user: '%-.32s'\n",
|
||||
#define ER_IPSOCK_ERROR 81
|
||||
#define ER_IPSOCK_ERROR 1081
|
||||
"Can't create IP socket",
|
||||
#define ER_NO_SUCH_INDEX 82
|
||||
#define ER_NO_SUCH_INDEX 1082
|
||||
"Table '%-.64s' has no index like the one used in CREATE INDEX. Recreate the table",
|
||||
#define ER_WRONG_FIELD_TERMINATORS 83
|
||||
#define ER_WRONG_FIELD_TERMINATORS 1083
|
||||
"Field separator argument is not what is expected. Check the manual",
|
||||
#define ER_BLOBS_AND_NO_TERMINATED 84
|
||||
#define ER_BLOBS_AND_NO_TERMINATED 1084
|
||||
"You can't use fixed rowlength with BLOBs. Please use 'fields terminated by'.",
|
||||
#define ER_TEXTFILE_NOT_READABLE 85
|
||||
#define ER_TEXTFILE_NOT_READABLE 1085
|
||||
"The file '%-.64s' must be in the database directory or be readable by all",
|
||||
#define ER_FILE_EXISTS_ERROR 86
|
||||
#define ER_FILE_EXISTS_ERROR 1086
|
||||
"File '%-.80s' already exists",
|
||||
#define ER_LOAD_INFO 87
|
||||
#define ER_LOAD_INFO 1087
|
||||
"Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld",
|
||||
#define ER_ALTER_INFO 88
|
||||
#define ER_ALTER_INFO 1088
|
||||
"Records: %ld Duplicates: %ld",
|
||||
#define ER_WRONG_SUB_KEY 89
|
||||
#define ER_WRONG_SUB_KEY 1089
|
||||
"Incorrect sub part key. The used key part isn't a string, the used length is longer than the key part or the table handler doesn't support unique sub keys",
|
||||
#define ER_CANT_REMOVE_ALL_FIELDS 90
|
||||
#define ER_CANT_REMOVE_ALL_FIELDS 1090
|
||||
"You can't delete all columns with ALTER TABLE. Use DROP TABLE instead",
|
||||
#define ER_CANT_DROP_FIELD_OR_KEY 91
|
||||
#define ER_CANT_DROP_FIELD_OR_KEY 1091
|
||||
"Can't DROP '%-.64s'. Check that column/key exists",
|
||||
#define ER_INSERT_INFO 92
|
||||
#define ER_INSERT_INFO 1092
|
||||
"Records: %ld Duplicates: %ld Warnings: %ld",
|
||||
#define ER_INSERT_TABLE_USED 93
|
||||
#define ER_INSERT_TABLE_USED 1093
|
||||
"INSERT TABLE '%-.64s' isn't allowed in FROM table list",
|
||||
#define ER_NO_SUCH_THREAD 94
|
||||
#define ER_NO_SUCH_THREAD 1094
|
||||
"Unknown thread id: %lu",
|
||||
#define ER_KILL_DENIED_ERROR 95
|
||||
#define ER_KILL_DENIED_ERROR 1095
|
||||
"You are not owner of thread %lu",
|
||||
#define ER_NO_TABLES_USED 96
|
||||
#define ER_NO_TABLES_USED 1096
|
||||
"No tables used",
|
||||
#define ER_TOO_BIG_SET 97
|
||||
#define ER_TOO_BIG_SET 1097
|
||||
"Too many strings for column %-.64s and SET",
|
||||
#define ER_NO_UNIQUE_LOGFILE 98
|
||||
#define ER_NO_UNIQUE_LOGFILE 1098
|
||||
"Can't generate a unique log-filename %-.64s.(1-999)\n",
|
||||
#define ER_TABLE_NOT_LOCKED_FOR_WRITE 99
|
||||
#define ER_TABLE_NOT_LOCKED_FOR_WRITE 1099
|
||||
"Table '%-.64s' was locked with a READ lock and can't be updated",
|
||||
#define ER_TABLE_NOT_LOCKED 100
|
||||
#define ER_TABLE_NOT_LOCKED 1100
|
||||
"Table '%-.64s' was not locked with LOCK TABLES",
|
||||
#define ER_BLOB_CANT_HAVE_DEFAULT 101
|
||||
#define ER_BLOB_CANT_HAVE_DEFAULT 1101
|
||||
"BLOB column '%-.64s' can't have a default value",
|
||||
#define ER_WRONG_DB_NAME 102
|
||||
#define ER_WRONG_DB_NAME 1102
|
||||
"Incorrect database name '%-.100s'",
|
||||
#define ER_WRONG_TABLE_NAME 103
|
||||
#define ER_WRONG_TABLE_NAME 1103
|
||||
"Incorrect table name '%-.100s'",
|
||||
#define ER_TOO_BIG_SELECT 104
|
||||
#define ER_TOO_BIG_SELECT 1104
|
||||
"The SELECT would examine too many records and probably take a very long time. Check your WHERE and use SET OPTION SQL_BIG_SELECTS=1 if the SELECT is ok",
|
||||
#define ER_UNKNOWN_ERROR 105
|
||||
#define ER_UNKNOWN_ERROR 1105
|
||||
"Unknown error",
|
||||
#define ER_UNKNOWN_PROCEDURE 106
|
||||
#define ER_UNKNOWN_PROCEDURE 1106
|
||||
"Unknown procedure '%-.64s'",
|
||||
#define ER_WRONG_PARAMCOUNT_TO_PROCEDURE 107
|
||||
#define ER_WRONG_PARAMCOUNT_TO_PROCEDURE 1107
|
||||
"Incorrect parameter count to procedure '%-.64s'",
|
||||
#define ER_WRONG_PARAMETERS_TO_PROCEDURE 108
|
||||
#define ER_WRONG_PARAMETERS_TO_PROCEDURE 1108
|
||||
"Incorrect parameters to procedure '%-.64s'",
|
||||
#define ER_UNKNOWN_TABLE 109
|
||||
#define ER_UNKNOWN_TABLE 1109
|
||||
"Unknown table '%-.64s' in %-.32s",
|
||||
#define ER_FIELD_SPECIFIED_TWICE 110
|
||||
#define ER_FIELD_SPECIFIED_TWICE 1110
|
||||
"Column '%-.64s' specified twice",
|
||||
#define ER_INVALID_GROUP_FUNC_USE 111
|
||||
#define ER_INVALID_GROUP_FUNC_USE 1111
|
||||
"Invalid use of group function",
|
||||
#define ER_UNSUPPORTED_EXTENSION 112
|
||||
#define ER_UNSUPPORTED_EXTENSION 1112
|
||||
"Table '%-.64s' uses an extension that doesn't exist in this MySQL version",
|
||||
#define ER_TABLE_MUST_HAVE_COLUMNS 113
|
||||
#define ER_TABLE_MUST_HAVE_COLUMNS 1113
|
||||
"A table must have at least 1 column",
|
||||
#define ER_RECORD_FILE_FULL 114
|
||||
#define ER_RECORD_FILE_FULL 1114
|
||||
"The table '%-.64s' is full",
|
||||
#define ER_UNKNOWN_CHARACTER_SET 115
|
||||
#define ER_UNKNOWN_CHARACTER_SET 1115
|
||||
"Unknown character set: '%-.64s'",
|
||||
#define ER_TOO_MANY_TABLES 116
|
||||
#define ER_TOO_MANY_TABLES 1116
|
||||
"Too many tables. MySQL can only use %d tables in a join",
|
||||
#define ER_TOO_MANY_FIELDS 117
|
||||
#define ER_TOO_MANY_FIELDS 1117
|
||||
"Too many columns",
|
||||
#define ER_TOO_BIG_ROWSIZE 118
|
||||
#define ER_TOO_BIG_ROWSIZE 1118
|
||||
"Too big row size. The maximum row size, not counting BLOBs, is %d. You have to change some fields to BLOBs",
|
||||
#define ER_STACK_OVERRUN 119
|
||||
#define ER_STACK_OVERRUN 1119
|
||||
"Thread stack overrun: Used: %ld of a %ld stack. Use 'mysqld -O thread_stack=#' to specify a bigger stack if needed",
|
||||
#define ER_WRONG_OUTER_JOIN 120
|
||||
#define ER_WRONG_OUTER_JOIN 1120
|
||||
"Cross dependency found in OUTER JOIN. Examine your ON conditions",
|
||||
#define ER_NULL_COLUMN_IN_INDEX 121
|
||||
#define ER_NULL_COLUMN_IN_INDEX 1121
|
||||
"Column '%-.64s' is used with UNIQUE or INDEX but is not defined as NOT NULL",
|
||||
#define ER_CANT_FIND_UDF 122
|
||||
#define ER_CANT_FIND_UDF 1122
|
||||
"Can't load function '%-.64s'",
|
||||
#define ER_CANT_INITIALIZE_UDF 123
|
||||
#define ER_CANT_INITIALIZE_UDF 1123
|
||||
"Can't initialize function '%-.64s'; %-.80s",
|
||||
#define ER_UDF_NO_PATHS 124
|
||||
#define ER_UDF_NO_PATHS 1124
|
||||
"No paths allowed for shared library",
|
||||
#define ER_UDF_EXISTS 125
|
||||
#define ER_UDF_EXISTS 1125
|
||||
"Function '%-.64s' already exist",
|
||||
#define ER_CANT_OPEN_LIBRARY 126
|
||||
#define ER_CANT_OPEN_LIBRARY 1126
|
||||
"Can't open shared library '%-.64s' (errno: %d %-.64s)",
|
||||
#define ER_CANT_FIND_DL_ENTRY 127
|
||||
#define ER_CANT_FIND_DL_ENTRY 1127
|
||||
"Can't find function '%-.64s' in library'",
|
||||
#define ER_FUNCTION_NOT_DEFINED 128
|
||||
#define ER_FUNCTION_NOT_DEFINED 1128
|
||||
"Function '%-.64s' is not defined",
|
||||
#define ER_HOST_IS_BLOCKED 129
|
||||
#define ER_HOST_IS_BLOCKED 1129
|
||||
"Host '%-.64s' is blocked because of many connection errors. Unblock with 'mysqladmin flush-hosts'",
|
||||
#define ER_HOST_NOT_PRIVILEGED 130
|
||||
#define ER_HOST_NOT_PRIVILEGED 1130
|
||||
"Host '%-.64s' is not allowed to connect to this MySQL server",
|
||||
#define ER_PASSWORD_ANONYMOUS_USER 131
|
||||
#define ER_PASSWORD_ANONYMOUS_USER 1131
|
||||
"You are using MySQL as an anonymous users and anonymous users are not allowed to change passwords",
|
||||
#define ER_PASSWORD_NOT_ALLOWED 132
|
||||
#define ER_PASSWORD_NOT_ALLOWED 1132
|
||||
"You must have privileges to update tables in the mysql database to be able to change passwords for others",
|
||||
#define ER_PASSWORD_NO_MATCH 133
|
||||
#define ER_PASSWORD_NO_MATCH 1133
|
||||
"Can't find any matching row in the user table",
|
||||
#define ER_UPDATE_INFO 134
|
||||
#define ER_UPDATE_INFO 1134
|
||||
"Rows matched: %ld Changed: %ld Warnings: %ld",
|
||||
#define ER_CANT_CREATE_THREAD 135
|
||||
#define ER_CANT_CREATE_THREAD 1135
|
||||
"Can't create a new thread (errno %d). If you are not out of available memory, you can consult the manual for a possible OS-dependent bug",
|
||||
#define ER_WRONG_VALUE_COUNT_ON_ROW 136
|
||||
#define ER_WRONG_VALUE_COUNT_ON_ROW 1136
|
||||
"Column count doesn't match value count at row %ld",
|
||||
#define ER_CANT_REOPEN_TABLE 137
|
||||
#define ER_CANT_REOPEN_TABLE 1137
|
||||
"Can't reopen table: '%-.64s'",
|
||||
#define ER_INVALID_USE_OF_NULL 138
|
||||
#define ER_INVALID_USE_OF_NULL 1138
|
||||
"Invalid use of NULL value",
|
||||
#define ER_REGEXP_ERROR 139
|
||||
#define ER_REGEXP_ERROR 1139
|
||||
"Got error '%-.64s' from regexp",
|
||||
#define ER_MIX_OF_GROUP_FUNC_AND_FIELDS 140
|
||||
#define ER_MIX_OF_GROUP_FUNC_AND_FIELDS 1140
|
||||
"Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause",
|
||||
#define ER_NONEXISTING_GRANT 141
|
||||
#define ER_NONEXISTING_GRANT 1141
|
||||
"There is no such grant defined for user '%-.32s' on host '%-.64s'",
|
||||
#define ER_TABLEACCESS_DENIED_ERROR 142
|
||||
#define ER_TABLEACCESS_DENIED_ERROR 1142
|
||||
"%-.16s command denied to user: '%-.32s@%-.64s' for table '%-.64s'",
|
||||
#define ER_COLUMNACCESS_DENIED_ERROR 143
|
||||
#define ER_COLUMNACCESS_DENIED_ERROR 1143
|
||||
"%-.16s command denied to user: '%-.32s@%-.64s' for column '%-.64s' in table '%-.64s'",
|
||||
#define ER_ILLEGAL_GRANT_FOR_TABLE 144
|
||||
#define ER_ILLEGAL_GRANT_FOR_TABLE 1144
|
||||
"Illegal GRANT/REVOKE command. Please consult the manual which privileges can be used.",
|
||||
#define ER_GRANT_WRONG_HOST_OR_USER 145
|
||||
#define ER_GRANT_WRONG_HOST_OR_USER 1145
|
||||
"The host or user argument to GRANT is too long",
|
||||
#define ER_NO_SUCH_TABLE 146
|
||||
#define ER_NO_SUCH_TABLE 1146
|
||||
"Table '%-.64s.%-.64s' doesn't exist",
|
||||
#define ER_NONEXISTING_TABLE_GRANT 147
|
||||
#define ER_NONEXISTING_TABLE_GRANT 1147
|
||||
"There is no such grant defined for user '%-.32s' on host '%-.64s' on table '%-.64s'",
|
||||
#define ER_NOT_ALLOWED_COMMAND 148
|
||||
#define ER_NOT_ALLOWED_COMMAND 1148
|
||||
"The used command is not allowed with this MySQL version",
|
||||
#define ER_SYNTAX_ERROR 149
|
||||
#define ER_SYNTAX_ERROR 1149
|
||||
"You have an error in your SQL syntax",
|
||||
#define ER_DELAYED_CANT_CHANGE_LOCK 150
|
||||
#define ER_DELAYED_CANT_CHANGE_LOCK 1150
|
||||
"Delayed insert thread couldn't get requested lock for table %-.64s",
|
||||
#define ER_TOO_MANY_DELAYED_THREADS 151
|
||||
#define ER_TOO_MANY_DELAYED_THREADS 1151
|
||||
"Too many delayed threads in use",
|
||||
#define ER_ABORTING_CONNECTION 152
|
||||
#define ER_ABORTING_CONNECTION 1152
|
||||
"Aborted connection %ld to db: '%-.64s' user: '%-.32s' (%-.64s)",
|
||||
#define ER_NET_PACKET_TOO_LARGE 153
|
||||
#define ER_NET_PACKET_TOO_LARGE 1153
|
||||
"Got a packet bigger than 'max_allowed_packet'",
|
||||
#define ER_NET_READ_ERROR_FROM_PIPE 154
|
||||
#define ER_NET_READ_ERROR_FROM_PIPE 1154
|
||||
"Got a read error from the connection pipe",
|
||||
#define ER_NET_FCNTL_ERROR 155
|
||||
#define ER_NET_FCNTL_ERROR 1155
|
||||
"Got an error from fcntl()",
|
||||
#define ER_NET_PACKETS_OUT_OF_ORDER 156
|
||||
#define ER_NET_PACKETS_OUT_OF_ORDER 1156
|
||||
"Got packets out of order",
|
||||
#define ER_NET_UNCOMPRESS_ERROR 157
|
||||
#define ER_NET_UNCOMPRESS_ERROR 1157
|
||||
"Couldn't uncompress communication packet",
|
||||
#define ER_NET_READ_ERROR 158
|
||||
#define ER_NET_READ_ERROR 1158
|
||||
"Got an error reading communication packets",
|
||||
#define ER_NET_READ_INTERRUPTED 159
|
||||
#define ER_NET_READ_INTERRUPTED 1159
|
||||
"Got timeout reading communication packets",
|
||||
#define ER_NET_ERROR_ON_WRITE 160
|
||||
#define ER_NET_ERROR_ON_WRITE 1160
|
||||
"Got an error writing communication packets",
|
||||
#define ER_NET_WRITE_INTERRUPTED 161
|
||||
#define ER_NET_WRITE_INTERRUPTED 1161
|
||||
"Got timeout writing communication packets",
|
||||
#define ER_TOO_LONG_STRING 162
|
||||
#define ER_TOO_LONG_STRING 1162
|
||||
"Result string is longer than max_allowed_packet",
|
||||
#define ER_TABLE_CANT_HANDLE_BLOB 163
|
||||
#define ER_TABLE_CANT_HANDLE_BLOB 1163
|
||||
"The used table type doesn't support BLOB/TEXT columns",
|
||||
#define ER_TABLE_CANT_HANDLE_AUTO_INCREMENT 164
|
||||
#define ER_TABLE_CANT_HANDLE_AUTO_INCREMENT 1164
|
||||
"The used table type doesn't support AUTO_INCREMENT columns",
|
||||
#define ER_DELAYED_INSERT_TABLE_LOCKED 165
|
||||
#define ER_DELAYED_INSERT_TABLE_LOCKED 1165
|
||||
"INSERT DELAYED can't be used with table '%-.64s', because it is locked with LOCK TABLES",
|
||||
#define ER_WRONG_COLUMN_NAME 166
|
||||
#define ER_WRONG_COLUMN_NAME 1166
|
||||
"Incorrect column name '%-.100s'",
|
||||
#define ER_WRONG_KEY_COLUMN 167
|
||||
#define ER_WRONG_KEY_COLUMN 1167
|
||||
"The used table handler can't index column '%-.64s'",
|
||||
#define ER_WRONG_MRG_TABLE 168
|
||||
#define ER_WRONG_MRG_TABLE 1168
|
||||
"All tables in the MERGE table are not identically defined",
|
||||
#define ER_DUP_UNIQUE 169
|
||||
#define ER_DUP_UNIQUE 1169
|
||||
"Can't write, because of unique constraint, to table '%-.64s'",
|
||||
#define ER_BLOB_KEY_WITHOUT_LENGTH 170
|
||||
#define ER_BLOB_KEY_WITHOUT_LENGTH 1170
|
||||
"BLOB column '%-.64s' used in key specification without a key length",
|
||||
#define ER_PRIMARY_CANT_HAVE_NULL 171
|
||||
#define ER_PRIMARY_CANT_HAVE_NULL 1171
|
||||
"All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead",
|
||||
#define ER_TOO_MANY_ROWS 172
|
||||
#define ER_TOO_MANY_ROWS 1172
|
||||
"Result consisted of more than one row",
|
||||
#define ER_REQUIRES_PRIMARY_KEY 173
|
||||
#define ER_REQUIRES_PRIMARY_KEY 1173
|
||||
"This table type requires a primary key",
|
||||
#define ER_NO_RAID_COMPILED 174
|
||||
#define ER_NO_RAID_COMPILED 1174
|
||||
"This version of MySQL is not compiled with RAID support",
|
||||
#define ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE 175
|
||||
#define ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE 1175
|
||||
"You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column",
|
||||
#define ER_KEY_DOES_NOT_EXITS 176
|
||||
#define ER_KEY_DOES_NOT_EXITS 1176
|
||||
"Key '%-.64s' doesn't exist in table '%-.64s'",
|
||||
#define ER_CHECK_NO_SUCH_TABLE 177
|
||||
#define ER_CHECK_NO_SUCH_TABLE 1177
|
||||
"Can't open table",
|
||||
#define ER_CHECK_NOT_IMPLEMENTED 178
|
||||
#define ER_CHECK_NOT_IMPLEMENTED 1178
|
||||
"The handler for the table doesn't support check/repair",
|
||||
#define ER_CANT_DO_THIS_DURING_AN_TRANSACTION 179
|
||||
#define ER_CANT_DO_THIS_DURING_AN_TRANSACTION 1179
|
||||
"You are not allowed to execute this command in a transaction",
|
||||
#define ER_ERROR_DURING_COMMIT 180
|
||||
#define ER_ERROR_DURING_COMMIT 1180
|
||||
"Got error %d during COMMIT",
|
||||
#define ER_ERROR_DURING_ROLLBACK 181
|
||||
#define ER_ERROR_DURING_ROLLBACK 1181
|
||||
"Got error %d during ROLLBACK",
|
||||
#define ER_ERROR_DURING_FLUSH_LOGS 182
|
||||
#define ER_ERROR_DURING_FLUSH_LOGS 1182
|
||||
"Got error %d during FLUSH_LOGS",
|
||||
#define ER_ERROR_DURING_CHECKPOINT 183
|
||||
#define ER_ERROR_DURING_CHECKPOINT 1183
|
||||
"Got error %d during CHECKPOINT",
|
||||
#define ER_NEW_ABORTING_CONNECTION 184
|
||||
#define ER_NEW_ABORTING_CONNECTION 1184
|
||||
"Aborted connection %ld to db: '%-.64s' user: '%-.32s' host: `%-.64s' (%-.64s)",
|
||||
#define ER_DUMP_NOT_IMPLEMENTED 185
|
||||
#define ER_DUMP_NOT_IMPLEMENTED 1185
|
||||
"The handler for the table does not support binary table dump",
|
||||
#define ER_FLUSH_MASTER_BINLOG_CLOSED 186
|
||||
#define ER_FLUSH_MASTER_BINLOG_CLOSED 1186
|
||||
"Binlog closed, cannot RESET MASTER",
|
||||
#define ER_INDEX_REBUILD 187
|
||||
#define ER_INDEX_REBUILD 1187
|
||||
"Failed rebuilding the index of dumped table '%-.64s'",
|
||||
#define ER_MASTER 188
|
||||
#define ER_MASTER 1188
|
||||
"Error from master: '%-.64s'",
|
||||
#define ER_MASTER_NET_READ 189
|
||||
#define ER_MASTER_NET_READ 1189
|
||||
"Net error reading from master",
|
||||
#define ER_MASTER_NET_WRITE 190
|
||||
#define ER_MASTER_NET_WRITE 1190
|
||||
"Net error writing to master",
|
||||
#define ER_FT_MATCHING_KEY_NOT_FOUND 191
|
||||
#define ER_FT_MATCHING_KEY_NOT_FOUND 1191
|
||||
"Can't find FULLTEXT index matching the column list",
|
||||
#define ER_LOCK_OR_ACTIVE_TRANSACTION 192
|
||||
#define ER_LOCK_OR_ACTIVE_TRANSACTION 1192
|
||||
"Can't execute the given command because you have active locked tables or an active transaction",
|
||||
#define ER_UNKNOWN_SYSTEM_VARIABLE 193
|
||||
"Unknown system variable '%-.64'",
|
||||
#define ER_CRASHED_ON_USAGE 194
|
||||
#define ER_UNKNOWN_SYSTEM_VARIABLE 1193
|
||||
"Unknown system variable '%-.64s'",
|
||||
#define ER_CRASHED_ON_USAGE 1194
|
||||
"Table '%-.64s' is marked as crashed and should be repaired",
|
||||
#define ER_CRASHED_ON_REPAIR 195
|
||||
#define ER_CRASHED_ON_REPAIR 1195
|
||||
"Table '%-.64s' is marked as crashed and last (automatic?) repair failed",
|
||||
#define ER_WARNING_NOT_COMPLETE_ROLLBACK 196
|
||||
#define ER_WARNING_NOT_COMPLETE_ROLLBACK 1196
|
||||
"Warning: Some non-transactional changed tables couldn't be rolled back",
|
||||
#define ER_TRANS_CACHE_FULL 197
|
||||
#define ER_TRANS_CACHE_FULL 1197
|
||||
"Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage. Increase this mysqld variable and try again',
|
||||
#define ER_SLAVE_MUST_STOP 198
|
||||
#define ER_SLAVE_MUST_STOP 1198
|
||||
"This operation cannot be performed with a running slave, run SLAVE STOP first",
|
||||
#define ER_SLAVE_NOT_RUNNING 199
|
||||
#define ER_SLAVE_NOT_RUNNING 1199
|
||||
"This operation requires a running slave, configure slave and do SLAVE START",
|
||||
#define ER_BAD_SLAVE 200
|
||||
#define ER_BAD_SLAVE 1200
|
||||
"The server is not configured as slave, fix in config file or with CHANGE MASTER TO",
|
||||
#define ER_MASTER_INFO 201
|
||||
#define ER_MASTER_INFO 1201
|
||||
"Could not initialize master info structure, check permisions on master.info",
|
||||
#define ER_SLAVE_THREAD 202
|
||||
#define ER_SLAVE_THREAD 1202
|
||||
"Could not create slave thread, check system resources",
|
||||
#define ER_TOO_MANY_USER_CONNECTIONS 203
|
||||
#define ER_TOO_MANY_USER_CONNECTIONS 1203
|
||||
"User %-.64s has already more than 'max_user_connections' active connections",
|
||||
#define ER_SET_CONSTANTS_ONLY 204
|
||||
#define ER_SET_CONSTANTS_ONLY 1204
|
||||
"You may only use constant expressions with SET",
|
||||
#define ER_LOCK_WAIT_TIMEOUT 205
|
||||
#define ER_LOCK_WAIT_TIMEOUT 1205
|
||||
"Lock wait timeout exceeded; Try restarting transaction",
|
||||
#define ER_LOCK_TABLE_FULL 206
|
||||
#define ER_LOCK_TABLE_FULL 1206
|
||||
"The total number of locks exceeds the lock table size",
|
||||
#define ER_READ_ONLY_TRANSACTION 207
|
||||
#define ER_READ_ONLY_TRANSACTION 1207
|
||||
"Update locks cannot be acquired during a READ UNCOMMITTED transaction",
|
||||
#define ER_DROP_DB_WITH_READ_LOCK 208
|
||||
#define ER_DROP_DB_WITH_READ_LOCK 1208
|
||||
"DROP DATABASE not allowed while thread is holding global read lock",
|
||||
#define ER_CREATE_DB_WITH_READ_LOCK 209
|
||||
#define ER_CREATE_DB_WITH_READ_LOCK 1209
|
||||
"CREATE DATABASE not allowed while thread is holding global read lock",
|
||||
#define ER_WRONG_ARGUMENTS 210
|
||||
#define ER_WRONG_ARGUMENTS 1210
|
||||
"Wrong arguments to %s",
|
||||
#define ER_NO_PERMISSION_TO_CREATE_USER 211
|
||||
#define ER_NO_PERMISSION_TO_CREATE_USER 1211
|
||||
"%-.32s@%-.64s is not allowed to create new users",
|
||||
#define ER_UNION_TABLES_IN_DIFFERENT_DIR 212
|
||||
#define ER_UNION_TABLES_IN_DIFFERENT_DIR 1212
|
||||
"Incorrect table definition; All MERGE tables must be in the same database",
|
||||
#define ER_LOCK_DEADLOCK 213
|
||||
#define ER_LOCK_DEADLOCK 1213
|
||||
"Deadlock found when trying to get lock; Try restarting transaction",
|
||||
#define ER_TABLE_CANT_HANDLE_FULLTEXT 214
|
||||
#define ER_TABLE_CANT_HANDLE_FULLTEXT 1214
|
||||
"The used table type doesn't support FULLTEXT indexes",
|
||||
#define ER_CANNOT_ADD_FOREIGN 215
|
||||
#define ER_CANNOT_ADD_FOREIGN 1215
|
||||
"Cannot add foreign key constraint",
|
||||
#define ER_NO_REFERENCED_ROW 216
|
||||
#define ER_NO_REFERENCED_ROW 1216
|
||||
"Cannot add a child row: a foreign key constraint fails",
|
||||
#define ER_ROW_IS_REFERENCED 217
|
||||
#define ER_ROW_IS_REFERENCED 1217
|
||||
"Cannot delete a parent row: a foreign key constraint fails",
|
||||
#define ER_CONNECT_TO_MASTER 218
|
||||
#define ER_CONNECT_TO_MASTER 1218
|
||||
"Error connecting to master: %-.128s",
|
||||
#define ER_QUERY_ON_MASTER 219
|
||||
#define ER_QUERY_ON_MASTER 1219
|
||||
"Error running query on master: %-.128s",
|
||||
#define ER_ERROR_WHEN_EXECUTING_COMMAND 220
|
||||
#define ER_ERROR_WHEN_EXECUTING_COMMAND 1220
|
||||
"Error when executing command %s: %-.128s",
|
||||
#define ER_WRONG_USAGE 221
|
||||
#define ER_WRONG_USAGE 1221
|
||||
"Wrong usage of %s and %s",
|
||||
#define ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT 222
|
||||
#define ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT 1222
|
||||
"The used SELECT statements have a different number of columns",
|
||||
#define ER_CANT_UPDATE_WITH_READLOCK 223
|
||||
#define ER_CANT_UPDATE_WITH_READLOCK 1223
|
||||
"Can't execute the query because you have a conflicting read lock",
|
||||
#define ER_MIXING_NOT_ALLOWED 224
|
||||
#define ER_MIXING_NOT_ALLOWED 1224
|
||||
"Mixing of transactional and non-transactional tables is disabled",
|
||||
#define ER_DUP_ARGUMENT 225
|
||||
#define ER_DUP_ARGUMENT 1225
|
||||
"Option '%s' used twice in statement",
|
||||
#define ER_TOO_MANY_USER_CONNECTIONS 203
|
||||
"User %-.64s has already more than 'max_user_connections' active connections",
|
||||
#define ER_USER_LIMIT_REACHED 1226
|
||||
"User '%-64s' has exceeded the '%s' resource (current value: %ld)",
|
||||
|
@ -17,14 +17,14 @@
|
||||
# Process this file with automake to create Makefile.in
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
TAR = gtar
|
||||
|
||||
# These are built from source in the Docs directory
|
||||
EXTRA_DIST = INSTALL-SOURCE README \
|
||||
COPYING COPYING.LIB MIRRORS
|
||||
SUBDIRS = include @docs_dirs@ @readline_dir@ \
|
||||
@thread_dirs@ pstack @sql_client_dirs@ \
|
||||
@sql_server_dirs@ @libmysqld_dirs@ scripts man \
|
||||
tests BUILD \
|
||||
tests BUILD os2 \
|
||||
@bench_dirs@ support-files @fs_dirs@ @tools_dirs@
|
||||
|
||||
# Relink after clean
|
||||
|
19
README
19
README
@ -1,8 +1,8 @@
|
||||
This is a release of MySQL, a GPL (free) SQL database server (more
|
||||
licence information in the PUBLIC file and in the reference manual).
|
||||
|
||||
Please read the Upgrading section in the manual if emigration from
|
||||
3.20.# to 3.21.#. Otherwise it wont work!!
|
||||
Please read the "Upgrading from..." section in the manual first, if you are
|
||||
migrating from older versions of MySQL!
|
||||
|
||||
The latest information about MySQL can be found at:
|
||||
http://www.mysql.com
|
||||
@ -24,13 +24,11 @@ For examples of SQL and benchmarking information see the bench
|
||||
directory.
|
||||
|
||||
The manual mentioned above can be found in the Docs directory. The
|
||||
manual is available in the following formats: as text in
|
||||
Docs/manual.txt, as HTML in Docs/manual_toc.html, as GNU Info in
|
||||
manual is available in the following formats: as plain ASCII text in
|
||||
Docs/manual.txt, in HTML format in Docs/manual_toc.html, as GNU Info in
|
||||
Docs/mysql.info and as PostScript in Docs/manual.ps.
|
||||
|
||||
For a contributed user manual see http://www.turbolift.com/mysql.
|
||||
|
||||
MySQL is brought to you by the MySQL team at MySQL AB
|
||||
MySQL is brought to you by the MySQL team at MySQL AB
|
||||
|
||||
For a list of developers and other contributors, see the Credits appendix
|
||||
in the manual.
|
||||
@ -48,8 +46,7 @@ and start your editor with a form in which you can describe your
|
||||
problem. Bug reports might be silently ignored by the MySQL
|
||||
maintainers if there is not a good reason included in the report as to
|
||||
why mysqlbug has not been used. A report that says 'MySQL does not
|
||||
work for me. Why?' is not consider a valid bug report.
|
||||
|
||||
The mysqlbug script can be found in the 'scripts' directory in the
|
||||
distribution, that is 'there-you-installed-mysql/scripts'.
|
||||
work for me. Why?' is not considered a valid bug report.
|
||||
|
||||
The mysqlbug script can be found in the 'scripts' directory of the
|
||||
distribution, that is '<where-you-installed-mysql>/scripts'.
|
||||
|
@ -26,7 +26,7 @@ bdb_build = build_unix
|
||||
files = LICENSE Makefile Makefile.in README
|
||||
subdirs = btree build_vxworks build_win32 clib common cxx db db185 \
|
||||
db_archive db_checkpoint db_deadlock db_dump db_dump185 db_load \
|
||||
db_printlog db_recover db_stat db_upgrade db_verify dbm dist docs \
|
||||
db_printlog db_recover db_stat db_upgrade db_verify dbm dist \
|
||||
env examples_c examples_cxx hash hsearch include java libdb_java \
|
||||
lock log mp mutex os os_vxworks os_win32 perl.BerkeleyDB \
|
||||
perl.DB_File qam rpc_client rpc_server tcl test txn xa
|
||||
|
@ -1,172 +0,0 @@
|
||||
<!--$Id: c_index.so,v 10.53 2000/12/21 19:11:27 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: C Interface by Function/Structure</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<h1 align=center>C Interface by Function/Structure</h1>
|
||||
<p><table border=1 align=center>
|
||||
<tr><th>Database Environment</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/env_create.html">db_env_create</a></td><td>Create an environment handle</td></tr>
|
||||
<tr><td><a href="../api_c/env_close.html">DBENV->close</a></td><td>Close an environment</td></tr>
|
||||
<tr><td><a href="../api_c/db_err.html">DBENV->err</a></td><td>Error message with error string</td></tr>
|
||||
<tr><td><a href="../api_c/db_err.html">DBENV->errx</a></td><td>Error message</td></tr>
|
||||
<tr><td><a href="../api_c/env_open.html">DBENV->open</a></td><td>Open an environment</td></tr>
|
||||
<tr><td><a href="../api_c/env_remove.html">DBENV->remove</a></td><td>Remove an environment</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a></td><td>Set the environment cache size</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_data_dir.html">DBENV->set_data_dir</a></td><td>Set the environment data directory</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a></td><td>Set error message callback</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a></td><td>Set error message FILE</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a></td><td>Set error message prefix</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_feedback.html">DBENV->set_feedback</a></td><td>Set feedback callback</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_flags.html">DBENV->set_flags</a></td><td>Environment configuration</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a></td><td>Turn off mutual exclusion locking</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a></td><td>Set panic callback</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_rec_init.html">DBENV->set_recovery_init</a></td><td>Set recovery initialization callback</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_server.html">DBENV->set_server</a></td><td>Establish server connection</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_shm_key.html">DBENV->set_shm_key</a></td><td>Set system memory shared segment ID</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_tmp_dir.html">DBENV->set_tmp_dir</a></td><td>Set the environment temporary file directory</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a></td><td>Set verbose messages</td></tr>
|
||||
<tr><td><a href="../api_c/env_strerror.html">db_strerror</a></td><td>Error strings</td></tr>
|
||||
<tr><td><a href="../api_c/env_version.html">db_version</a></td><td>Return version information</td></tr>
|
||||
<tr><th>Database Operations</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/db_create.html">db_create</a></td><td>Create a database handle</td></tr>
|
||||
<tr><td><a href="../api_c/db_close.html">DB->close</a></td><td>Close a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_del.html">DB->del</a></td><td>Delete items from a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_err.html">DB->err</a></td><td>Error message with error string</td></tr>
|
||||
<tr><td><a href="../api_c/db_err.html">DB->errx</a></td><td>Error message</td></tr>
|
||||
<tr><td><a href="../api_c/db_fd.html">DB->fd</a></td><td>Return a file descriptor from a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_get.html">DB->get</a></td><td>Get items from a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a></td><td>Return if the underlying database is in host order</td></tr>
|
||||
<tr><td><a href="../api_c/db_get_type.html">DB->get_type</a></td><td>Return the database type</td></tr>
|
||||
<tr><td><a href="../api_c/db_join.html">DB->join</a></td><td>Perform a database join on cursors</td></tr>
|
||||
<tr><td><a href="../api_c/db_key_range.html">DB->key_range</a></td><td>Return estimate of key location</td></tr>
|
||||
<tr><td><a href="../api_c/db_open.html">DB->open</a></td><td>Open a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_put.html">DB->put</a></td><td>Store items into a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_remove.html">DB->remove</a></td><td>Remove a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_rename.html">DB->rename</a></td><td>Rename a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_append_recno.html">DB->set_append_recno</a></td><td>Set record append callback</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a></td><td>Set a Btree comparison function</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a></td><td>Set the minimum number of keys per Btree page</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a></td><td>Set a Btree prefix comparison function</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a></td><td>Set the database cache size</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a></td><td>Set a duplicate comparison function</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_errcall.html">DB->set_errcall</a></td><td>Set error message callback</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_errfile.html">DB->set_errfile</a></td><td>Set error message FILE</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a></td><td>Set error message prefix</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_feedback.html">DB->set_feedback</a></td><td>Set feedback callback</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_flags.html">DB->set_flags</a></td><td>General database configuration</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a></td><td>Set the Hash table density</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a></td><td>Set a hashing function</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a></td><td>Set the Hash table size</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_lorder.html">DB->set_lorder</a></td><td>Set the database byte order</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_malloc.html">DB->set_malloc</a></td><td>Set a local space allocation function</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a></td><td>Set the underlying database page size</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a></td><td>Set panic callback</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a></td><td>Set Queue database extent size</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a></td><td>Set the variable-length record delimiter</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_re_len.html">DB->set_re_len</a></td><td>Set the fixed-length record length</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a></td><td>Set the fixed-length record pad byte</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_re_source.html">DB->set_re_source</a></td><td>Set the backing Recno text file</td></tr>
|
||||
<tr><td><a href="../api_c/db_set_realloc.html">DB->set_realloc</a></td><td>Set a local space allocation function</td></tr>
|
||||
<tr><td><a href="../api_c/db_stat.html">DB->stat</a></td><td>Return database statistics</td></tr>
|
||||
<tr><td><a href="../api_c/db_sync.html">DB->sync</a></td><td>Flush a database to stable storage</td></tr>
|
||||
<tr><td><a href="../api_c/db_upgrade.html">DB->upgrade</a></td><td>Upgrade a database</td></tr>
|
||||
<tr><td><a href="../api_c/db_verify.html">DB->verify</a></td><td>Verify/salvage a database</td></tr>
|
||||
<tr><th>Database Cursors</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/db_cursor.html">DB->cursor</a></td><td>Open a cursor into a database</td></tr>
|
||||
<tr><td><a href="../api_c/dbc_close.html">DBcursor->c_close</a></td><td>Close a cursor</td></tr>
|
||||
<tr><td><a href="../api_c/dbc_count.html">DBcursor->c_count</a></td><td>Return count of duplicates</td></tr>
|
||||
<tr><td><a href="../api_c/dbc_del.html">DBcursor->c_del</a></td><td>Delete by cursor</td></tr>
|
||||
<tr><td><a href="../api_c/dbc_dup.html">DBcursor->c_dup</a></td><td>Duplicate a cursor</td></tr>
|
||||
<tr><td><a href="../api_c/dbc_get.html">DBcursor->c_get</a></td><td>Retrieve by cursor</td></tr>
|
||||
<tr><td><a href="../api_c/dbc_put.html">DBcursor->c_put</a></td><td>Store by cursor</td></tr>
|
||||
<tr><th>Lock Manager</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/env_set_lk_conflicts.html">DBENV->set_lk_conflicts</a></td><td>Set lock conflicts matrix</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_lk_detect.html">DBENV->set_lk_detect</a></td><td>Set automatic deadlock detection</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_lk_max.html">DBENV->set_lk_max</a></td><td>Set maximum number of locks (<b>Deprecated</b>)</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_lk_max_locks.html">DBENV->set_lk_max_locks</a></td><td>Set maximum number of locks</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_lk_max_lockers.html">DBENV->set_lk_max_lockers</a></td><td>Set maximum number of lockers</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_lk_max_objects.html">DBENV->set_lk_max_objects</a></td><td>Set maximum number of lock objects</td></tr>
|
||||
<tr><td><a href="../api_c/lock_detect.html">lock_detect</a></td><td>Perform deadlock detection</td></tr>
|
||||
<tr><td><a href="../api_c/lock_get.html">lock_get</a></td><td>Acquire a lock</td></tr>
|
||||
<tr><td><a href="../api_c/lock_id.html">lock_id</a></td><td>Acquire a locker ID</td></tr>
|
||||
<tr><td><a href="../api_c/lock_put.html">lock_put</a></td><td>Release a lock</td></tr>
|
||||
<tr><td><a href="../api_c/lock_stat.html">lock_stat</a></td><td>Return lock subsystem statistics</td></tr>
|
||||
<tr><td><a href="../api_c/lock_vec.html">lock_vec</a></td><td>Acquire/release locks</td></tr>
|
||||
<tr><th>Log Manager</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/env_set_lg_bsize.html">DBENV->set_lg_bsize</a></td><td>Set log buffer size</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_lg_dir.html">DBENV->set_lg_dir</a></td><td>Set the environment logging directory</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_lg_max.html">DBENV->set_lg_max</a></td><td>Set log file size</td></tr>
|
||||
<tr><td><a href="../api_c/log_archive.html">log_archive</a></td><td>List log and database files</td></tr>
|
||||
<tr><td><a href="../api_c/log_compare.html">log_compare</a></td><td>Compare two Log Sequence Numbers</td></tr>
|
||||
<tr><td><a href="../api_c/log_file.html">log_file</a></td><td>Map Log Sequence Numbers to log files</td></tr>
|
||||
<tr><td><a href="../api_c/log_flush.html">log_flush</a></td><td>Flush log records</td></tr>
|
||||
<tr><td><a href="../api_c/log_get.html">log_get</a></td><td>Get a log record</td></tr>
|
||||
<tr><td><a href="../api_c/log_put.html">log_put</a></td><td>Write a log record</td></tr>
|
||||
<tr><td><a href="../api_c/log_register.html">log_register</a></td><td>Register a file name with the log manager</td></tr>
|
||||
<tr><td><a href="../api_c/log_stat.html">log_stat</a></td><td>Return log subsystem statistics</td></tr>
|
||||
<tr><td><a href="../api_c/log_unregister.html">log_unregister</a></td><td>Unregister a file name with the log manager</td></tr>
|
||||
<tr><th>Buffer Pool</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a></td><td>Set the environment cache size</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_mp_mmapsize.html">DBENV->set_mp_mmapsize</a></td><td>Set maximum mapped-in database file size</td></tr>
|
||||
<tr><td><a href="../api_c/memp_fclose.html">memp_fclose</a></td><td>Close a file in a buffer pool</td></tr>
|
||||
<tr><td><a href="../api_c/memp_fget.html">memp_fget</a></td><td>Get a page from a file in a buffer pool</td></tr>
|
||||
<tr><td><a href="../api_c/memp_fopen.html">memp_fopen</a></td><td>Open a file in a buffer pool</td></tr>
|
||||
<tr><td><a href="../api_c/memp_fput.html">memp_fput</a></td><td>Return a page to a buffer pool</td></tr>
|
||||
<tr><td><a href="../api_c/memp_fset.html">memp_fset</a></td><td>Modify meta information for buffer pool page</td></tr>
|
||||
<tr><td><a href="../api_c/memp_fsync.html">memp_fsync</a></td><td>Flush pages from a file in a buffer pool</td></tr>
|
||||
<tr><td><a href="../api_c/memp_register.html">memp_register</a></td><td>Register input/output functions for a file in a buffer pool</td></tr>
|
||||
<tr><td><a href="../api_c/memp_stat.html">memp_stat</a></td><td>Return buffer pool statistics</td></tr>
|
||||
<tr><td><a href="../api_c/memp_sync.html">memp_sync</a></td><td>Flush pages from a buffer pool</td></tr>
|
||||
<tr><td><a href="../api_c/memp_trickle.html">memp_trickle</a></td><td>Trickle flush pages from a buffer pool</td></tr>
|
||||
<tr><th>Transaction Manager</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/env_set_tx_max.html">DBENV->set_tx_max</a></td><td>Set maximum number of transactions</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_tx_recover.html">DBENV->set_tx_recover</a></td><td>Set transaction abort recover function</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_tx_timestamp.html">DBENV->set_tx_timestamp</a></td><td>Set recovery timestamp</td></tr>
|
||||
<tr><td><a href="../api_c/txn_abort.html">txn_abort</a></td><td>Abort a transaction</td></tr>
|
||||
<tr><td><a href="../api_c/txn_begin.html">txn_begin</a></td><td>Begin a transaction</td></tr>
|
||||
<tr><td><a href="../api_c/txn_checkpoint.html">txn_checkpoint</a></td><td>Checkpoint the transaction subsystem</td></tr>
|
||||
<tr><td><a href="../api_c/txn_commit.html">txn_commit</a></td><td>Commit a transaction</td></tr>
|
||||
<tr><td><a href="../api_c/txn_id.html">txn_id</a></td><td>Return a transaction ID</td></tr>
|
||||
<tr><td><a href="../api_c/txn_prepare.html">txn_prepare</a></td><td>Prepare a transaction for commit</td></tr>
|
||||
<tr><td><a href="../api_c/txn_stat.html">txn_stat</a></td><td>Return transaction subsystem statistics</td></tr>
|
||||
<tr><th>Historic Interfaces</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/dbm.html">dbm</a></td><td>UNIX Dbm/Ndbm Interfaces</td></tr>
|
||||
<tr><td><a href="../api_c/hsearch.html">hsearch</a></td><td>UNIX Hsearch Interfaces</td></tr>
|
||||
<tr><th>Data Structures</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/dbt.html">DBT</a></td><td>DBT structures</td></tr>
|
||||
<tr><td><a href="../api_c/db_lsn.html">DB_LSN</a></td><td>DB_LSN structures</td></tr>
|
||||
<tr><th>DB Library Configuration</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/env_set_pageyield.html">db_env_set_pageyield</a></td><td>Yield the processor on each page access</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_panicstate.html">db_env_set_panicstate</a></td><td>Reset panic state</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_region_init.html">db_env_set_region_init</a></td><td>Fault in shared regions on initial access</td></tr>
|
||||
<tr><td><a href="../api_c/env_set_tas_spins.html">db_env_set_tas_spins</a></td><td>Set the number of test-and-set spins</td></tr>
|
||||
<tr><th>DB System Call Configuration</th><th>Description</th></tr>
|
||||
<tr><td><a href="../api_c/set_func_close.html">db_env_set_func_close</a></td><td>Replace underlying Berkeley DB system interfaces</td></tr>
|
||||
<tr><td><a href="../api_c/set_func_dirfree.html">db_env_set_func_dirfree</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_dirlist.html">db_env_set_func_dirlist</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_exists.html">db_env_set_func_exists</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_free.html">db_env_set_func_free</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_fsync.html">db_env_set_func_fsync</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_ioinfo.html">db_env_set_func_ioinfo</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_malloc.html">db_env_set_func_malloc</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_map.html">db_env_set_func_map</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_open.html">db_env_set_func_open</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_read.html">db_env_set_func_read</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_realloc.html">db_env_set_func_realloc</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_rename.html">db_env_set_func_rename</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_seek.html">db_env_set_func_seek</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_sleep.html">db_env_set_func_sleep</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_unlink.html">db_env_set_func_unlink</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_unmap.html">db_env_set_func_unmap</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_write.html">db_env_set_func_write</a></td><td><br></td></tr>
|
||||
<tr><td><a href="../api_c/set_func_yield.html">db_env_set_func_yield</a></td><td><br></td></tr>
|
||||
</table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,530 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: C Interface Index</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<h1 align=center>C Interface Index</h1>
|
||||
<center>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td align=right> configuring Berkeley DB </td><td><a href="../ref/build_unix/conf.html#5">1.85</a> API compatibility</td></tr>
|
||||
<tr><td align=right> building a utility to dump Berkeley DB </td><td><a href="../ref/build_unix/conf.html#7">1.85</a> databases</td></tr>
|
||||
<tr><td align=right> Upgrading to release </td><td><a href="../ref/upgrade.2.0/intro.html#2">2.0</a></td></tr>
|
||||
<tr><td align=right> Upgrading to release </td><td><a href="../ref/upgrade.3.0/intro.html#2">3.0</a></td></tr>
|
||||
<tr><td align=right> Upgrading to release </td><td><a href="../ref/upgrade.3.1/intro.html#2">3.1</a></td></tr>
|
||||
<tr><td align=right> Upgrading to release </td><td><a href="../ref/upgrade.3.2/intro.html#2">3.2</a></td></tr>
|
||||
<tr><td align=right> selecting an </td><td><a href="../ref/am_conf/select.html#2">access</a> method</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am_conf/intro.html#2">access</a> methods</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/aix.html#2">AIX</a></td></tr>
|
||||
<tr><td align=right> data </td><td><a href="../api_c/dbt.html#5">alignment</a></td></tr>
|
||||
<tr><td align=right> programmatic </td><td><a href="../ref/arch/apis.html#2">APIs</a></td></tr>
|
||||
<tr><td align=right> utility to </td><td><a href="../utility/db_archive.html#3">archive</a> log files</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/berkeley_db_svc.html#2">berkeley_db_svc</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/intro.html#2">building</a> for UNIX</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/notes.html#2">building</a> for UNIX FAQ</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_vxworks/intro.html#2">building</a> for VxWorks</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_vxworks/faq.html#2">building</a> for VxWorks FAQ</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_win/intro.html#2">building</a> for Win32</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_win/faq.html#2">building</a> for Windows FAQ</td></tr>
|
||||
<tr><td align=right> selecting a </td><td><a href="../ref/am_conf/byteorder.html#2">byte</a> order</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/program/byteorder.html#2">byte</a> ordering</td></tr>
|
||||
<tr><td align=right> configuring the </td><td><a href="../ref/build_unix/conf.html#6">C++</a> API</td></tr>
|
||||
<tr><td align=right> flushing the database </td><td><a href="../ref/am/sync.html#2">cache</a></td></tr>
|
||||
<tr><td align=right> selecting a </td><td><a href="../ref/am_conf/cachesize.html#2">cache</a> size</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/transapp/archival.html#3">catastrophic</a> recovery</td></tr>
|
||||
<tr><td align=right>Patches, Updates and </td><td><a href="http://www.sleepycat.com/update/index.html">Change</a> logs</td></tr>
|
||||
<tr><td align=right> utility to take </td><td><a href="../utility/db_checkpoint.html#3">checkpoints</a></td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#clear_len">clear_len</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/curclose.html#2">closing</a> a cursor</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/close.html#2">closing</a> a database</td></tr>
|
||||
<tr><td align=right> specifying a Btree </td><td><a href="../ref/am_conf/bt_compare.html#2">comparison</a> function</td></tr>
|
||||
<tr><td align=right> changing </td><td><a href="../ref/build_unix/flags.html#2">compile</a> or load options</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/cam/intro.html#2">Concurrent</a> Data Store</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/conf.html#2">configuring</a> Berkeley DB for UNIX systems</td></tr>
|
||||
<tr><td align=right> recovering </td><td><a href="../ref/am/verify.html#4">corrupted</a> databases</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/count.html#2">counting</a> data items for a key</td></tr>
|
||||
<tr><td align=right> closing a </td><td><a href="../ref/am/curclose.html#3">cursor</a></td></tr>
|
||||
<tr><td align=right> deleting records with a </td><td><a href="../ref/am/curdel.html#3">cursor</a></td></tr>
|
||||
<tr><td align=right> duplicating a </td><td><a href="../ref/am/curdup.html#3">cursor</a></td></tr>
|
||||
<tr><td align=right> retrieving records with a </td><td><a href="../ref/am/curget.html#3">cursor</a></td></tr>
|
||||
<tr><td align=right> storing records with a </td><td><a href="../ref/am/curput.html#3">cursor</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/stability.html#2">cursor</a> stability</td></tr>
|
||||
<tr><td align=right> database </td><td><a href="../ref/am/cursor.html#2">cursors</a></td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#data">data</a></td></tr>
|
||||
<tr><td align=right> utility to upgrade </td><td><a href="../utility/db_upgrade.html#3">database</a> files</td></tr>
|
||||
<tr><td align=right> utility to verify </td><td><a href="../utility/db_verify.html#3">database</a> files</td></tr>
|
||||
<tr><td align=right>DBcursor->c_put</td><td><a href="../api_c/dbc_put.html#DB_AFTER">DB_AFTER</a></td></tr>
|
||||
<tr><td align=right>DB->verify</td><td><a href="../api_c/db_verify.html#DB_AGGRESSIVE">DB_AGGRESSIVE</a></td></tr>
|
||||
<tr><td align=right>DB->put</td><td><a href="../api_c/db_put.html#DB_APPEND">DB_APPEND</a></td></tr>
|
||||
<tr><td align=right>log_archive</td><td><a href="../api_c/log_archive.html#DB_ARCH_ABS">DB_ARCH_ABS</a></td></tr>
|
||||
<tr><td align=right>log_archive</td><td><a href="../api_c/log_archive.html#DB_ARCH_DATA">DB_ARCH_DATA</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_archive.html#2">db_archive</a></td></tr>
|
||||
<tr><td align=right>log_archive</td><td><a href="../api_c/log_archive.html#DB_ARCH_LOG">DB_ARCH_LOG</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_put</td><td><a href="../api_c/dbc_put.html#DB_BEFORE">DB_BEFORE</a></td></tr>
|
||||
<tr><td align=right>DB->stat</td><td><a href="../api_c/db_stat.html#DB_CACHED_COUNTS">DB_CACHED_COUNTS</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_flags</td><td><a href="../api_c/env_set_flags.html#DB_CDB_ALLDB">DB_CDB_ALLDB</a></td></tr>
|
||||
<tr><td align=right>log_get</td><td><a href="../api_c/log_get.html#DB_CHECKPOINT">DB_CHECKPOINT</a></td></tr>
|
||||
<tr><td align=right>log_put</td><td><a href="../api_c/log_put.html#DB_CHECKPOINT">DB_CHECKPOINT</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_checkpoint.html#2">db_checkpoint</a></td></tr>
|
||||
<tr><td align=right>db_env_create</td><td><a href="../api_c/env_create.html#DB_CLIENT">DB_CLIENT</a></td></tr>
|
||||
<tr><td align=right>File naming</td><td><a href="../ref/env/naming.html#DB_CONFIG">DB_CONFIG</a></td></tr>
|
||||
<tr><td align=right>DB->get</td><td><a href="../api_c/db_get.html#DB_CONSUME">DB_CONSUME</a></td></tr>
|
||||
<tr><td align=right>DB->get</td><td><a href="../api_c/db_get.html#DB_CONSUME_WAIT">DB_CONSUME_WAIT</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_create.html#2">db_create</a></td></tr>
|
||||
<tr><td align=right>DB->open</td><td><a href="../api_c/db_open.html#DB_CREATE">DB_CREATE</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_CREATE">DB_CREATE</a></td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#DB_CREATE">DB_CREATE</a></td></tr>
|
||||
<tr><td align=right>log_put</td><td><a href="../api_c/log_put.html#DB_CURLSN">DB_CURLSN</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_CURRENT">DB_CURRENT</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_put</td><td><a href="../api_c/dbc_put.html#DB_CURRENT">DB_CURRENT</a></td></tr>
|
||||
<tr><td align=right>log_get</td><td><a href="../api_c/log_get.html#DB_CURRENT">DB_CURRENT</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbc_close.html#2">DBcursor->c_close</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbc_count.html#2">DBcursor->c_count</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbc_del.html#2">DBcursor->c_del</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbc_dup.html#2">DBcursor->c_dup</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbc_get.html#2">DBcursor->c_get</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbc_put.html#2">DBcursor->c_put</a></td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#DB_DBT_MALLOC">DB_DBT_MALLOC</a></td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#DB_DBT_PARTIAL">DB_DBT_PARTIAL</a></td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#DB_DBT_REALLOC">DB_DBT_REALLOC</a></td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#DB_DBT_USERMEM">DB_DBT_USERMEM</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_deadlock.html#2">db_deadlock</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_dump.html#2">db_dump</a></td></tr>
|
||||
<tr><td align=right>DB->set_flags</td><td><a href="../api_c/db_set_flags.html#DB_DUP">DB_DUP</a></td></tr>
|
||||
<tr><td align=right>DB->set_flags</td><td><a href="../api_c/db_set_flags.html#DB_DUPSORT">DB_DUPSORT</a></td></tr>
|
||||
<tr><td align=right>DB->upgrade</td><td><a href="../api_c/db_upgrade.html#DB_DUPSORT">DB_DUPSORT</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_create.html#2">db_env_create</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_close.html#2">DBENV->close</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_err.html#2">DBENV->err</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_open.html#2">DBENV->open</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_remove.html#2">DBENV->remove</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_cachesize.html#2">DBENV->set_cachesize</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_data_dir.html#2">DBENV->set_data_dir</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_errcall.html#2">DBENV->set_errcall</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_errfile.html#2">DBENV->set_errfile</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_errpfx.html#2">DBENV->set_errpfx</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_feedback.html#2">DBENV->set_feedback</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_flags.html#2">DBENV->set_flags</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lg_bsize.html#2">DBENV->set_lg_bsize</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lg_dir.html#2">DBENV->set_lg_dir</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lg_max.html#2">DBENV->set_lg_max</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lk_conflicts.html#2">DBENV->set_lk_conflicts</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lk_detect.html#2">DBENV->set_lk_detect</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lk_max.html#2">DBENV->set_lk_max</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lk_max_lockers.html#2">DBENV->set_lk_max_lockers</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lk_max_locks.html#2">DBENV->set_lk_max_locks</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_lk_max_objects.html#2">DBENV->set_lk_max_objects</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_mp_mmapsize.html#2">DBENV->set_mp_mmapsize</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_mutexlocks.html#2">DBENV->set_mutexlocks</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_paniccall.html#2">DBENV->set_paniccall</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_rec_init.html#2">DBENV->set_recovery_init</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_server.html#2">DBENV->set_server</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_shm_key.html#2">DBENV->set_shm_key</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_tmp_dir.html#2">DBENV->set_tmp_dir</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_tx_max.html#2">DBENV->set_tx_max</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_tx_recover.html#2">DBENV->set_tx_recover</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_tx_timestamp.html#2">DBENV->set_tx_timestamp</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_verbose.html#2">DBENV->set_verbose</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_close.html#2">db_env_set_func_close</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_dirfree.html#2">db_env_set_func_dirfree</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_dirlist.html#2">db_env_set_func_dirlist</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_exists.html#2">db_env_set_func_exists</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_free.html#2">db_env_set_func_free</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_fsync.html#2">db_env_set_func_fsync</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_ioinfo.html#2">db_env_set_func_ioinfo</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_malloc.html#2">db_env_set_func_malloc</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_map.html#2">db_env_set_func_map</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_open.html#2">db_env_set_func_open</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_read.html#2">db_env_set_func_read</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_realloc.html#2">db_env_set_func_realloc</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_rename.html#2">db_env_set_func_rename</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_seek.html#2">db_env_set_func_seek</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_sleep.html#2">db_env_set_func_sleep</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_unlink.html#2">db_env_set_func_unlink</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_unmap.html#2">db_env_set_func_unmap</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_write.html#2">db_env_set_func_write</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/set_func_yield.html#2">db_env_set_func_yield</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_pageyield.html#2">db_env_set_pageyield</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_panicstate.html#2">db_env_set_panicstate</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_region_init.html#2">db_env_set_region_init</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_set_tas_spins.html#2">db_env_set_tas_spins</a></td></tr>
|
||||
<tr><td align=right>DB->open</td><td><a href="../api_c/db_open.html#DB_EXCL">DB_EXCL</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_FIRST">DB_FIRST</a></td></tr>
|
||||
<tr><td align=right>log_get</td><td><a href="../api_c/log_get.html#DB_FIRST">DB_FIRST</a></td></tr>
|
||||
<tr><td align=right>log_put</td><td><a href="../api_c/log_put.html#DB_FLUSH">DB_FLUSH</a></td></tr>
|
||||
<tr><td align=right>DBENV->remove</td><td><a href="../api_c/env_remove.html#DB_FORCE">DB_FORCE</a></td></tr>
|
||||
<tr><td align=right>txn_checkpoint</td><td><a href="../api_c/txn_checkpoint.html#DB_FORCE">DB_FORCE</a></td></tr>
|
||||
<tr><td align=right>DB->get</td><td><a href="../api_c/db_get.html#DB_GET_BOTH">DB_GET_BOTH</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_GET_BOTH">DB_GET_BOTH</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_GET_RECNO">DB_GET_RECNO</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_close.html#2">DB->close</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_cursor.html#2">DB->cursor</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_del.html#2">DB->del</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_fd.html#2">DB->fd</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_get.html#2">DB->get</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_get_byteswapped.html#2">DB->get_byteswapped</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_get_type.html#2">DB->get_type</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_join.html#2">DB->join</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_key_range.html#2">DB->key_range</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_open.html#2">DB->open</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_put.html#2">DB->put</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_remove.html#2">DB->remove</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_rename.html#2">DB->rename</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_append_recno.html#2">DB->set_append_recno</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_bt_compare.html#2">DB->set_bt_compare</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_bt_minkey.html#2">DB->set_bt_minkey</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_bt_prefix.html#2">DB->set_bt_prefix</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_cachesize.html#2">DB->set_cachesize</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_dup_compare.html#2">DB->set_dup_compare</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_errcall.html#2">DB->set_errcall</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_errfile.html#2">DB->set_errfile</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_errpfx.html#2">DB->set_errpfx</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_feedback.html#2">DB->set_feedback</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_flags.html#2">DB->set_flags</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_h_ffactor.html#2">DB->set_h_ffactor</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_h_hash.html#2">DB->set_h_hash</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_h_nelem.html#2">DB->set_h_nelem</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_lorder.html#2">DB->set_lorder</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_malloc.html#2">DB->set_malloc</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_pagesize.html#2">DB->set_pagesize</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_paniccall.html#2">DB->set_paniccall</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_q_extentsize.html#2">DB->set_q_extentsize</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_realloc.html#2">DB->set_realloc</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_re_delim.html#2">DB->set_re_delim</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_re_len.html#2">DB->set_re_len</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_re_pad.html#2">DB->set_re_pad</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_set_re_source.html#2">DB->set_re_source</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_stat.html#2">DB->stat</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_sync.html#2">DB->sync</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_upgrade.html#2">DB->upgrade</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_verify.html#2">DB->verify</a></td></tr>
|
||||
<tr><td align=right>File naming</td><td><a href="../ref/env/naming.html#DB_HOME">DB_HOME</a></td></tr>
|
||||
<tr><td align=right>File naming</td><td><a href="../ref/env/naming.html#db_home">db_home</a></td></tr>
|
||||
<tr><td align=right> DB->close </td><td><a href="../api_c/db_close.html#3">DB_INCOMPLETE</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_INIT_CDB">DB_INIT_CDB</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_INIT_LOCK">DB_INIT_LOCK</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_INIT_LOG">DB_INIT_LOG</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_INIT_MPOOL">DB_INIT_MPOOL</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_INIT_TXN">DB_INIT_TXN</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_JOINENV">DB_JOINENV</a></td></tr>
|
||||
<tr><td align=right>DB->join</td><td><a href="../api_c/db_join.html#DB_JOIN_ITEM">DB_JOIN_ITEM</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_JOIN_ITEM">DB_JOIN_ITEM</a></td></tr>
|
||||
<tr><td align=right>DB->join</td><td><a href="../api_c/db_join.html#DB_JOIN_NOSORT">DB_JOIN_NOSORT</a></td></tr>
|
||||
<tr><td align=right>Error returns to applications</td><td><a href="../ref/program/errorret.html#DB_KEYEMPTY">DB_KEYEMPTY</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_put</td><td><a href="../api_c/dbc_put.html#DB_KEYFIRST">DB_KEYFIRST</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_put</td><td><a href="../api_c/dbc_put.html#DB_KEYLAST">DB_KEYLAST</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_LAST">DB_LAST</a></td></tr>
|
||||
<tr><td align=right>log_get</td><td><a href="../api_c/log_get.html#DB_LAST">DB_LAST</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_load.html#2">db_load</a></td></tr>
|
||||
<tr><td align=right>lock_detect</td><td><a href="../api_c/lock_detect.html#DB_LOCK_CONFLICT">DB_LOCK_CONFLICT</a></td></tr>
|
||||
<tr><td align=right>Error returns to applications</td><td><a href="../ref/program/errorret.html#DB_LOCK_DEADLOCK">DB_LOCK_DEADLOCK</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_lk_detect</td><td><a href="../api_c/env_set_lk_detect.html#DB_LOCK_DEFAULT">DB_LOCK_DEFAULT</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_LOCKDOWN">DB_LOCKDOWN</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#DB_LOCK_GET">DB_LOCK_GET</a></td></tr>
|
||||
<tr><td align=right>lock_get</td><td><a href="../api_c/lock_get.html#DB_LOCK_NOTGRANTED">DB_LOCK_NOTGRANTED</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#DB_LOCK_NOTGRANTED">DB_LOCK_NOTGRANTED</a></td></tr>
|
||||
<tr><td align=right>Error returns to applications</td><td><a href="../ref/program/errorret.html#DB_LOCK_NOTGRANTED">DB_LOCK_NOTGRANTED</a></td></tr>
|
||||
<tr><td align=right>lock_get</td><td><a href="../api_c/lock_get.html#DB_LOCK_NOWAIT">DB_LOCK_NOWAIT</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#DB_LOCK_NOWAIT">DB_LOCK_NOWAIT</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_lk_detect</td><td><a href="../api_c/env_set_lk_detect.html#DB_LOCK_OLDEST">DB_LOCK_OLDEST</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#DB_LOCK_PUT">DB_LOCK_PUT</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#DB_LOCK_PUT_ALL">DB_LOCK_PUT_ALL</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#DB_LOCK_PUT_OBJ">DB_LOCK_PUT_OBJ</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_lk_detect</td><td><a href="../api_c/env_set_lk_detect.html#DB_LOCK_RANDOM">DB_LOCK_RANDOM</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_lk_detect</td><td><a href="../api_c/env_set_lk_detect.html#DB_LOCK_YOUNGEST">DB_LOCK_YOUNGEST</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/db_lsn.html#2">DB_LSN</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbm.html#2">dbm/ndbm</a></td></tr>
|
||||
<tr><td align=right>memp_fput</td><td><a href="../api_c/memp_fput.html#DB_MPOOL_CLEAN">DB_MPOOL_CLEAN</a></td></tr>
|
||||
<tr><td align=right>memp_fset</td><td><a href="../api_c/memp_fset.html#DB_MPOOL_CLEAN">DB_MPOOL_CLEAN</a></td></tr>
|
||||
<tr><td align=right>memp_fget</td><td><a href="../api_c/memp_fget.html#DB_MPOOL_CREATE">DB_MPOOL_CREATE</a></td></tr>
|
||||
<tr><td align=right>memp_fput</td><td><a href="../api_c/memp_fput.html#DB_MPOOL_DIRTY">DB_MPOOL_DIRTY</a></td></tr>
|
||||
<tr><td align=right>memp_fset</td><td><a href="../api_c/memp_fset.html#DB_MPOOL_DIRTY">DB_MPOOL_DIRTY</a></td></tr>
|
||||
<tr><td align=right>memp_fput</td><td><a href="../api_c/memp_fput.html#DB_MPOOL_DISCARD">DB_MPOOL_DISCARD</a></td></tr>
|
||||
<tr><td align=right>memp_fset</td><td><a href="../api_c/memp_fset.html#DB_MPOOL_DISCARD">DB_MPOOL_DISCARD</a></td></tr>
|
||||
<tr><td align=right>memp_fget</td><td><a href="../api_c/memp_fget.html#DB_MPOOL_LAST">DB_MPOOL_LAST</a></td></tr>
|
||||
<tr><td align=right>memp_fget</td><td><a href="../api_c/memp_fget.html#DB_MPOOL_NEW">DB_MPOOL_NEW</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_NEXT">DB_NEXT</a></td></tr>
|
||||
<tr><td align=right>log_get</td><td><a href="../api_c/log_get.html#DB_NEXT">DB_NEXT</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_NEXT_DUP">DB_NEXT_DUP</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_NEXT_NODUP">DB_NEXT_NODUP</a></td></tr>
|
||||
<tr><td align=right>DB->put</td><td><a href="../api_c/db_put.html#DB_NODUPDATA">DB_NODUPDATA</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_put</td><td><a href="../api_c/dbc_put.html#DB_NODUPDATA">DB_NODUPDATA</a></td></tr>
|
||||
<tr><td align=right>DB->open</td><td><a href="../api_c/db_open.html#DB_NOMMAP">DB_NOMMAP</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_flags</td><td><a href="../api_c/env_set_flags.html#DB_NOMMAP">DB_NOMMAP</a></td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#DB_NOMMAP">DB_NOMMAP</a></td></tr>
|
||||
<tr><td align=right>DB->verify</td><td><a href="../api_c/db_verify.html#DB_NOORDERCHK">DB_NOORDERCHK</a></td></tr>
|
||||
<tr><td align=right>DB->put</td><td><a href="../api_c/db_put.html#DB_NOOVERWRITE">DB_NOOVERWRITE</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_server</td><td><a href="../api_c/env_set_server.html#DB_NOSERVER">DB_NOSERVER</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_server</td><td><a href="../api_c/env_set_server.html#DB_NOSERVER_ID">DB_NOSERVER_ID</a></td></tr>
|
||||
<tr><td align=right>DB->close</td><td><a href="../api_c/db_close.html#DB_NOSYNC">DB_NOSYNC</a></td></tr>
|
||||
<tr><td align=right>Error returns to applications</td><td><a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a></td></tr>
|
||||
<tr><td align=right>DB->open</td><td><a href="../api_c/db_open.html#DB_OLD_VERSION">DB_OLD_VERSION</a></td></tr>
|
||||
<tr><td align=right>DB->upgrade</td><td><a href="../api_c/db_upgrade.html#DB_OLD_VERSION">DB_OLD_VERSION</a></td></tr>
|
||||
<tr><td align=right>DB->verify</td><td><a href="../api_c/db_verify.html#DB_ORDERCHKONLY">DB_ORDERCHKONLY</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_dup</td><td><a href="../api_c/dbc_dup.html#DB_POSITION">DB_POSITION</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_PREV">DB_PREV</a></td></tr>
|
||||
<tr><td align=right>log_get</td><td><a href="../api_c/log_get.html#DB_PREV">DB_PREV</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_PREV_NODUP">DB_PREV_NODUP</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_printlog.html#2">db_printlog</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_PRIVATE">DB_PRIVATE</a></td></tr>
|
||||
<tr><td align=right>DB->open</td><td><a href="../api_c/db_open.html#DB_RDONLY">DB_RDONLY</a></td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#DB_RDONLY">DB_RDONLY</a></td></tr>
|
||||
<tr><td align=right>DB->set_flags</td><td><a href="../api_c/db_set_flags.html#DB_RECNUM">DB_RECNUM</a></td></tr>
|
||||
<tr><td align=right>DB->stat</td><td><a href="../api_c/db_stat.html#DB_RECORDCOUNT">DB_RECORDCOUNT</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_RECOVER">DB_RECOVER</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_feedback</td><td><a href="../api_c/env_set_feedback.html#DB_RECOVER">DB_RECOVER</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_recover.html#2">db_recover</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_RECOVER_FATAL">DB_RECOVER_FATAL</a></td></tr>
|
||||
<tr><td align=right>DB->set_flags</td><td><a href="../api_c/db_set_flags.html#DB_RENUMBER">DB_RENUMBER</a></td></tr>
|
||||
<tr><td align=right>DB->set_flags</td><td><a href="../api_c/db_set_flags.html#DB_REVSPLITOFF">DB_REVSPLITOFF</a></td></tr>
|
||||
<tr><td align=right>DB->get</td><td><a href="../api_c/db_get.html#DB_RMW">DB_RMW</a></td></tr>
|
||||
<tr><td align=right>DB->join</td><td><a href="../api_c/db_join.html#DB_RMW">DB_RMW</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_RMW">DB_RMW</a></td></tr>
|
||||
<tr><td align=right>Error returns to applications</td><td><a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a></td></tr>
|
||||
<tr><td align=right>DB->verify</td><td><a href="../api_c/db_verify.html#DB_SALVAGE">DB_SALVAGE</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_SET">DB_SET</a></td></tr>
|
||||
<tr><td align=right>log_get</td><td><a href="../api_c/log_get.html#DB_SET">DB_SET</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_SET_RANGE">DB_SET_RANGE</a></td></tr>
|
||||
<tr><td align=right>DB->get</td><td><a href="../api_c/db_get.html#DB_SET_RECNO">DB_SET_RECNO</a></td></tr>
|
||||
<tr><td align=right>DBcursor->c_get</td><td><a href="../api_c/dbc_get.html#DB_SET_RECNO">DB_SET_RECNO</a></td></tr>
|
||||
<tr><td align=right>DB->set_flags</td><td><a href="../api_c/db_set_flags.html#DB_SNAPSHOT">DB_SNAPSHOT</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_stat.html#2">db_stat</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_strerror.html#2">db_strerror</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_SYSTEM_MEM">DB_SYSTEM_MEM</a></td></tr>
|
||||
<tr><td align=right>DB->open</td><td><a href="../api_c/db_open.html#DB_THREAD">DB_THREAD</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_THREAD">DB_THREAD</a></td></tr>
|
||||
<tr><td align=right>DB->open</td><td><a href="../api_c/db_open.html#DB_TRUNCATE">DB_TRUNCATE</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_tx_recover</td><td><a href="../api_c/env_set_tx_recover.html#DB_TXN_ABORT">DB_TXN_ABORT</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_tx_recover</td><td><a href="../api_c/env_set_tx_recover.html#DB_TXN_BACKWARD_ROLL">DB_TXN_BACKWARD_ROLL</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_tx_recover</td><td><a href="../api_c/env_set_tx_recover.html#DB_TXN_FORWARD_ROLL">DB_TXN_FORWARD_ROLL</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_flags</td><td><a href="../api_c/env_set_flags.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a></td></tr>
|
||||
<tr><td align=right>txn_begin</td><td><a href="../api_c/txn_begin.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a></td></tr>
|
||||
<tr><td align=right>txn_commit</td><td><a href="../api_c/txn_commit.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a></td></tr>
|
||||
<tr><td align=right>txn_begin</td><td><a href="../api_c/txn_begin.html#DB_TXN_NOWAIT">DB_TXN_NOWAIT</a></td></tr>
|
||||
<tr><td align=right>txn_begin</td><td><a href="../api_c/txn_begin.html#DB_TXN_SYNC">DB_TXN_SYNC</a></td></tr>
|
||||
<tr><td align=right>txn_commit</td><td><a href="../api_c/txn_commit.html#DB_TXN_SYNC">DB_TXN_SYNC</a></td></tr>
|
||||
<tr><td align=right>DB->set_feedback</td><td><a href="../api_c/db_set_feedback.html#DB_UPGRADE">DB_UPGRADE</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_upgrade.html#2">db_upgrade</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_USE_ENVIRON">DB_USE_ENVIRON</a></td></tr>
|
||||
<tr><td align=right>DBENV->remove</td><td><a href="../api_c/env_remove.html#DB_USE_ENVIRON">DB_USE_ENVIRON</a></td></tr>
|
||||
<tr><td align=right>DBENV->open</td><td><a href="../api_c/env_open.html#DB_USE_ENVIRON_ROOT">DB_USE_ENVIRON_ROOT</a></td></tr>
|
||||
<tr><td align=right>DBENV->remove</td><td><a href="../api_c/env_remove.html#DB_USE_ENVIRON_ROOT">DB_USE_ENVIRON_ROOT</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_verbose</td><td><a href="../api_c/env_set_verbose.html#DB_VERB_CHKPOINT">DB_VERB_CHKPOINT</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_verbose</td><td><a href="../api_c/env_set_verbose.html#DB_VERB_DEADLOCK">DB_VERB_DEADLOCK</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_verbose</td><td><a href="../api_c/env_set_verbose.html#DB_VERB_RECOVERY">DB_VERB_RECOVERY</a></td></tr>
|
||||
<tr><td align=right>DBENV->set_verbose</td><td><a href="../api_c/env_set_verbose.html#DB_VERB_WAITSFOR">DB_VERB_WAITSFOR</a></td></tr>
|
||||
<tr><td align=right>DB->set_feedback</td><td><a href="../api_c/db_set_feedback.html#DB_VERIFY">DB_VERIFY</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../utility/db_verify.html#2">db_verify</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/env_version.html#2">db_version</a></td></tr>
|
||||
<tr><td align=right>DB->cursor</td><td><a href="../api_c/db_cursor.html#DB_WRITECURSOR">DB_WRITECURSOR</a></td></tr>
|
||||
<tr><td align=right>db_create</td><td><a href="../api_c/db_create.html#DB_XA_CREATE">DB_XA_CREATE</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/lock/dead.html#2">deadlocks</a></td></tr>
|
||||
<tr><td align=right> utility to detect </td><td><a href="../utility/db_deadlock.html#3">deadlocks</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/debug/common.html#2">debugging</a> applications</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/delete.html#2">deleting</a> records</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/curdel.html#2">deleting</a> records with a cursor</td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--disable-bigfile">--disable-bigfile</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/program/diskspace.html#2">disk</a> space requirements</td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#dlen">dlen</a></td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#doff">doff</a></td></tr>
|
||||
<tr><td align=right> utility to </td><td><a href="../utility/db_dump.html#3">dump</a> databases as text files</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am_conf/dup.html#2">duplicate</a> data items</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/curdup.html#2">duplicating</a> a cursor</td></tr>
|
||||
<tr><td align=right> configuring </td><td><a href="../ref/build_unix/conf.html#9">dynamic</a> shared libraries</td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-compat185">--enable-compat185</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-cxx">--enable-cxx</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-debug">--enable-debug</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-debug_rop">--enable-debug_rop</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-debug_wop">--enable-debug_wop</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-diagnostic">--enable-diagnostic</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-dump185">--enable-dump185</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-dynamic">--enable-dynamic</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-java">--enable-java</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-posixmutexes">--enable-posixmutexes</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-rpc">--enable-rpc</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-shared">--enable-shared</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-tcl">--enable-tcl</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-test">--enable-test</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-uimutexes">--enable-uimutexes</a></td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--enable-umrw">--enable-umrw</a></td></tr>
|
||||
<tr><td align=right> byte </td><td><a href="../ref/program/byteorder.html#3">endian</a></td></tr>
|
||||
<tr><td align=right> database </td><td><a href="../ref/env/create.html#2">environment</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/program/environ.html#2">environment</a> variables</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/error.html#2">error</a> handling</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/program/errorret.html#3">error</a> name space</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/program/errorret.html#2">error</a> returns</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/install/file.html#2">/etc/magic</a></td></tr>
|
||||
<tr><td align=right> selecting a Queue </td><td><a href="../ref/am_conf/extentsize.html#2">extent</a> size</td></tr>
|
||||
<tr><td align=right> Java </td><td><a href="../ref/java/faq.html#2">FAQ</a></td></tr>
|
||||
<tr><td align=right> Tcl </td><td><a href="../ref/tcl/faq.html#2">FAQ</a></td></tr>
|
||||
<tr><td align=right> configuring without large </td><td><a href="../ref/build_unix/conf.html#4">file</a> support</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/install/file.html#3">file</a> utility</td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#fileid">fileid</a></td></tr>
|
||||
<tr><td align=right> recovery and </td><td><a href="../ref/transapp/filesys.html#2">filesystem</a> operations</td></tr>
|
||||
<tr><td align=right> remote </td><td><a href="../ref/env/remote.html#2">filesystems</a></td></tr>
|
||||
<tr><td align=right> page </td><td><a href="../ref/am_conf/h_ffactor.html#2">fill</a> factor</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/freebsd.html#2">FreeBSD</a></td></tr>
|
||||
<tr><td align=right> Berkeley DB </td><td><a href="../ref/program/scope.html#3">free-threaded</a> handles</td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#ftype">ftype</a></td></tr>
|
||||
<tr><td align=right> specifying a database </td><td><a href="../ref/am_conf/h_hash.html#2">hash</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am_conf/h_nelem.html#2">hash</a> table size</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/hpux.html#2">HP-UX</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/hsearch.html#2">hsearch</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/install.html#2">installing</a> Berkeley DB for UNIX systems</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/program/compatible.html#2">interface</a> compatibility</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/irix.html#2">IRIX</a></td></tr>
|
||||
<tr><td align=right> configuring the </td><td><a href="../ref/build_unix/conf.html#10">Java</a> API</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/java/compat.html#2">Java</a> compatibility</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/java/conf.html#2">Java</a> configuration</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/java/faq.html#3">Java</a> FAQ</td></tr>
|
||||
<tr><td align=right> logical </td><td><a href="../ref/am/join.html#2">join</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/dbt.html#2">key/data</a> pairs</td></tr>
|
||||
<tr><td align=right> retrieved </td><td><a href="../api_c/dbt.html#4">key/data</a> permanence</td></tr>
|
||||
<tr><td align=right> database </td><td><a href="../ref/program/dbsizes.html#2">limits</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/linux.html#2">Linux</a></td></tr>
|
||||
<tr><td align=right> changing compile or </td><td><a href="../ref/build_unix/flags.html#3">load</a> options</td></tr>
|
||||
<tr><td align=right> utility to </td><td><a href="../utility/db_load.html#3">load</a> text files into databases</td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#lock">lock</a></td></tr>
|
||||
<tr><td align=right> standard </td><td><a href="../ref/lock/stdmode.html#2">lock</a> modes</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/lock_detect.html#2">lock_detect</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/lock_get.html#2">lock_get</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/lock_id.html#2">lock_id</a></td></tr>
|
||||
<tr><td align=right> page-level </td><td><a href="../ref/lock/page.html#2">locking</a></td></tr>
|
||||
<tr><td align=right> two-phase </td><td><a href="../ref/lock/twopl.html#2">locking</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/lock/nondb.html#2">locking</a> and non-Berkeley DB applications</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/lock/config.html#2">locking</a> configuration</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/lock/am_conv.html#2">locking</a> conventions</td></tr>
|
||||
<tr><td align=right> Berkeley DB Concurrent Data Store </td><td><a href="../ref/lock/cam_conv.html#2">locking</a> conventions</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/lock/intro.html#2">locking</a> introduction</td></tr>
|
||||
<tr><td align=right> sizing the </td><td><a href="../ref/lock/max.html#2">locking</a> subsystem</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/lock/notxn.html#2">locking</a> without transactions</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/lock_put.html#2">lock_put</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/lock_stat.html#2">lock_stat</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/lock_vec.html#2">lock_vec</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/log/limits.html#2">log</a> file limits</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/transapp/logfile.html#2">log</a> file removal</td></tr>
|
||||
<tr><td align=right> utility to display </td><td><a href="../utility/db_printlog.html#3">log</a> files as text</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_archive.html#2">log_archive</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_compare.html#2">log_compare</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_file.html#2">log_file</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_flush.html#2">log_flush</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_get.html#2">log_get</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/log/config.html#2">logging</a> configuration</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/log/intro.html#2">logging</a> introduction</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_put.html#2">log_put</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_register.html#2">log_register</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_stat.html#2">log_stat</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/log_unregister.html#2">log_unregister</a></td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#lsn_offset">lsn_offset</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/mp/config.html#2">memory</a> pool configuration</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_fclose.html#2">memp_fclose</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_fget.html#2">memp_fget</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_fopen.html#2">memp_fopen</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_fput.html#2">memp_fput</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_fset.html#2">memp_fset</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_fsync.html#2">memp_fsync</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_register.html#2">memp_register</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_stat.html#2">memp_stat</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_sync.html#2">memp_sync</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/memp_trickle.html#2">memp_trickle</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#mode">mode</a></td></tr>
|
||||
<tr><td align=right> Berkeley DB library </td><td><a href="../ref/program/namespace.html#2">name</a> spaces</td></tr>
|
||||
<tr><td align=right> file </td><td><a href="../ref/env/naming.html#2">naming</a></td></tr>
|
||||
<tr><td align=right> retrieving Btree records by </td><td><a href="../ref/am_conf/bt_recnum.html#2">number</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#obj">obj</a></td></tr>
|
||||
<tr><td align=right>lock_vec</td><td><a href="../api_c/lock_vec.html#op">op</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/open.html#2">opening</a> a database</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/osf1.html#2">OSF/1</a></td></tr>
|
||||
<tr><td align=right> selecting a </td><td><a href="../ref/am_conf/pagesize.html#2">page</a> size</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/partial.html#2">partial</a> record storage and retrieval</td></tr>
|
||||
<tr><td align=right></td><td><a href="http://www.sleepycat.com/update/index.html">Patches,</a> Updates and Change logs</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/perl/intro.html#2">Perl</a></td></tr>
|
||||
<tr><td align=right> retrieved key/data </td><td><a href="../api_c/dbt.html#3">permanence</a></td></tr>
|
||||
<tr><td align=right>memp_fopen</td><td><a href="../api_c/memp_fopen.html#pgcookie">pgcookie</a></td></tr>
|
||||
<tr><td align=right> Sleepycat Software's Berkeley DB </td><td><a href="../ref/intro/products.html#2">products</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/qnx.html#2">QNX</a></td></tr>
|
||||
<tr><td align=right> logical </td><td><a href="../api_c/dbt.html#6">record</a> number format</td></tr>
|
||||
<tr><td align=right> logical </td><td><a href="../ref/am_conf/logrec.html#2">record</a> numbers</td></tr>
|
||||
<tr><td align=right> managing </td><td><a href="../ref/am_conf/recno.html#2">record-based</a> databases</td></tr>
|
||||
<tr><td align=right> logically renumbering </td><td><a href="../ref/am_conf/renumber.html#2">records</a></td></tr>
|
||||
<tr><td align=right> utility to </td><td><a href="../utility/db_recover.html#3">recover</a> database environments</td></tr>
|
||||
<tr><td align=right> Berkeley DB </td><td><a href="../ref/transapp/reclimit.html#2">recoverability</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/get.html#2">retrieving</a> records</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/curget.html#2">retrieving</a> records with a cursor</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/rpc/client.html#2">RPC</a> client</td></tr>
|
||||
<tr><td align=right> configuring a </td><td><a href="../ref/build_unix/conf.html#11">RPC</a> client/server</td></tr>
|
||||
<tr><td align=right> utility to support </td><td><a href="../utility/berkeley_db_svc.html#3">RPC</a> client/server</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/rpc/server.html#2">RPC</a> server</td></tr>
|
||||
<tr><td align=right> database </td><td><a href="../ref/am/verify.html#3">salvage</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/sco.html#2">SCO</a></td></tr>
|
||||
<tr><td align=right> Berkeley DB handle </td><td><a href="../ref/program/scope.html#2">scope</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/env/security.html#2">security</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/sendmail/intro.html#2">Sendmail</a></td></tr>
|
||||
<tr><td align=right> configuring </td><td><a href="../ref/build_unix/conf.html#8">shared</a> libraries</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/shlib.html#2">shared</a> libraries</td></tr>
|
||||
<tr><td align=right> application </td><td><a href="../ref/program/appsignals.html#2">signal</a> handling</td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#size">size</a></td></tr>
|
||||
<tr><td align=right></td><td><a href="http://www.sleepycat.com/">Sleepycat</a> Software</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/solaris.html#2">Solaris</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/distrib/layout.html#2">source</a> code layout</td></tr>
|
||||
<tr><td align=right> cursor </td><td><a href="../ref/am/stability.html#3">stability</a></td></tr>
|
||||
<tr><td align=right> database </td><td><a href="../ref/am/stat.html#2">statistics</a></td></tr>
|
||||
<tr><td align=right> utility to display database and environment </td><td><a href="../utility/db_stat.html#3">statistics</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/put.html#2">storing</a> records</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/curput.html#2">storing</a> records with a cursor</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/sunos.html#2">SunOS</a></td></tr>
|
||||
<tr><td align=right> loading Berkeley DB with </td><td><a href="../ref/tcl/intro.html#2">Tcl</a></td></tr>
|
||||
<tr><td align=right> using Berkeley DB with </td><td><a href="../ref/tcl/using.html#2">Tcl</a></td></tr>
|
||||
<tr><td align=right> configuring the </td><td><a href="../ref/build_unix/conf.html#12">Tcl</a> API</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/tcl/program.html#2">Tcl</a> API programming notes</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/tcl/faq.html#3">Tcl</a> FAQ</td></tr>
|
||||
<tr><td align=right> configuring the </td><td><a href="../ref/build_unix/conf.html#13">test</a> suite</td></tr>
|
||||
<tr><td align=right> running the </td><td><a href="../ref/test/run.html#2">test</a> suite</td></tr>
|
||||
<tr><td align=right> running the </td><td><a href="../ref/build_unix/test.html#2">test</a> suite under UNIX</td></tr>
|
||||
<tr><td align=right> running the </td><td><a href="../ref/build_win/test.html#2">test</a> suite under Windows</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am_conf/re_source.html#2">text</a> backing files</td></tr>
|
||||
<tr><td align=right> loading </td><td><a href="../ref/dumpload/text.html#2">text</a> into databases</td></tr>
|
||||
<tr><td align=right> dumping/loading </td><td><a href="../ref/dumpload/utility.html#2">text</a> to/from databases</td></tr>
|
||||
<tr><td align=right> building </td><td><a href="../ref/program/mt.html#2">threaded</a> applications</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/txn/config.html#2">transaction</a> configuration</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/txn/limits.html#2">transaction</a> limits</td></tr>
|
||||
<tr><td align=right> administering </td><td><a href="../ref/transapp/admin.html#2">transaction</a> protected applications</td></tr>
|
||||
<tr><td align=right> archival in </td><td><a href="../ref/transapp/archival.html#2">transaction</a> protected applications</td></tr>
|
||||
<tr><td align=right> checkpoints in </td><td><a href="../ref/transapp/checkpoint.html#2">transaction</a> protected applications</td></tr>
|
||||
<tr><td align=right> deadlock detection in </td><td><a href="../ref/transapp/deadlock.html#2">transaction</a> protected applications</td></tr>
|
||||
<tr><td align=right> recovery in </td><td><a href="../ref/transapp/recovery.html#2">transaction</a> protected applications</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/transapp/throughput.html#2">transaction</a> throughput</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/transapp/intro.html#2">Transactional</a> Data Store</td></tr>
|
||||
<tr><td align=right> Berkeley DB and </td><td><a href="../ref/txn/intro.html#2">transactions</a></td></tr>
|
||||
<tr><td align=right> nested </td><td><a href="../ref/txn/nested.html#2">transactions</a></td></tr>
|
||||
<tr><td align=right> configuring Berkeley DB with the </td><td><a href="../ref/xa/config.html#2">Tuxedo</a> System</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/txn_abort.html#2">txn_abort</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/txn_begin.html#2">txn_begin</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/txn_checkpoint.html#2">txn_checkpoint</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/txn_commit.html#2">txn_commit</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/txn_id.html#2">txn_id</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/txn_prepare.html#2">txn_prepare</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../api_c/txn_stat.html#2">txn_stat</a></td></tr>
|
||||
<tr><td align=right>DBT</td><td><a href="../api_c/dbt.html#ulen">ulen</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_unix/ultrix.html#2">Ultrix</a></td></tr>
|
||||
<tr><td align=right> building for </td><td><a href="../ref/build_unix/notes.html#3">UNIX</a> FAQ</td></tr>
|
||||
<tr><td align=right> configuring Berkeley DB for </td><td><a href="../ref/build_unix/conf.html#3">UNIX</a> systems</td></tr>
|
||||
<tr><td align=right>Patches, </td><td><a href="http://www.sleepycat.com/update/index.html">Updates</a> and Change logs</td></tr>
|
||||
<tr><td align=right> utility to </td><td><a href="../utility/db_upgrade.html#4">upgrade</a> database files</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/am/upgrade.html#2">upgrading</a> databases</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/arch/utilities.html#2">utilities</a></td></tr>
|
||||
<tr><td align=right> database </td><td><a href="../ref/am/verify.html#2">verification</a></td></tr>
|
||||
<tr><td align=right> utility to </td><td><a href="../utility/db_verify.html#4">verify</a> database files</td></tr>
|
||||
<tr><td align=right> building for </td><td><a href="../ref/build_vxworks/faq.html#3">VxWorks</a> FAQ</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_vxworks/notes.html#2">VxWorks</a> notes</td></tr>
|
||||
<tr><td align=right> running the test suite under </td><td><a href="../ref/build_win/test.html#3">Windows</a></td></tr>
|
||||
<tr><td align=right> building for </td><td><a href="../ref/build_win/faq.html#3">Windows</a> FAQ</td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/build_win/notes.html#2">Windows</a> notes</td></tr>
|
||||
<tr><td align=right>Configuring Berkeley DB</td><td><a href="../ref/build_unix/conf.html#--with-tcl=DIR">--with-tcl=DIR</a></td></tr>
|
||||
<tr><td align=right> </td><td><a href="../ref/xa/intro.html#2">XA</a> Resource Manager</td></tr>
|
||||
</table>
|
||||
</center>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,119 +0,0 @@
|
||||
<!--$Id: db_close.so,v 10.27 2000/09/08 15:20:28 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->close</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->close</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->close(DB *db, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->close function flushes any cached database information to disk,
|
||||
closes any open cursors, frees any allocated resources, and closes any
|
||||
underlying files. Since key/data pairs are cached in memory, failing to
|
||||
sync the file with the DB->close or <a href="../api_c/db_sync.html">DB->sync</a> function may result
|
||||
in inconsistent or lost information.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or the following value:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_NOSYNC">DB_NOSYNC</a><dd>Do not flush cached information to disk.
|
||||
<p>The <a href="../api_c/db_close.html#DB_NOSYNC">DB_NOSYNC</a> flag is a dangerous option. It should only be set
|
||||
if the application is doing logging (with transactions) so that the
|
||||
database is recoverable after a system or application crash, or if the
|
||||
database is always generated from scratch after any system or application
|
||||
crash.
|
||||
<p><b>It is important to understand that flushing cached information to disk
|
||||
only minimizes the window of opportunity for corrupted data.</b>
|
||||
While unlikely, it is possible for database corruption to happen if a
|
||||
system or application crash occurs while writing data to the database.
|
||||
To ensure that database corruption never occurs, applications must either:
|
||||
use transactions and logging with automatic recovery, use logging and
|
||||
application-specific recovery, or edit a copy of the database,
|
||||
and, once all applications using the database have successfully called
|
||||
DB->close, atomically replace the original database with the
|
||||
updated copy.
|
||||
</dl>
|
||||
<p>When multiple threads are using the Berkeley DB handle concurrently, only a single
|
||||
thread may call the DB->close function.
|
||||
<p>Once DB->close has been called, regardless of its return, the
|
||||
DB handle may not be accessed again.
|
||||
<a name="3"><!--meow--></a>
|
||||
<p>The DB->close function returns a non-zero error value on failure, 0 on success, and returns <a href="../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> if the underlying database still has
|
||||
dirty pages in the cache. (The only reason to return
|
||||
<a href="../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> is if another thread of control was writing pages
|
||||
in the underlying database file at the same time as the
|
||||
DB->close function was called. For this reason, a return of
|
||||
<a href="../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> can normally be ignored, or, in cases where it is
|
||||
a possible return value, the <a href="../api_c/db_close.html#DB_NOSYNC">DB_NOSYNC</a> option should probably
|
||||
have been specified.)
|
||||
<p>The DB->close function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->close function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->close function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,107 +0,0 @@
|
||||
<!--$Id: db_create.so,v 10.12 2000/10/25 18:51:08 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: db_create</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>db_create</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
db_create(DB **dbp, DB_ENV *dbenv, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The db_create function creates a DB structure which is the
|
||||
handle for a Berkeley DB database. A pointer to this structure is returned
|
||||
in the memory referenced by <b>db</b>.
|
||||
<p>If the <b>dbenv</b> argument is NULL, the database is standalone, i.e.,
|
||||
it is not part of any Berkeley DB environment.
|
||||
<p>If the <b>dbenv</b> argument is not NULL, the database is created within
|
||||
the specified Berkeley DB environment. The database access methods
|
||||
automatically make calls to the other subsystems in Berkeley DB based on the
|
||||
enclosing environment. For example, if the environment has been
|
||||
configured to use locking, then the access methods will automatically
|
||||
acquire the correct locks when reading and writing pages of the database.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or one of the following
|
||||
values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_XA_CREATE">DB_XA_CREATE</a><dd>Instead of creating a standalone database, create a database intended to
|
||||
be accessed via applications running under a X/Open conformant Transaction
|
||||
Manager. The database will be opened in the environment specified by the
|
||||
OPENINFO parameter of the GROUPS section of the ubbconfig file. See the
|
||||
<a href="../ref/xa/intro.html">XA Resource Manager</a> chapter in the
|
||||
Reference Guide for more information.
|
||||
</dl>
|
||||
<p>The DB handle contains a special field, "app_private", which
|
||||
is declared as type "void *". This field is provided for the use of
|
||||
the application program. It is initialized to NULL and is not further
|
||||
used by Berkeley DB in any way.
|
||||
<p>The db_create function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The db_create function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the db_create function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,103 +0,0 @@
|
||||
<!--$Id: db_cursor.so,v 10.25 2000/07/11 19:11:25 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->cursor</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->cursor</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->cursor(DB *db,
|
||||
DB_TXN *txnid, DBC **cursorp, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->cursor function
|
||||
creates a cursor and copies a pointer to it into the memory referenced
|
||||
by <b>cursorp</b>.
|
||||
<p>If the file is being accessed under transaction protection, the
|
||||
<b>txnid</b> parameter is a transaction ID returned from
|
||||
<a href="../api_c/txn_begin.html">txn_begin</a>, otherwise, NULL.
|
||||
<p>If transaction protection is enabled, cursors must be opened and closed
|
||||
within the context of a transaction, and the <b>txnid</b> parameter
|
||||
specifies the transaction context in which the cursor may be used.
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_WRITECURSOR">DB_WRITECURSOR</a><dd>Specify that the cursor will be used to update the database. This
|
||||
flag should <b>only</b> be set when the <a href="../api_c/env_open.html#DB_INIT_CDB">DB_INIT_CDB</a> flag
|
||||
was specified to <a href="../api_c/env_open.html">DBENV->open</a>.
|
||||
</dl>
|
||||
<p>The DB->cursor function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->cursor function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<p>The DB->cursor function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->cursor function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,101 +0,0 @@
|
||||
<!--$Id: db_del.so,v 10.23 2000/09/05 19:35:10 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->del</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->del</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->del(DB *db, DB_TXN *txnid, DBT *key, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->del function removes key/data pairs from the database. The
|
||||
key/data pair associated with the specified <b>key</b> is discarded from
|
||||
the database. In the presence of duplicate key values, all records
|
||||
associated with the designated key will be discarded.
|
||||
<p>If the file is being accessed under transaction protection, the
|
||||
<b>txnid</b> parameter is a transaction ID returned from
|
||||
<a href="../api_c/txn_begin.html">txn_begin</a>, otherwise, NULL.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>The DB->del function returns a non-zero error value on failure, 0 on success, and <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a> if the specified <b>key</b> did not exist in
|
||||
the file.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->del function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EACCES<dd>An attempt was made to modify a read-only database.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<p>The DB->del function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->del function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,93 +0,0 @@
|
||||
<!--$Id: db_err.so,v 10.11 1999/12/20 08:52:27 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->err</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->err</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
void
|
||||
DBENV->err(DB_ENV *dbenv, int error, const char *fmt, ...);
|
||||
<p>
|
||||
void
|
||||
DBENV->errx(DB_ENV *dbenv, const char *fmt, ...);
|
||||
<p>
|
||||
void
|
||||
DB->err(DB *db, int error, const char *fmt, ...);
|
||||
<p>
|
||||
void
|
||||
DB->errx(DB *db, const char *fmt, ...);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBENV->err, DBENV->errx, DB->err and
|
||||
DB->errx functions provide error messaging functionality for
|
||||
applications written using the Berkeley DB library.
|
||||
<p>The DBENV->err function constructs an error message consisting of the
|
||||
following elements:
|
||||
<p><blockquote><p><dl compact>
|
||||
<p><dt>An optional prefix string<dd>If no error callback function has been set using the
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a> function, any prefix string specified using the
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a> function, followed by two separating characters: a colon
|
||||
and a <space> character.
|
||||
<p><dt>An optional printf-style message<dd>The supplied message <b>fmt</b>, if non-NULL, where the ANSI C X3.159-1989 (ANSI C)
|
||||
printf function specifies how subsequent arguments are converted for
|
||||
output.
|
||||
<p><dt>A separator<dd>Two separating characters: a colon and a <space> character.
|
||||
<p><dt>A standard error string<dd>The standard system or Berkeley DB library error string associated with the
|
||||
<b>error</b> value, as returned by the <a href="../api_c/env_strerror.html">db_strerror</a> function.
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>This constructed error message is then handled as follows:
|
||||
<p><blockquote>
|
||||
<p>If an error callback function has been set (see <a href="../api_c/db_set_errcall.html">DB->set_errcall</a>
|
||||
and <a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>), that function is called with two
|
||||
arguments: any prefix string specified (see <a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a> and
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>), and the error message.
|
||||
<p>If a C library FILE * has been set (see <a href="../api_c/db_set_errfile.html">DB->set_errfile</a> and
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>), the error message is written to that output
|
||||
stream.
|
||||
<p>If none of these output options has been configured, the error message
|
||||
is written to stderr, the standard error output stream.</blockquote>
|
||||
<p>The DBENV->errx and DB->errx functions perform identically to the
|
||||
DBENV->err and DB->err functions except that they do not append
|
||||
the final separator characters and standard error string to the error
|
||||
message.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,92 +0,0 @@
|
||||
<!--$Id: db_fd.so,v 10.21 2000/03/01 21:41:28 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->fd</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->fd</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->fd(DB *db, int *fdp);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->fd function
|
||||
copies a file descriptor representative of the underlying database into
|
||||
the memory referenced by <b>fdp</b>. A file descriptor referencing the
|
||||
same file will be returned to all processes that call <a href="../api_c/db_open.html">DB->open</a> with
|
||||
the same <b>file</b> argument. This file descriptor may be safely used
|
||||
as an argument to the <b>fcntl</b>(2) and <b>flock</b>(2) locking
|
||||
functions. The file descriptor is not necessarily associated with any of
|
||||
the underlying files actually used by the access method.
|
||||
<p>The DB->fd function only supports a coarse-grained form of locking.
|
||||
Applications should use the lock manager where possible.
|
||||
<p>The DB->fd function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->fd function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->fd function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,156 +0,0 @@
|
||||
<!--$Id: db_get.so,v 10.31 2000/11/28 20:12:30 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->get</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->get</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->get(DB *db,
|
||||
DB_TXN *txnid, DBT *key, DBT *data, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->get function retrieves key/data pairs from the database. The
|
||||
address
|
||||
and length of the data associated with the specified <b>key</b> are
|
||||
returned in the structure referenced by <b>data</b>.
|
||||
<p>In the presence of duplicate key values, DB->get will return the
|
||||
first data item for the designated key. Duplicates are sorted by insert
|
||||
order except where this order has been overridden by cursor operations.
|
||||
<b>Retrieval of duplicates requires the use of cursor operations.</b>
|
||||
See <a href="../api_c/dbc_get.html">DBcursor->c_get</a> for details.
|
||||
<p>If the file is being accessed under transaction protection, the
|
||||
<b>txnid</b> parameter is a transaction ID returned from
|
||||
<a href="../api_c/txn_begin.html">txn_begin</a>, otherwise, NULL.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or one of the following
|
||||
values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_CONSUME">DB_CONSUME</a><dd>Return the record number and data from the available record closest to
|
||||
the head of the queue and delete the record. The cursor will be
|
||||
positioned on the deleted record. The record number will be returned
|
||||
in <b>key</b> as described in <a href="../api_c/dbt.html">DBT</a>. The data will be returned
|
||||
in the <b>data</b> parameter. A record is available if it is not
|
||||
deleted and is not currently locked. The underlying database must be
|
||||
of type Queue for DB_CONSUME to be specified.
|
||||
<p><dt><a name="DB_CONSUME_WAIT">DB_CONSUME_WAIT</a><dd>The DB_CONSUME_WAIT flag is the same as the DB_CONSUME
|
||||
flag except that if the Queue database is empty, the thread of control
|
||||
will wait until there is data in the queue before returning. The
|
||||
underlying database must be of type Queue for DB_CONSUME_WAIT
|
||||
to be specified.
|
||||
<p><dt><a name="DB_GET_BOTH">DB_GET_BOTH</a><dd>Retrieve the key/data pair only if both the key and data match the
|
||||
arguments.
|
||||
<p><dt><a name="DB_SET_RECNO">DB_SET_RECNO</a><dd>Retrieve the specified numbered key/data pair from a database.
|
||||
Upon return, both the <b>key</b> and <b>data</b> items will have been
|
||||
filled in, not just the data item as is done for all other uses of the
|
||||
DB->get function.
|
||||
<p>The <b>data</b> field of the specified <b>key</b>
|
||||
must be a pointer to a logical record number (i.e., a <b>db_recno_t</b>).
|
||||
This record number determines the record to be retrieved.
|
||||
<p>For DB_SET_RECNO to be specified, the underlying database must be
|
||||
of type Btree and it must have been created with the DB_RECNUM flag.
|
||||
</dl>
|
||||
<p>In addition, the following flag may be set by bitwise inclusively <b>OR</b>'ing it into the
|
||||
<b>flags</b> parameter:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_RMW">DB_RMW</a><dd>Acquire write locks instead of read locks when doing the retrieval.
|
||||
Setting this flag may decrease the likelihood of deadlock during a
|
||||
read-modify-write cycle by immediately acquiring the write lock during
|
||||
the read part of the cycle so that another thread of control acquiring
|
||||
a read lock for the same item, in its own read-modify-write cycle, will
|
||||
not result in deadlock.
|
||||
<p>As the DB->get interface will not hold locks across
|
||||
Berkeley DB interface calls in non-transactional environments, the
|
||||
<a href="../api_c/dbc_get.html#DB_RMW">DB_RMW</a> flag to the DB->get call is only meaningful in
|
||||
the presence of transactions.
|
||||
</dl>
|
||||
<p>If the database is a Queue or Recno database and the requested key exists,
|
||||
but was never explicitly created by the application or was later deleted,
|
||||
the DB->get function returns <a href="../ref/program/errorret.html#DB_KEYEMPTY">DB_KEYEMPTY</a>.
|
||||
<p>Otherwise, if the requested key is not in the database, the
|
||||
DB->get function returns <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
<p>Otherwise, the DB->get function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->get function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>ENOMEM<dd>There was insufficient memory to return the requested item.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>A record number of 0 was specified.
|
||||
<p>The <a href="../api_c/env_open.html#DB_THREAD">DB_THREAD</a> flag was specified to the
|
||||
<a href="../api_c/db_open.html">DB->open</a> function and none of the <a href="../api_c/dbt.html#DB_DBT_MALLOC">DB_DBT_MALLOC</a>,
|
||||
<a href="../api_c/dbt.html#DB_DBT_REALLOC">DB_DBT_REALLOC</a> or <a href="../api_c/dbt.html#DB_DBT_USERMEM">DB_DBT_USERMEM</a> flags were set in the
|
||||
<a href="../api_c/dbt.html">DBT</a>.
|
||||
</dl>
|
||||
<p>The DB->get function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->get function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,84 +0,0 @@
|
||||
<!--$Id: db_get_byteswapped.so,v 10.7 1999/12/20 08:52:27 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->get_byteswapped</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->get_byteswapped</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->get_byteswapped(DB *db);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->get_byteswapped function returns
|
||||
0
|
||||
if the underlying database files were created on an architecture
|
||||
of the same byte order as the current one, and
|
||||
1
|
||||
if they were not (i.e., big-endian on a little-endian machine or
|
||||
vice-versa). This field may be used to determine if application
|
||||
data needs to be adjusted for this architecture or not.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,81 +0,0 @@
|
||||
<!--$Id: db_get_type.so,v 10.10 1999/12/20 08:52:27 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->get_type</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->get_type</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
DBTYPE
|
||||
DB->get_type(DB *db);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->get_type function returns the type of the underlying access method
|
||||
(and file format). It returns one of DB_BTREE,
|
||||
DB_HASH or DB_RECNO. This value may be used to
|
||||
determine the type of the database after a return from <a href="../api_c/db_open.html">DB->open</a>
|
||||
with the <b>type</b> argument set to DB_UNKNOWN.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,151 +0,0 @@
|
||||
<!--$Id: db_join.so,v 10.30 2000/12/20 15:34:50 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->join</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->join</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->join(DB *primary,
|
||||
DBC **curslist, DBC **dbcp, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->join function creates a specialized cursor for use in performing
|
||||
joins on secondary indexes. For information on how to organize your data
|
||||
to use this functionality, see <a href="../ref/am/join.html">Logical
|
||||
join</a>.
|
||||
<p>The <b>primary</b> argument contains the DB handle of the primary
|
||||
database, which is keyed by the data values found in entries in the
|
||||
<b>curslist</b>.
|
||||
<p>The <b>curslist</b> argument contains a NULL terminated array of cursors.
|
||||
Each cursor must have been initialized to reference the key on which the
|
||||
underlying database should be joined. Typically, this initialization is done
|
||||
by a <a href="../api_c/dbc_get.html">DBcursor->c_get</a> call with the <a href="../api_c/dbc_get.html#DB_SET">DB_SET</a> flag specified. Once the
|
||||
cursors have been passed as part of a <b>curslist</b>, they should not
|
||||
be accessed or modified until the newly created join cursor has been closed,
|
||||
or else inconsistent results may be returned.
|
||||
<p>Joined values are retrieved by doing a sequential iteration over the first
|
||||
cursor in the <b>curslist</b> argument, and a nested iteration over each
|
||||
secondary cursor in the order they are specified in the <b>curslist</b>
|
||||
argument. This requires database traversals to search for the current
|
||||
datum in all the cursors after the first. For this reason, the best join
|
||||
performance normally results from sorting the cursors from the one that
|
||||
references the least number of data items to the one that references the
|
||||
most. By default, DB->join does this sort on behalf of its caller.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or the following value:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_JOIN_NOSORT">DB_JOIN_NOSORT</a><dd>Do not sort the cursors based on the number of data items they reference.
|
||||
If the data are structured such that cursors with many data items also
|
||||
share many common elements, higher performance will result from listing
|
||||
those cursors before cursors with fewer data items, that is, a sort order
|
||||
other than the default. The DB_JOIN_NOSORT flag permits
|
||||
applications to perform join optimization prior to calling DB->join.
|
||||
</dl>
|
||||
<p>A newly created cursor is returned in the memory location referenced by
|
||||
<b>dbcp</b> and has the standard cursor functions:
|
||||
<p><dl compact>
|
||||
<p><dt><a href="../api_c/dbc_get.html">DBcursor->c_get</a><dd>Iterates over the values associated with the keys to which each item in
|
||||
<b>curslist</b> has been initialized. Any data value which appears in
|
||||
all items specified by the <b>curslist</b> argument is then used as a
|
||||
key into the <b>primary</b>, and the key/data pair found in the
|
||||
<b>primary</b> is returned.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or the following value:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_JOIN_ITEM">DB_JOIN_ITEM</a><dd>Do not use the data value found in all of the cursors as a lookup
|
||||
key for the <b>primary</b>, but simply return it in the key parameter
|
||||
instead. The data parameter is left unchanged.
|
||||
</dl>
|
||||
<p>In addition, the following flag may be set by bitwise inclusively <b>OR</b>'ing it into the
|
||||
<b>flags</b> parameter:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_RMW">DB_RMW</a><dd>Acquire write locks instead of read locks when doing the retrieval.
|
||||
Setting this flag may decrease the likelihood of deadlock during a
|
||||
read-modify-write cycle by immediately acquiring the write lock during
|
||||
the read part of the cycle so that another thread of control acquiring
|
||||
a read lock for the same item, in its own read-modify-write cycle, will
|
||||
not result in deadlock.
|
||||
</dl>
|
||||
<p><dt><a href="../api_c/dbc_put.html">DBcursor->c_put</a><dd>Returns EINVAL.
|
||||
<p><dt><a href="../api_c/dbc_del.html">DBcursor->c_del</a><dd>Returns EINVAL.
|
||||
<p><dt><a href="../api_c/dbc_close.html">DBcursor->c_close</a><dd>Close the returned cursor and release all resources. (Closing the cursors
|
||||
in <b>curslist</b> is the responsibility of the caller.)
|
||||
</dl>
|
||||
<p>For the returned join cursor to be used in a transaction protected manner,
|
||||
the cursors listed in <b>curslist</b> must have been created within the
|
||||
context of the same transaction.
|
||||
<p>The DB->join function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->join function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The <a href="../api_c/dbc_put.html">DBcursor->c_put</a> or <a href="../api_c/dbc_del.html">DBcursor->c_del</a> functions were called.
|
||||
</dl>
|
||||
<p>The DB->join function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->join function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,106 +0,0 @@
|
||||
<!--$Id: db_key_range.so,v 10.5 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->key_range</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->key_range</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->key_range(DB *db, DB_TXN *txnid,
|
||||
DBT *key, DB_KEY_RANGE *key_range, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->key_range function returns an estimate of the proportion of keys
|
||||
that are less than, equal to and greater than the specified key. The
|
||||
underlying database must be of type Btree.
|
||||
<p>The information is returned in the <b>key_range</b> argument, which
|
||||
contains three elements of type double, <b>less</b>, <b>equal</b> and
|
||||
<b>greater</b>. Values are in the range of 0 to 1, e.g., if the field
|
||||
<b>less</b> is 0.05, that indicates that 5% of the keys in the database
|
||||
are less than the key argument. The value for <b>equal</b> will be zero
|
||||
if there is no matching key and non-zero otherwise.
|
||||
<p>If the file is being accessed under transaction protection, the
|
||||
<b>txnid</b> parameter is a transaction ID returned from
|
||||
<a href="../api_c/txn_begin.html">txn_begin</a>, otherwise, NULL.
|
||||
The DB->key_range function does not retain the locks it acquires for the
|
||||
life of the transaction, so estimates may not be repeatable.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>The DB->key_range function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->key_range function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The underlying database was not of type Btree.
|
||||
</dl>
|
||||
<p>The DB->key_range function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->key_range function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,36 +0,0 @@
|
||||
<!--$Id: db_lsn.so,v 10.7 1999/12/20 08:52:27 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB_LSN</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB_LSN</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>A <a href="../api_c/db_lsn.html">DB_LSN</a> is a <b>log sequence number</b>, which indicates a
|
||||
unique position in the log. The <a href="../api_c/db_lsn.html">DB_LSN</a> structure is completely
|
||||
opaque, and no application should ever need to look inside.
|
||||
<a href="../api_c/db_lsn.html">DB_LSN</a> structures are used by the logging and memory pool
|
||||
subsystems.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,182 +0,0 @@
|
||||
<!--$Id: db_open.so,v 10.61 2000/10/25 15:24:44 dda Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->open</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->open</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->open(DB *db, const char *file,
|
||||
const char *database, DBTYPE type, u_int32_t flags, int mode);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The currently supported Berkeley DB file formats (or <i>access methods</i>)
|
||||
are Btree, Hash, Queue and Recno. The Btree format is a representation
|
||||
of a sorted, balanced tree structure. The Hash format is an extensible,
|
||||
dynamic hashing scheme. The Queue format supports fast access to
|
||||
fixed-length records accessed by sequentially or logical record number.
|
||||
The Recno format supports fixed- or variable-length records, accessed
|
||||
sequentially or by logical record number, and optionally retrieved from
|
||||
a flat text file.
|
||||
<p>Storage and retrieval for the Berkeley DB access methods are based on key/data
|
||||
pairs, see <a href="../api_c/dbt.html">DBT</a> for more information.
|
||||
<p>The DB->open interface opens the database represented by the
|
||||
<b>file</b> and <b>database</b> arguments for both reading and writing.
|
||||
The <b>file</b> argument is used as the name of a physical file on disk
|
||||
that will be used to back the database. The <b>database</b> argument is
|
||||
optional and allows applications to have multiple logical databases in a
|
||||
single physical file. While no <b>database</b> argument needs to be
|
||||
specified, it is an error to attempt to open a second database in a
|
||||
<b>file</b> that was not initially created using a <b>database</b> name.
|
||||
In-memory databases never intended to be preserved on disk may
|
||||
be created by setting both the <b>file</b> and <b>database</b> arguments
|
||||
to NULL. Note that in-memory databases can only ever be shared by
|
||||
sharing the single database handle that created them, in circumstances
|
||||
where doing so is safe.
|
||||
<p>The <b>type</b> argument is of type DBTYPE
|
||||
and must be set to one of DB_BTREE, DB_HASH,
|
||||
DB_QUEUE, DB_RECNO or DB_UNKNOWN, except
|
||||
that databases of type DB_QUEUE are restricted to one per
|
||||
<b>file</b>. If <b>type</b> is DB_UNKNOWN, the database must
|
||||
already exist and DB->open will automatically determine its type.
|
||||
The <a href="../api_c/db_get_type.html">DB->get_type</a> function may be used to determine the underlying type of
|
||||
databases opened using DB_UNKNOWN.
|
||||
<p>The <b>flags</b> and <b>mode</b> arguments specify how files will be opened
|
||||
and/or created if they do not already exist.
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_CREATE">DB_CREATE</a><dd>Create any underlying files, as necessary. If the files do not already
|
||||
exist and the DB_CREATE flag is not specified, the call will fail.
|
||||
<p><dt><a name="DB_EXCL">DB_EXCL</a><dd>Return an error if the file already exists. Underlying filesystem
|
||||
primitives are used to implement this flag. For this reason it is only
|
||||
applicable to the physical file and cannot be used to test if a database
|
||||
in a file already exists.
|
||||
<p>The DB_EXCL flag is only meaningful when specified with the
|
||||
DB_CREATE flag.
|
||||
<p><dt><a name="DB_NOMMAP">DB_NOMMAP</a><dd>Do not map this database into process memory (see the description of the
|
||||
<a href="../api_c/env_set_mp_mmapsize.html">DBENV->set_mp_mmapsize</a> function for further information).
|
||||
<p><dt><a name="DB_RDONLY">DB_RDONLY</a><dd>Open the database for reading only. Any attempt to modify items in the
|
||||
database will fail regardless of the actual permissions of any underlying
|
||||
files.
|
||||
<p><dt><a name="DB_THREAD">DB_THREAD</a><dd>Cause the DB handle returned by DB->open to be
|
||||
<i>free-threaded</i>, that is, useable by multiple threads within a
|
||||
single address space.
|
||||
<p><dt><a name="DB_TRUNCATE">DB_TRUNCATE</a><dd>Physically truncate the underlying file, discarding all previous databases
|
||||
it might have held. Underlying filesystem primitives are used to
|
||||
implement this flag. For this reason it is only applicable to the
|
||||
physical file and cannot be used to discard databases within a file.
|
||||
<p>The DB_TRUNCATE flag cannot be transaction protected, and it is
|
||||
an error to specify it in a transaction protected environment.
|
||||
</dl>
|
||||
<p>On UNIX systems, or in IEEE/ANSI Std 1003.1 (POSIX) environments, all files created by the access methods
|
||||
are created with mode <b>mode</b> (as described in <b>chmod</b>(2)) and
|
||||
modified by the process' umask value at the time of creation (see
|
||||
<b>umask</b>(2)). The group ownership of created files is based on
|
||||
the system and directory defaults, and is not further specified by Berkeley DB.
|
||||
If <b>mode</b> is 0, files are created readable and writeable by both
|
||||
owner and group. On Windows systems, the mode argument is ignored.
|
||||
<p>Calling DB->open is a reasonably expensive operation, and
|
||||
maintaining a set of open databases will normally be preferable to
|
||||
repeatedly open and closing the database for each new query.
|
||||
<p>The DB->open function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Environment Variables</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>DB_HOME<dd>If the <b>dbenv</b> argument to <a href="../api_c/db_create.html">db_create</a> was initialized using
|
||||
<a href="../api_c/env_open.html">DBENV->open</a> the environment variable <b>DB_HOME</b> may be used
|
||||
as the path of the database environment home. Specifically, DB->open
|
||||
is affected by the configuration value DB_DATA_DIR.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>TMPDIR<dd>If the <b>file</b> and <b>dbenv</b> arguments to DB->open are
|
||||
NULL, the environment variable <b>TMPDIR</b> may be used as a
|
||||
directory in which to create a temporary backing file.
|
||||
</dl>
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->open function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_OLD_VERSION">DB_OLD_VERSION</a><dd>The database cannot be opened without being first upgraded.
|
||||
<p><dt>EEXIST<dd>DB_CREATE and DB_EXCL were specified and the file exists.
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified (e.g., unknown database
|
||||
type, page size, hash function, pad byte, byte order) or a flag value
|
||||
or parameter that is incompatible with the specified database.
|
||||
<p>
|
||||
The <a href="../api_c/env_open.html#DB_THREAD">DB_THREAD</a> flag was specified and spinlocks are not
|
||||
implemented for this architecture.
|
||||
<p>The <a href="../api_c/env_open.html#DB_THREAD">DB_THREAD</a> flag was specified to DB->open, but was not
|
||||
specified to the <a href="../api_c/env_open.html">DBENV->open</a> call for the environment in which the
|
||||
DB handle was created.
|
||||
<p>A <b>re_source</b> file was specified with either the <a href="../api_c/env_open.html#DB_THREAD">DB_THREAD</a>
|
||||
flag or the provided database environment supports transaction
|
||||
processing.
|
||||
<p><dt>ENOENT<dd>A non-existent <b>re_source</b> file was specified.
|
||||
</dl>
|
||||
<p>The DB->open function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->open function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,136 +0,0 @@
|
||||
<!--$Id: db_put.so,v 10.34 2000/09/16 22:27:56 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->put</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->put</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->put(DB *db,
|
||||
DB_TXN *txnid, DBT *key, DBT *data, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->put function stores key/data pairs in the database. The default
|
||||
behavior of the DB->put function is to enter the new key/data
|
||||
pair, replacing any previously existing key if duplicates are disallowed,
|
||||
or adding a duplicate data item if duplicates are allowed. If the database
|
||||
supports duplicates, the DB->put function adds the new data value at the
|
||||
end of the duplicate set. If the database supports sorted duplicates,
|
||||
the new data value is inserted at the correct sorted location.
|
||||
<p>If the file is being accessed under transaction protection, the
|
||||
<b>txnid</b> parameter is a transaction ID returned from
|
||||
<a href="../api_c/txn_begin.html">txn_begin</a>, otherwise, NULL.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or one of the following
|
||||
values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_APPEND">DB_APPEND</a><dd>Append the key/data pair to the end of the database. For the
|
||||
DB_APPEND flag to be specified, the underlying database must be
|
||||
a Queue or Recno database. The record number allocated to the record is
|
||||
returned in the specified <b>key</b>.
|
||||
<p>There is a minor behavioral difference between the Recno and Queue access
|
||||
methods for the DB_APPEND flag. If a transaction enclosing a
|
||||
DB->put operation with the DB_APPEND flag aborts, the
|
||||
record number may be decremented (and later re-allocated by a subsequent
|
||||
DB_APPEND operation) by the Recno access method, but will not be
|
||||
decremented or re-allocated by the Queue access method.
|
||||
<p><dt><a name="DB_NODUPDATA">DB_NODUPDATA</a><dd>In the case of the Btree and Hash access methods, enter the new key/data
|
||||
pair only if it does not already appear in the database. If the
|
||||
key/data pair already appears in the database, <a href="../api_c/dbc_put.html#DB_KEYEXIST">DB_KEYEXIST</a> is
|
||||
returned. The DB_NODUPDATA flag may only be specified if the
|
||||
underlying database has been configured to support sorted duplicates.
|
||||
<p>The DB_NODUPDATA flag may not be specified to the Queue or Recno
|
||||
access methods.
|
||||
<p><dt><a name="DB_NOOVERWRITE">DB_NOOVERWRITE</a><dd>Enter the new key/data pair only if the key does not already appear in
|
||||
the database. If the key already appears in the database,
|
||||
<a href="../api_c/dbc_put.html#DB_KEYEXIST">DB_KEYEXIST</a> is returned. Even if the database allows duplicates,
|
||||
a call to DB->put with the DB_NOOVERWRITE flag set will
|
||||
fail if the key already exists in the database.
|
||||
</dl>
|
||||
<p>Otherwise, the DB->put function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->put function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EACCES<dd>An attempt was made to modify a read-only database.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>A record number of 0 was specified.
|
||||
<p>An attempt was made to add a record to a fixed-length database that was too
|
||||
large to fit.
|
||||
<p>An attempt was made to do a partial put.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>ENOSPC<dd>A btree exceeded the maximum btree depth (255).
|
||||
</dl>
|
||||
<p>The DB->put function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->put function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,108 +0,0 @@
|
||||
<!--$Id: db_remove.so,v 10.20 2000/10/25 15:24:44 dda Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->remove</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->remove</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->remove(DB *db,
|
||||
const char *file, const char *database, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->remove interface removes the database specified by the
|
||||
<b>file</b> and <b>database</b> arguments. If no <b>database</b> is
|
||||
specified, the physical file represented by <b>file</b> is removed,
|
||||
incidentally removing all databases that it contained.
|
||||
<p>If a physical file is being removed and logging is currently enabled in
|
||||
the database environment, no database in the file may be open when the
|
||||
DB->remove function is called. Otherwise, no reference count of database
|
||||
use is maintained by Berkeley DB. Applications should not remove databases that
|
||||
are currently in use. In particular, some architectures do not permit
|
||||
the removal of files with open handles. On these architectures, attempts
|
||||
to remove databases that are currently in use will fail.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>Once DB->remove has been called, regardless of its return, the
|
||||
DB handle may not be accessed again.
|
||||
<p>The DB->remove function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Environment Variables</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>DB_HOME<dd>If the <b>dbenv</b> argument to <a href="../api_c/db_create.html">db_create</a> was initialized using
|
||||
<a href="../api_c/env_open.html">DBENV->open</a> the environment variable <b>DB_HOME</b> may be used
|
||||
as the path of the database environment home. Specifically, DB->remove
|
||||
is affected by the configuration value DB_DATA_DIR.
|
||||
</dl>
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->remove function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>A database in the file is currently open.
|
||||
</dl>
|
||||
<p>The DB->remove function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->remove function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,109 +0,0 @@
|
||||
<!--$Id: db_rename.so,v 10.7 2000/10/25 15:24:44 dda Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->rename</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->rename</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->rename(DB *db, const char *file,
|
||||
const char *database, const char *newname, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->rename interface renames the database specified by the
|
||||
<b>file</b> and <b>database</b> arguments to <b>newname</b>. If no
|
||||
<b>database</b> is specified, the physical file represented by
|
||||
<b>file</b> is renamed, incidentally renaming all databases that it
|
||||
contained.
|
||||
<p>If a physical file is being renamed and logging is currently enabled in
|
||||
the database environment, no database in the file may be open when the
|
||||
DB->rename function is called. Otherwise, no reference count of database
|
||||
use is maintained by Berkeley DB. Applications should not rename databases that
|
||||
are currently in use. In particular, some architectures do not permit
|
||||
renaming files with open handles. On these architectures, attempts to
|
||||
rename databases that are currently in use will fail.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>Once DB->rename has been called, regardless of its return, the
|
||||
DB handle may not be accessed again.
|
||||
<p>The DB->rename function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Environment Variables</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>DB_HOME<dd>If the <b>dbenv</b> argument to <a href="../api_c/db_create.html">db_create</a> was initialized using
|
||||
<a href="../api_c/env_open.html">DBENV->open</a> the environment variable <b>DB_HOME</b> may be used
|
||||
as the path of the database environment home. Specifically, DB->rename
|
||||
is affected by the configuration value DB_DATA_DIR.
|
||||
</dl>
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->rename function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>A database in the file is currently open.
|
||||
</dl>
|
||||
<p>The DB->rename function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->rename function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,66 +0,0 @@
|
||||
<!--$Id: db_set_append_recno.so,v 1.3 2000/07/18 16:19:44 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_append_recno</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_append_recno</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_append_recno(DB *,
|
||||
int (*db_append_recno_fcn)(DB *dbp, DBT *data, db_recno_t recno));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>When using the <a href="../api_c/db_put.html#DB_APPEND">DB_APPEND</a> option of the <a href="../api_c/db_put.html">DB->put</a> method,
|
||||
it may be useful to modify the stored data based on the generated key.
|
||||
If a callback function is specified using the
|
||||
DB->set_append_recno function, it will be called after the record number
|
||||
has been selected but before the data has been stored.
|
||||
The callback function must return 0 on success and <b>errno</b> or
|
||||
a value outside of the Berkeley DB error name space on failure.
|
||||
<p>The called function must take three arguments: a reference to the
|
||||
enclosing database handle, the data <a href="../api_c/dbt.html">DBT</a> to be stored and the
|
||||
selected record number. The called function may then modify the data
|
||||
<a href="../api_c/dbt.html">DBT</a>.
|
||||
<p>The DB->set_append_recno interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_append_recno function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,105 +0,0 @@
|
||||
<!--$Id: db_set_bt_compare.so,v 10.24 2000/10/26 15:20:40 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_bt_compare</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_bt_compare</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_bt_compare(DB *db,
|
||||
int (*bt_compare_fcn)(DB *, const DBT *, const DBT *));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the Btree key comparison function. The comparison function is
|
||||
called when it is necessary to compare a key specified by the
|
||||
application with a key currently stored in the tree. The first argument
|
||||
to the comparison function is the <a href="../api_c/dbt.html">DBT</a> representing the
|
||||
application supplied key, the second is the current tree's key.
|
||||
<p>The comparison function must return an integer value less than, equal
|
||||
to, or greater than zero if the first key argument is considered to be
|
||||
respectively less than, equal to, or greater than the second key
|
||||
argument. In addition, the comparison function must cause the keys in
|
||||
the database to be <i>well-ordered</i>. The comparison function
|
||||
must correctly handle any key values used by the application (possibly
|
||||
including zero-length keys). In addition, when Btree key prefix
|
||||
comparison is being performed (see <a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a> for more
|
||||
information), the comparison routine may be passed a prefix of any
|
||||
database key. The <b>data</b> and <b>size</b> fields of the
|
||||
<a href="../api_c/dbt.html">DBT</a> are the only fields that may be used for the purposes of
|
||||
this comparison.
|
||||
<p>If no comparison function is specified, the keys are compared lexically,
|
||||
with shorter keys collating before longer keys. The same comparison
|
||||
method must be used each time a particular Btree is opened.
|
||||
<p>The DB->set_bt_compare interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_bt_compare function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,92 +0,0 @@
|
||||
<!--$Id: db_set_bt_minkey.so,v 10.14 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_bt_minkey</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_bt_minkey</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_bt_minkey(DB *db, u_int32_t bt_minkey);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the minimum number of keys that will be stored on any single
|
||||
Btree page.
|
||||
<p>This value is used to determine which keys will be stored on overflow
|
||||
pages, i.e. if a key or data item is larger than the underlying database
|
||||
page size divided by the <b>bt_minkey</b> value, it will be stored on
|
||||
overflow pages instead of within the page itself. The <b>bt_minkey</b>
|
||||
value specified must be at least 2; if <b>bt_minkey</b> is not explicitly
|
||||
set, a value of 2 is used.
|
||||
<p>The DB->set_bt_minkey interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_bt_minkey function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,106 +0,0 @@
|
||||
<!--$Id: db_set_bt_prefix.so,v 10.25 2000/09/08 21:35:26 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_bt_prefix</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_bt_prefix</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_bt_prefix(DB *db,
|
||||
size_t (*bt_prefix_fcn)(DB *, const DBT *, const DBT *));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the Btree prefix function. The prefix function must return the
|
||||
number of bytes of the second key argument that would be required by
|
||||
the Btree key comparison function to determine the second key argument's
|
||||
ordering relationship with respect to the first key argument. If the
|
||||
two keys are equal, the key length should be returned. The prefix
|
||||
function must correctly handle any key values used by the application
|
||||
(possibly including zero-length keys). The <b>data</b> and
|
||||
<b>size</b> fields of the <a href="../api_c/dbt.html">DBT</a> are the only fields that may be
|
||||
used for the purposes of this determination.
|
||||
<p>The prefix function is used to determine the amount by which keys stored
|
||||
on the Btree internal pages can be safely truncated without losing their
|
||||
uniqueness. See the <a href="../ref/am_conf/bt_prefix.html">Btree
|
||||
prefix comparison</a> section of the Reference Guide for more details about
|
||||
how this works. The usefulness of this is data dependent, but in some
|
||||
data sets can produce significantly reduced tree sizes and search times.
|
||||
<p>If no prefix function or key comparison function is specified by the
|
||||
application, a default lexical comparison function is used as the prefix
|
||||
function. If no prefix function is specified and a key comparison
|
||||
function is specified, no prefix function is used. It is an error to
|
||||
specify a prefix function without also specifying a key comparison
|
||||
function.
|
||||
<p>The DB->set_bt_prefix interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_bt_prefix function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,107 +0,0 @@
|
||||
<!--$Id: db_set_cachesize.so,v 10.17 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--$Id: m4.cachesize,v 10.7 2000/02/11 18:54:45 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_cachesize</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_cachesize</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_cachesize(DB *db,
|
||||
u_int32_t gbytes, u_int32_t bytes, int ncache);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the size of the database's shared memory buffer pool, i.e., the cache,
|
||||
to <b>gbytes</b> gigabytes plus <b>bytes</b>. The cache should be the
|
||||
size of the normal working data set of the application, with some small
|
||||
amount of additional memory for unusual situations. (Note, the working
|
||||
set is not the same as the number of simultaneously referenced pages, and
|
||||
should be quite a bit larger!)
|
||||
<p>The default cache size is 256KB, and may not be specified as less than
|
||||
20KB. Any cache size less than 500MB is automatically increased by 25%
|
||||
to account for buffer pool overhead, cache sizes larger than 500MB are
|
||||
used as specified. For information on tuning the Berkeley DB cache size, see
|
||||
<a href="../ref/am_conf/cachesize.html">Selecting a cache size</a>.
|
||||
<p>It is possible to specify caches to Berkeley DB that are large enough so that
|
||||
they cannot be allocated contiguously on some architectures, e.g., some
|
||||
releases of Solaris limit the amount of memory that may be allocated
|
||||
contiguously by a process. If <b>ncache</b> is 0 or 1, the cache will
|
||||
be allocated contiguously in memory. If it is greater than 1, the cache
|
||||
will be broken up into <b>ncache</b> equally sized separate pieces of
|
||||
memory.
|
||||
<p>As databases opened within Berkeley DB environments use the cache specified to
|
||||
the environment, it is an error to attempt to set a cache in a database
|
||||
created within an environment.
|
||||
<p>The DB->set_cachesize interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_cachesize function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The specified cache size was impossibly small.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,102 +0,0 @@
|
||||
<!--$Id: db_set_dup_compare.so,v 10.21 2000/10/26 15:20:40 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_dup_compare</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_dup_compare</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_dup_compare(DB *db,
|
||||
int (*dup_compare_fcn)(DB *, const DBT *, const DBT *));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the duplicate data item comparison function. The comparison function
|
||||
is called when it is necessary to compare a data item specified by the
|
||||
application with a data item currently stored in the tree. The first
|
||||
argument to the comparison function is the <a href="../api_c/dbt.html">DBT</a> representing the
|
||||
application's data item, the second is the current tree's data item.
|
||||
<p>The comparison function must return an integer value less than, equal
|
||||
to, or greater than zero if the first data item argument is considered
|
||||
to be respectively less than, equal to, or greater than the second data
|
||||
item argument. In addition, the comparison function must cause the data
|
||||
items in the set to be <i>well-ordered</i>. The comparison function
|
||||
must correctly handle any data item values used by the application
|
||||
(possibly including zero-length data items). The <b>data</b> and
|
||||
<b>size</b> fields of the <a href="../api_c/dbt.html">DBT</a> are the only fields that may be
|
||||
used for the purposes of this comparison.
|
||||
<p>If no comparison function is specified, the data items are compared
|
||||
lexically, with shorter data items collating before longer data items.
|
||||
The same duplicate data item comparison method must be used each time
|
||||
a particular Btree is opened.
|
||||
<p>The DB->set_dup_compare interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_dup_compare function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,76 +0,0 @@
|
||||
<!--$Id: db_set_errcall.so,v 10.7 1999/12/20 08:52:28 bostic Exp $-->
|
||||
<!--$Id: m4.errset,v 10.8 2000/02/19 20:57:57 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_errcall</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_errcall</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
void
|
||||
DB->set_errcall(DB *,
|
||||
void (*db_errcall_fcn)(const char *errpfx, char *msg));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
When an error occurs in the Berkeley DB library, a Berkeley DB error or an error
|
||||
return value is returned by the function. In some cases, however,
|
||||
the <b>errno</b> value may be insufficient to completely describe
|
||||
the cause of the error especially during initial application debugging.
|
||||
<p>The DB->set_errcall function is used to enhance the mechanism for reporting error
|
||||
messages to the application. In some cases, when an error occurs, Berkeley DB
|
||||
will call <b>db_errcall_fcn</b> with additional error information. The
|
||||
function must be declared with two arguments; the first will be the prefix
|
||||
string (as previously set by <a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a> or
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>), the second will be the error message string.
|
||||
It is up to the <b>db_errcall_fcn</b> function to display the error
|
||||
message in an appropriate manner.
|
||||
<p>Alternatively, you can use the <a href="../api_c/db_set_errfile.html">DB->set_errfile</a> or
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a> functions to display the additional information
|
||||
via a C library FILE *.
|
||||
<p>This error logging enhancement does not slow performance or significantly
|
||||
increase application size, and may be run during normal operation as well
|
||||
as during application debugging.
|
||||
<p>For DB handles opened inside of Berkeley DB environments, calling the
|
||||
DB->set_errcall function affects the entire environment and is equivalent to calling
|
||||
the <a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a> function.
|
||||
<p>The DB->set_errcall interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,73 +0,0 @@
|
||||
<!--$Id: db_set_errfile.so,v 10.7 1999/12/20 08:52:28 bostic Exp $-->
|
||||
<!--$Id: m4.errset,v 10.8 2000/02/19 20:57:57 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_errfile</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_errfile</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
void
|
||||
DB->set_errfile(DB *db, FILE *errfile);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
When an error occurs in the Berkeley DB library, a Berkeley DB error or an error
|
||||
return value is returned by the function. In some cases, however,
|
||||
the <b>errno</b> value may be insufficient to completely describe
|
||||
the cause of the error especially during initial application debugging.
|
||||
<p>The DB->set_errfile function is used to enhance the mechanism for reporting error
|
||||
messages to the application by setting a C library FILE * to be used for
|
||||
displaying additional Berkeley DB error messages. In some cases, when an error
|
||||
occurs, Berkeley DB will output an additional error message to the specified
|
||||
file reference.
|
||||
<p>The error message will consist of the prefix string and a colon
|
||||
("<b>:</b>") (if a prefix string was previously specified using
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a> or <a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>), an error string, and
|
||||
a trailing <newline> character.
|
||||
<p>This error logging enhancement does not slow performance or significantly
|
||||
increase application size, and may be run during normal operation as well
|
||||
as during application debugging.
|
||||
<p>For DB handles opened inside of Berkeley DB environments, calling the
|
||||
DB->set_errfile function affects the entire environment and is equivalent to calling
|
||||
the <a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a> function.
|
||||
<p>The DB->set_errfile interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,62 +0,0 @@
|
||||
<!--$Id: db_set_errpfx.so,v 10.6 1999/12/20 08:52:28 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_errpfx</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_errpfx</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
void
|
||||
DB->set_errpfx(DB *db, const char *errpfx);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the prefix string that appears before error messages issued by Berkeley DB.
|
||||
<p>The DB->set_errpfx function does not copy the memory referenced by the
|
||||
<b>errpfx</b> argument, rather, it maintains a reference to it. This
|
||||
allows applications to modify the error message prefix at any time,
|
||||
without repeatedly calling DB->set_errpfx, but means that the
|
||||
memory must be maintained until the handle is closed.
|
||||
<p>For DB handles opened inside of Berkeley DB environments, calling the
|
||||
DB->set_errpfx function affects the entire environment and is equivalent to calling
|
||||
the <a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a> function.
|
||||
<p>The DB->set_errpfx interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,95 +0,0 @@
|
||||
<!--$Id: db_set_feedback.so,v 10.16 2000/07/09 19:11:54 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_feedback</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_feedback</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_feedback(DB *,
|
||||
void (*db_feedback_fcn)(DB *dbp, int opcode, int pct));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Some operations performed by the Berkeley DB library can take non-trivial
|
||||
amounts of time. The DB->set_feedback function can be used by
|
||||
applications to monitor progress within these operations.
|
||||
<p>When an operation is likely to take a long time, Berkeley DB will call the
|
||||
specified callback function. This function must be declared with
|
||||
three arguments: the first will be a reference to the enclosing database
|
||||
handle, the second a flag value, and the third the percent of the
|
||||
operation that has been completed, specified as an integer value between
|
||||
0 and 100. It is up to the callback function to display this
|
||||
information in an appropriate manner.
|
||||
<p>The <b>opcode</b> argument may take on any of the following values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_UPGRADE">DB_UPGRADE</a><dd>The underlying database is being upgraded.
|
||||
<p><dt><a name="DB_VERIFY">DB_VERIFY</a><dd>The underlying database is being verified.
|
||||
</dl>
|
||||
<p>The DB->set_feedback interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<p>The DB->set_feedback function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,181 +0,0 @@
|
||||
<!--$Id: db_set_flags.so,v 10.26 2000/03/17 01:53:58 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_flags</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_flags</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_flags(DB *db, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Calling DB->set_flags is additive, there is no way to clear flags.
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
<h3>Btree</h3>
|
||||
<p>The following flags may be specified for the Btree access method:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_DUP">DB_DUP</a><dd>Permit duplicate data items in the tree, i.e. insertion when the key of
|
||||
the key/data pair being inserted already exists in the tree will be
|
||||
successful. The ordering of duplicates in the tree is determined by the
|
||||
order of insertion, unless the ordering is otherwise specified by use of
|
||||
a cursor operation. It is an error to specify both DB_DUP and
|
||||
DB_RECNUM.
|
||||
<p><dt><a name="DB_DUPSORT">DB_DUPSORT</a><dd>Permit duplicate data items in the tree, i.e. insertion when the key of
|
||||
the key/data pair being inserted already exists in the tree will be
|
||||
successful. The ordering of duplicates in the tree is determined by the
|
||||
duplicate comparison function.
|
||||
If the application does not specify a comparison function using the
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a> function, a default, lexical comparison will be
|
||||
used.
|
||||
It is an error to specify both DB_DUPSORT and DB_RECNUM.
|
||||
<p><dt><a name="DB_RECNUM">DB_RECNUM</a><dd>Support retrieval from the Btree using record numbers. For more
|
||||
information, see the DB_GET_RECNO flag to the <a href="../api_c/db_get.html">DB->get</a> and
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a> methods.
|
||||
<p>Logical record numbers in Btree databases are mutable in the face of
|
||||
record insertion or deletion. See the DB_RENUMBER flag in the Recno
|
||||
access method information for further discussion.
|
||||
<p>Maintaining record counts within a Btree introduces a serious point of
|
||||
contention, namely the page locations where the record counts are stored.
|
||||
In addition, the entire tree must be locked during both insertions and
|
||||
deletions, effectively single-threading the tree for those operations.
|
||||
Specifying DB_RECNUM can result in serious performance degradation for
|
||||
some applications and data sets.
|
||||
<p>It is an error to specify both DB_DUP and DB_RECNUM.
|
||||
<p><dt><a name="DB_REVSPLITOFF">DB_REVSPLITOFF</a><dd>Turn off reverse splitting in the Btree. As pages are emptied in a
|
||||
database, the Berkeley DB Btree implementation attempts to coalesce empty pages
|
||||
into higher-level pages in order to keep the tree as small as possible
|
||||
and minimize tree search time. This can hurt performance in applications
|
||||
with cyclical data demands, that is, applications where the database grows
|
||||
and shrinks repeatedly. For example, because Berkeley DB does page-level
|
||||
locking, the maximum level of concurrency in a database of 2 pages is far
|
||||
smaller than that in a database of 100 pages, and so a database that has
|
||||
shrunk to a minimal size can cause severe deadlocking when a new cycle of
|
||||
data insertion begins.
|
||||
</dl>
|
||||
<h3>Hash</h3>
|
||||
<p>The following flags may be specified for the Hash access method:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_DUP">DB_DUP</a><dd>Permit duplicate data items in the tree, i.e. insertion when the key of
|
||||
the key/data pair being inserted already exists in the tree will be
|
||||
successful. The ordering of duplicates in the tree is determined by the
|
||||
order of insertion, unless the ordering is otherwise specified by use of
|
||||
a cursor operation. It is an error to specify both DB_DUP and
|
||||
DB_RECNUM.
|
||||
<p><dt><a name="DB_DUPSORT">DB_DUPSORT</a><dd>Permit duplicate data items in the tree, i.e. insertion when the key of
|
||||
the key/data pair being inserted already exists in the tree will be
|
||||
successful. The ordering of duplicates in the tree is determined by the
|
||||
duplicate comparison function.
|
||||
If the application does not specify a comparison function using the
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a> function, a default, lexical comparison will be
|
||||
used.
|
||||
It is an error to specify both DB_DUPSORT and DB_RECNUM.
|
||||
</dl>
|
||||
<h3>Queue</h3>
|
||||
<p>There are no additional flags that may be specified for the Queue access
|
||||
method.
|
||||
<h3>Recno</h3>
|
||||
<p>The following flags may be specified for the Recno access method:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_RENUMBER">DB_RENUMBER</a><dd>Specifying the DB_RENUMBER flag causes the logical record numbers to be
|
||||
mutable, and change as records are added to and deleted from the database.
|
||||
For example, the deletion of record number 4 causes records numbered 5
|
||||
and greater to be renumbered downward by 1. If a cursor was positioned
|
||||
to record number 4 before the deletion, it will reference the new record
|
||||
number 4, if any such record exists, after the deletion. If a cursor was
|
||||
positioned after record number 4 before the deletion, it will be shifted
|
||||
downward 1 logical record, continuing to reference the same record as it
|
||||
did before.
|
||||
<p>Using the <a href="../api_c/db_put.html">DB->put</a> or <a href="../api_c/dbc_put.html">DBcursor->c_put</a> interfaces to create new
|
||||
records will cause the creation of multiple records if the record number
|
||||
is more than one greater than the largest record currently in the
|
||||
database. For example, creating record 28, when record 25 was previously
|
||||
the last record in the database, will create records 26 and 27 as well as
|
||||
28. Attempts to retrieve records that were created in this manner will
|
||||
result in an error return of <a href="../ref/program/errorret.html#DB_KEYEMPTY">DB_KEYEMPTY</a>.
|
||||
<p>If a created record is not at the end of the database, all records
|
||||
following the new record will be automatically renumbered upward by 1.
|
||||
For example, the creation of a new record numbered 8 causes records
|
||||
numbered 8 and greater to be renumbered upward by 1. If a cursor was
|
||||
positioned to record number 8 or greater before the insertion, it will be
|
||||
shifted upward 1 logical record, continuing to reference the same record
|
||||
as it did before.
|
||||
<p>For these reasons, concurrent access to a Recno database with the
|
||||
DB_RENUMBER flag specified may be largely meaningless, although
|
||||
it is supported.
|
||||
<p><dt><a name="DB_SNAPSHOT">DB_SNAPSHOT</a><dd>This flag specifies that any specified <b>re_source</b> file be read in
|
||||
its entirety when <a href="../api_c/db_open.html">DB->open</a> is called. If this flag is not
|
||||
specified, the <b>re_source</b> file may be read lazily.
|
||||
</dl>
|
||||
<p>The DB->set_flags interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_flags function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,93 +0,0 @@
|
||||
<!--$Id: db_set_h_ffactor.so,v 10.15 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_h_ffactor</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_h_ffactor</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_h_ffactor(DB *db, u_int32_t h_ffactor);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the desired density within the hash table.
|
||||
<p>The density is an approximation of the number of keys allowed to
|
||||
accumulate in any one bucket, determining when the hash table grows or
|
||||
shrinks. If you know the average sizes of the keys and data in your
|
||||
dataset, setting the fill factor can enhance performance. A reasonable
|
||||
rule computing fill factor is to set it to:
|
||||
<p><blockquote><pre>(pagesize - 32) / (average_key_size + average_data_size + 8)</pre></blockquote>
|
||||
<p>If no value is specified, the fill factor will be selected dynamically as
|
||||
pages are filled.
|
||||
<p>The DB->set_h_ffactor interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_h_ffactor function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,97 +0,0 @@
|
||||
<!--$Id: db_set_h_hash.so,v 10.18 2000/07/04 18:28:27 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_h_hash</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_h_hash</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_h_hash(DB *db,
|
||||
u_int32_t (*h_hash_fcn)(DB *, const void *bytes, u_int32_t length));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set a user defined hash method; if no hash method is specified, a default
|
||||
hash method is used. Since no hash method performs equally well on all
|
||||
possible data, the user may find that the built-in hash method performs
|
||||
poorly with a particular data set. User specified hash functions must
|
||||
take a pointer to a byte string and a length as arguments and return a
|
||||
value of type
|
||||
<b>u_int32_t</b>.
|
||||
The hash function must handle any key values used by the application
|
||||
(possibly including zero-length keys).
|
||||
<p>If a hash method is specified, <a href="../api_c/db_open.html">DB->open</a> will attempt to determine
|
||||
if the hash method specified is the same as the one with which the database
|
||||
was created, and will fail if it detects that it is not.
|
||||
<p>The DB->set_h_hash interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_h_hash function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,88 +0,0 @@
|
||||
<!--$Id: db_set_h_nelem.so,v 10.15 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_h_nelem</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_h_nelem</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_h_nelem(DB *db, u_int32_t h_nelem);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set an estimate of the final size of the hash table.
|
||||
<p>If not set or set too low, hash tables will still expand gracefully
|
||||
as keys are entered, although a slight performance degradation may be
|
||||
noticed.
|
||||
<p>The DB->set_h_nelem interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_h_nelem function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,94 +0,0 @@
|
||||
<!--$Id: db_set_lorder.so,v 10.15 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_lorder</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_lorder</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_lorder(DB *db, int lorder);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the byte order for integers in the stored database metadata. The
|
||||
number should represent the order as an integer, for example, big endian
|
||||
order is the number 4,321, and little endian order is the number 1,234.
|
||||
If <b>lorder</b> is not explicitly set, the host order of the machine
|
||||
where the Berkeley DB library was compiled is used.
|
||||
<p>The value of <b>lorder</b> is ignored except when databases are being
|
||||
created. If a database already exists, the byte order it uses is
|
||||
determined when the database is opened.
|
||||
<p><b>The access methods provide no guarantees about the byte ordering of the
|
||||
application data stored in the database, and applications are responsible
|
||||
for maintaining any necessary ordering.</b>
|
||||
<p>The DB->set_lorder interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_lorder function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,98 +0,0 @@
|
||||
<!--$Id: db_set_malloc.so,v 10.18 2000/05/25 13:47:07 dda Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_malloc</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_malloc</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_malloc(DB *db, void *(*db_malloc)(size_t size));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the allocation function used by the DB methods to allocate
|
||||
memory in which to return key/data items to the application.
|
||||
<p>The <a href="../api_c/dbt.html#DB_DBT_MALLOC">DB_DBT_MALLOC</a> flag, when specified in the <a href="../api_c/dbt.html">DBT</a> object,
|
||||
will cause the DB methods to allocate and re-allocate memory which
|
||||
then becomes the responsibility of the calling application. See <a href="../api_c/dbt.html">DBT</a>
|
||||
for more information.
|
||||
<p>On systems where there may be multiple library versions of malloc (notably
|
||||
Windows NT), specifying the <a href="../api_c/dbt.html#DB_DBT_MALLOC">DB_DBT_MALLOC</a> flag will fail because
|
||||
the DB library will allocate memory from a different heap than
|
||||
the application will use to free it. To avoid this problem, the
|
||||
DB->set_malloc function can be used to pass Berkeley DB a reference to the
|
||||
application's allocation routine, in which case it will be used to
|
||||
allocate the memory returned when the <a href="../api_c/dbt.html#DB_DBT_MALLOC">DB_DBT_MALLOC</a> flag is set.
|
||||
<p>The function specified must match the calling conventions of the
|
||||
ANSI C X3.159-1989 (ANSI C) library routine of the same name.
|
||||
<p>The DB->set_malloc interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_malloc function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,90 +0,0 @@
|
||||
<!--$Id: db_set_pagesize.so,v 10.16 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_pagesize</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_pagesize</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_pagesize(DB *db, u_int32_t pagesize);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the size of the pages used to hold items in the database, in bytes.
|
||||
The minimum page size is 512 bytes and the maximum page size is 64K bytes.
|
||||
If the page size is not explicitly set, one is selected based on the
|
||||
underlying filesystem I/O block size. The automatically selected size
|
||||
has a lower limit of 512 bytes and an upper limit of 16K bytes.
|
||||
<p>For information on tuning the Berkeley DB page size, see
|
||||
<a href="../ref/am_conf/pagesize.html">Selecting a page size</a>.
|
||||
<p>The DB->set_pagesize interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_pagesize function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,70 +0,0 @@
|
||||
<!--$Id: db_set_paniccall.so,v 10.11 2000/07/09 19:12:16 bostic Exp $-->
|
||||
<!--$Id: m4.errset,v 10.8 2000/02/19 20:57:57 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_paniccall</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_paniccall</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_paniccall(DB *db,
|
||||
void (*paniccall)(DB_ENV *, int errval));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Errors can occur in the Berkeley DB library where the only solution is to shut
|
||||
down the application and run recovery. (For example, if Berkeley DB is unable
|
||||
to write log records to disk because there is insufficient disk space.)
|
||||
In these cases, the value <a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a> is returned by Berkeley DB.
|
||||
<p>In these cases, it is also often simpler to shut down the application when
|
||||
such errors occur rather than attempting to gracefully return up the stack.
|
||||
The DB->set_paniccall function is used to specify a function to be called when
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a> is about to be returned from a Berkeley DB method. When
|
||||
called, the <b>dbenv</b> argument will be a reference to the current
|
||||
environment, and the <b>errval</b> argument is the error value that would
|
||||
have been returned to the calling function.
|
||||
<p>For DB handles opened inside of Berkeley DB environments, calling the
|
||||
DB->set_paniccall function affects the entire environment and is equivalent to calling
|
||||
the <a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a> function.
|
||||
<p>The DB->set_paniccall interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<p>The DB->set_paniccall function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,90 +0,0 @@
|
||||
<!--$Id: db_set_q_extentsize.so,v 1.3 2000/11/21 19:25:45 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_q_extentsize</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_q_extentsize</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_q_extentsize(DB *db, u_int32_t extentsize);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the size of the extents used to hold pages in a Queue database,
|
||||
specified as a number of pages. Each extent is created as a separate
|
||||
physical file. If no extent size is set, the default behavior is to
|
||||
create only a single underlying database file.
|
||||
<p>For information on tuning the extent size, see
|
||||
<a href="../ref/am_conf/extentsize.html">Selecting a extent size</a>.
|
||||
<p>The DB->set_q_extentsize interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_q_extentsize function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,90 +0,0 @@
|
||||
<!--$Id: db_set_re_delim.so,v 10.17 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_re_delim</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_re_delim</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_re_delim(DB *db, int re_delim);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the delimiting byte used to mark the end of a record in the backing
|
||||
source file for the Recno access method.
|
||||
<p>This byte is used for variable length records, if the <b>re_source</b>
|
||||
file is specified. If the <b>re_source</b> file is specified and no
|
||||
delimiting byte was specified, <newline> characters (i.e.
|
||||
ASCII 0x0a) are interpreted as end-of-record markers.
|
||||
<p>The DB->set_re_delim interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_re_delim function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,94 +0,0 @@
|
||||
<!--$Id: db_set_re_len.so,v 10.17 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_re_len</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_re_len</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_re_len(DB *db, u_int32_t re_len);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>For the Queue access method, specify that the records are of length
|
||||
<b>re_len</b>.
|
||||
<p>For the Recno access method, specify that the records are fixed-length,
|
||||
not byte delimited, and are of length <b>re_len</b>.
|
||||
<p>Any records added to the database that are less than <b>re_len</b> bytes
|
||||
long are automatically padded (see <a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a> for more
|
||||
information).
|
||||
<p>Any attempt to insert records into the database that are greater than
|
||||
<b>re_len</b> bytes long will cause the call to fail immediately and
|
||||
return an error.
|
||||
<p>The DB->set_re_len interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_re_len function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,88 +0,0 @@
|
||||
<!--$Id: db_set_re_pad.so,v 10.16 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_re_pad</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_re_pad</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_re_pad(DB *db, int re_pad);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the padding character for short, fixed-length records for the Queue
|
||||
and Recno access methods.
|
||||
<p>If no pad character is specified, <space> characters (i.e.,
|
||||
ASCII 0x20) are used for padding.
|
||||
<p>The DB->set_re_pad interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_re_pad function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,130 +0,0 @@
|
||||
<!--$Id: db_set_re_source.so,v 10.17 2000/05/01 21:57:43 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_re_source</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_re_source</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_re_source(DB *db, char *re_source);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the underlying source file for the Recno access method. The purpose
|
||||
of the <b>re_source</b> value is to provide fast access and modification
|
||||
to databases that are normally stored as flat text files.
|
||||
<p>If the <b>re_source</b> field is set, it specifies an underlying flat
|
||||
text database file that is read to initialize a transient record number
|
||||
index. In the case of variable length records, the records are separated
|
||||
as specified by <a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>. For example, standard UNIX
|
||||
byte stream files can be interpreted as a sequence of variable length
|
||||
records separated by <newline> characters.
|
||||
<p>In addition, when cached data would normally be written back to the
|
||||
underlying database file (e.g., the <a href="../api_c/db_close.html">DB->close</a> or <a href="../api_c/db_sync.html">DB->sync</a>
|
||||
methods are called), the in-memory copy of the database will be written
|
||||
back to the <b>re_source</b> file.
|
||||
<p>By default, the backing source file is read lazily, i.e., records are not
|
||||
read from the file until they are requested by the application.
|
||||
<b>If multiple processes (not threads) are accessing a Recno database
|
||||
concurrently and either inserting or deleting records, the backing source
|
||||
file must be read in its entirety before more than a single process
|
||||
accesses the database, and only that process should specify the backing
|
||||
source file as part of the <a href="../api_c/db_open.html">DB->open</a> call. See the <a href="../api_c/db_set_flags.html#DB_SNAPSHOT">DB_SNAPSHOT</a>
|
||||
flag for more information.</b>
|
||||
<p><b>Reading and writing the backing source file specified by <b>re_source</b>
|
||||
cannot be transactionally protected because it involves filesystem
|
||||
operations that are not part of the Db transaction methodology.</b>
|
||||
For this reason, if a temporary database is used to hold the records,
|
||||
i.e., a NULL was specified as the <b>file</b> argument to <a href="../api_c/db_open.html">DB->open</a>,
|
||||
it is possible to lose the contents of the <b>re_source</b> file, e.g.,
|
||||
if the system crashes at the right instant.
|
||||
If a file is used to hold the database, i.e., a file name was specified
|
||||
as the <b>file</b> argument to <a href="../api_c/db_open.html">DB->open</a>, normal database
|
||||
recovery on that file can be used to prevent information loss,
|
||||
although it is still possible that the contents of <b>re_source</b>
|
||||
will be lost if the system crashes.
|
||||
<p>The <b>re_source</b> file must already exist (but may be zero-length) when
|
||||
<a href="../api_c/db_open.html">DB->open</a> is called.
|
||||
<p>It is not an error to specify a read-only <b>re_source</b> file when
|
||||
creating a database, nor is it an error to modify the resulting database.
|
||||
However, any attempt to write the changes to the backing source file using
|
||||
either the <a href="../api_c/db_sync.html">DB->sync</a> or <a href="../api_c/db_close.html">DB->close</a> functions will fail, of course.
|
||||
Specify the <a href="../api_c/db_close.html#DB_NOSYNC">DB_NOSYNC</a> flag to the <a href="../api_c/db_close.html">DB->close</a> function to stop it
|
||||
from attempting to write the changes to the backing file, instead, they
|
||||
will be silently discarded.
|
||||
<p>For all of the above reasons, the <b>re_source</b> field is generally
|
||||
used to specify databases that are read-only for DB applications,
|
||||
and that are either generated on the fly by software tools, or modified
|
||||
using a different mechanism, e.g., a text editor.
|
||||
<p>The DB->set_re_source interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_re_source function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/db_open.html">DB->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,99 +0,0 @@
|
||||
<!--$Id: db_set_realloc.so,v 10.8 2000/05/25 13:47:07 dda Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->set_realloc</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->set_realloc</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->set_realloc(DB *db,
|
||||
void *(*db_realloc_fcn)(void *ptr, size_t size));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the realloc function used by the DB methods to allocate memory
|
||||
in which to return key/data items to the application.
|
||||
<p>The <a href="../api_c/dbt.html#DB_DBT_REALLOC">DB_DBT_REALLOC</a> flag, when specified in the <a href="../api_c/dbt.html">DBT</a> object,
|
||||
will cause the DB methods to allocate and re-allocate memory which
|
||||
then becomes the responsibility of the calling application. See <a href="../api_c/dbt.html">DBT</a>
|
||||
for more information.
|
||||
<p>On systems where there may be multiple library versions of realloc (notably
|
||||
Windows NT), specifying the <a href="../api_c/dbt.html#DB_DBT_REALLOC">DB_DBT_REALLOC</a> flag will fail because
|
||||
the DB library will allocate memory from a different heap than
|
||||
the application will use to free it. To avoid this problem, the
|
||||
DB->set_realloc function can be used to pass Berkeley DB a reference to the
|
||||
application's allocation routine, in which case it will be used to
|
||||
allocate the memory returned when the <a href="../api_c/dbt.html#DB_DBT_REALLOC">DB_DBT_REALLOC</a> flag is set.
|
||||
<p>The function specified must match the calling conventions of the
|
||||
ANSI C X3.159-1989 (ANSI C) library routine of the same name.
|
||||
<p>The DB->set_realloc interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/db_open.html">DB->open</a> interface is called.
|
||||
<p>The DB->set_realloc function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,195 +0,0 @@
|
||||
<!--$Id: db_stat.so,v 10.37 2000/10/03 21:55:45 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->stat</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->stat</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->stat(DB *db,
|
||||
void *sp, void *(*db_malloc)(size_t), u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->stat function creates a statistical structure and
|
||||
copies a pointer to it into user-specified memory locations.
|
||||
Specifically, if <b>sp</b> is non-NULL, a pointer to the statistics
|
||||
for the database are copied into the memory location it references.
|
||||
<p>Statistical structures are created in allocated memory. If <b>db_malloc</b> is non-NULL, it
|
||||
is called to allocate the memory, otherwise, the library function
|
||||
<b>malloc</b>(3) is used. The function <b>db_malloc</b> must match
|
||||
the calling conventions of the <b>malloc</b>(3) library routine.
|
||||
Regardless, the caller is responsible for deallocating the returned
|
||||
memory. To deallocate returned memory, free the returned memory
|
||||
reference, references inside the returned memory do not need to be
|
||||
individually freed.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or the following value:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_CACHED_COUNTS">DB_CACHED_COUNTS</a><dd>Return a cached count of the keys and records in a database. This flag
|
||||
makes it possible for applications to request an possibly approximate key
|
||||
and record count without incurring the performance penalty of traversing
|
||||
the entire database. The statistics information described for the access
|
||||
method <b>XX_nkeys</b> and <b>XX_ndata</b> fields below is filled in,
|
||||
but no other information is collected. If the cached information has
|
||||
never been set, the fields will be returned set to 0.
|
||||
<p><dt><a name="DB_RECORDCOUNT">DB_RECORDCOUNT</a><dd>Return a count of the records in a Btree or Recno Access Method database.
|
||||
This flag makes it possible for applications to request a record count
|
||||
without incurring the performance penalty of traversing the entire
|
||||
database. The statistics information described for the <b>bt_nkeys</b>
|
||||
field below is filled in, but no other information is collected.
|
||||
<p>This option is only available for Recno databases, or Btree databases
|
||||
where the underlying database was created with the <a href="../api_c/db_set_flags.html#DB_RECNUM">DB_RECNUM</a>
|
||||
flag.
|
||||
</dl>
|
||||
<p>The DB->stat function may access all of the pages in the database,
|
||||
incurring a severe performance penalty as well as possibly flushing the
|
||||
underlying buffer pool.
|
||||
<p>In the presence of multiple threads or processes accessing an active
|
||||
database, the information returned by DB->stat may be out-of-date.
|
||||
<p>If the database was not opened readonly and the DB_CACHED_COUNTS
|
||||
flag was not specified, the cached key and record numbers will be updated
|
||||
after the statistical information has been gathered.
|
||||
<p>The DB->stat function cannot be transaction protected. For this reason,
|
||||
it should be called in a thread of control that has no open cursors or
|
||||
active transactions.
|
||||
<p>The DB->stat function returns a non-zero error value on failure and 0 on success.
|
||||
<h3>Hash Statistics</h3>
|
||||
<p>In the case of a Hash database,
|
||||
the statistics are stored in a structure of type DB_HASH_STAT. The
|
||||
following fields will be filled in:
|
||||
<p><dl compact>
|
||||
<p><dt>u_int32_t hash_magic;<dd>Magic number that identifies the file as a Hash file.
|
||||
<dt>u_int32_t hash_version;<dd>The version of the Hash database.
|
||||
<dt>u_int32_t hash_nkeys;<dd>The number of unique keys in the database.
|
||||
<dt>u_int32_t hash_ndata;<dd>The number of key/data pairs in the database.]
|
||||
<dt>u_int32_t hash_pagesize;<dd>The underlying Hash database page (and bucket) size.
|
||||
<dt>u_int32_t hash_nelem;<dd>The estimated size of the hash table specified at database creation time.
|
||||
<dt>u_int32_t hash_ffactor;<dd>The desired fill factor (number of items per bucket) specified at database
|
||||
creation time.
|
||||
<dt>u_int32_t hash_buckets;<dd>The number of hash buckets.
|
||||
<dt>u_int32_t hash_free;<dd>The number of pages on the free list.
|
||||
<dt>u_int32_t hash_bfree;<dd>The number of bytes free on bucket pages.
|
||||
<dt>u_int32_t hash_bigpages;<dd>The number of big key/data pages.
|
||||
<dt>u_int32_t hash_big_bfree;<dd>The number of bytes free on big item pages.
|
||||
<dt>u_int32_t hash_overflows;<dd>The number of overflow pages (overflow pages are pages that contain items
|
||||
that did not fit in the main bucket page).
|
||||
<dt>u_int32_t hash_ovfl_free;<dd>The number of bytes free on overflow pages.
|
||||
<dt>u_int32_t hash_dup;<dd>The number of duplicate pages.
|
||||
<dt>u_int32_t hash_dup_free;<dd>The number of bytes free on duplicate pages.
|
||||
</dl>
|
||||
<h3>Btree and Recno Statistics</h3>
|
||||
<p>In the case of a Btree or Recno database,
|
||||
the statistics are stored in a structure of type DB_BTREE_STAT. The
|
||||
following fields will be filled in:
|
||||
<p><dl compact>
|
||||
<p><dt>u_int32_t bt_magic;<dd>Magic number that identifies the file as a Btree database.
|
||||
<dt>u_int32_t bt_version;<dd>The version of the Btree database.
|
||||
<dt>u_int32_t bt_nkeys;<dd>For the Btree Access Method, the number of unique keys in the database.
|
||||
<p>For the Recno Access Method, the number of records in the database.
|
||||
<dt>u_int32_t bt_ndata;<dd>For the Btree Access Method, the number of key/data pairs in the database.
|
||||
<p>For the Recno Access Method, the number of records in the database. If
|
||||
the database has been configured to not re-number records during
|
||||
deletion, the number of records will only reflect undeleted records.
|
||||
<dt>u_int32_t bt_pagesize;<dd>Underlying database page size.
|
||||
<dt>u_int32_t bt_minkey;<dd>The minimum keys per page.
|
||||
<dt>u_int32_t bt_re_len;<dd>The length of fixed-length records.
|
||||
<dt>u_int32_t bt_re_pad;<dd>The padding byte value for fixed-length records.
|
||||
<dt>u_int32_t bt_levels;<dd>Number of levels in the database.
|
||||
<dt>u_int32_t bt_int_pg;<dd>Number of database internal pages.
|
||||
<dt>u_int32_t bt_leaf_pg;<dd>Number of database leaf pages.
|
||||
<dt>u_int32_t bt_dup_pg;<dd>Number of database duplicate pages.
|
||||
<dt>u_int32_t bt_over_pg;<dd>Number of database overflow pages.
|
||||
<dt>u_int32_t bt_free;<dd>Number of pages on the free list.
|
||||
<dt>u_int32_t bt_int_pgfree;<dd>Number of bytes free in database internal pages.
|
||||
<dt>u_int32_t bt_leaf_pgfree;<dd>Number of bytes free in database leaf pages.
|
||||
<dt>u_int32_t bt_dup_pgfree;<dd>Number of bytes free in database duplicate pages.
|
||||
<dt>u_int32_t bt_over_pgfree;<dd>Number of bytes free in database overflow pages.
|
||||
</dl>
|
||||
<h3>Queue Statistics</h3>
|
||||
<p>In the case of a Queue database,
|
||||
the statistics are stored in a structure of type DB_QUEUE_STAT. The
|
||||
following fields will be filled in:
|
||||
<p><dl compact>
|
||||
<p><dt>u_int32_t qs_magic;<dd>Magic number that identifies the file as a Queue file.
|
||||
<dt>u_int32_t qs_version;<dd>The version of the Queue file type.
|
||||
<dt>u_int32_t qs_nkeys;<dd>The number of records in the database.
|
||||
<dt>u_int32_t qs_ndata;<dd>The number of records in the database.
|
||||
<dt>u_int32_t qs_pagesize;<dd>Underlying database page size.
|
||||
<dt>u_int32_t qs_pages;<dd>Number of pages in the database.
|
||||
<dt>u_int32_t qs_re_len;<dd>The length of the records.
|
||||
<dt>u_int32_t qs_re_pad;<dd>The padding byte value for the records.
|
||||
<dt>u_int32_t qs_pgfree;<dd>Number of bytes free in database pages.
|
||||
<dt>u_int32_t qs_start;<dd>Start offset.
|
||||
<dt>u_int32_t qs_first_recno;<dd>First undeleted record in the database.
|
||||
<dt>u_int32_t qs_cur_recno;<dd>Last allocated record number in the database.
|
||||
</dl>
|
||||
<p>The DB->stat function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->stat function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->stat function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,98 +0,0 @@
|
||||
<!--$Id: db_sync.so,v 10.20 2000/09/08 15:20:28 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->sync</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->sync</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->sync(DB *db, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->sync function flushes any cached information to disk.
|
||||
<p>If the database is in memory only, the DB->sync function has no effect and
|
||||
will always succeed.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>See <a href="../api_c/db_close.html">DB->close</a> for a discussion of Berkeley DB and cached data.
|
||||
<p>The DB->sync function returns a non-zero error value on failure, 0 on success, and returns <a href="../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> if the underlying database still has
|
||||
dirty pages in the cache. (The only reason to return
|
||||
<a href="../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> is if another thread of control was writing pages
|
||||
in the underlying database file at the same time as the
|
||||
DB->sync function was being called. For this reason, a return of
|
||||
<a href="../api_c/memp_fsync.html#DB_INCOMPLETE">DB_INCOMPLETE</a> can normally be ignored, or, in cases where it is
|
||||
a possible return value, there may be no reason to call
|
||||
DB->sync.)
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->sync function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<p>The DB->sync function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->sync function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,135 +0,0 @@
|
||||
<!--$Id: db_upgrade.so,v 10.18 2000/05/01 15:58:04 krinsky Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->upgrade</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->upgrade</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->upgrade(DB *db, const char *file, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->upgrade function upgrades all of the databases included in the
|
||||
file <b>file</b>, if necessary. If no upgrade is necessary,
|
||||
DB->upgrade always returns success.
|
||||
<p><b>Database upgrades are done in place and are destructive, e.g., if pages
|
||||
need to be allocated and no disk space is available, the database may be
|
||||
left corrupted. Backups should be made before databases are upgraded.
|
||||
See <a href="../ref/am/upgrade.html">Upgrading databases</a> for more
|
||||
information.</b>
|
||||
<p>Unlike all other database operations, DB->upgrade may only be done
|
||||
on a system with the same byte-order as the database.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or one of the following
|
||||
values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_DUPSORT">DB_DUPSORT</a><dd><b>This flag is only meaningful when upgrading databases from
|
||||
releases before the Berkeley DB 3.1 release.</b>
|
||||
<p>As part of the upgrade from the Berkeley DB 3.0 release to the 3.1 release, the
|
||||
on-disk format of duplicate data items changed. To correctly upgrade the
|
||||
format requires applications specify if duplicate data items in the
|
||||
database are sorted or not. Specifying the DB_DUPSORT flag
|
||||
informs DB->upgrade that the duplicates are sorted, otherwise they
|
||||
are assumed to be unsorted. Incorrectly specifying the value of this flag
|
||||
may lead to database corruption.
|
||||
<p>Further, because the DB->upgrade function upgrades a physical file
|
||||
(including all of the databases it contains), it is not possible to use
|
||||
DB->upgrade to upgrade files where some of the databases it
|
||||
includes have sorted duplicate data items and some of the databases it
|
||||
includes have unsorted duplicate data items. If the file does not have
|
||||
more than a single database, or the databases do not support duplicate
|
||||
data items, or all of the databases that support duplicate data items
|
||||
support the same style of duplicates (either sorted or unsorted),
|
||||
DB->upgrade will work correctly as long as the DB_DUPSORT
|
||||
flag is correctly specified. Otherwise, the file cannot be upgraded using
|
||||
DB->upgrade, and must be upgraded manually by dumping and
|
||||
re-loading the databases.
|
||||
</dl>
|
||||
<p>The DB->upgrade function returns a non-zero error value on failure and 0 on success.
|
||||
<p>The DB->upgrade function is the underlying function used by the <a href="../utility/db_upgrade.html">db_upgrade</a> utility.
|
||||
See the <a href="../utility/db_upgrade.html">db_upgrade</a> utility source code for an example of using DB->upgrade
|
||||
in a IEEE/ANSI Std 1003.1 (POSIX) environment.
|
||||
<h1>Environment Variables</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>DB_HOME<dd>If the <b>dbenv</b> argument to <a href="../api_c/db_create.html">db_create</a> was initialized using
|
||||
<a href="../api_c/env_open.html">DBENV->open</a> the environment variable <b>DB_HOME</b> may be used
|
||||
as the path of the database environment home. Specifically, DB->upgrade
|
||||
is affected by the configuration value DB_DATA_DIR.
|
||||
</dl>
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->upgrade function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The database is not in the same byte-order as the system.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_OLD_VERSION">DB_OLD_VERSION</a><dd>The database cannot be upgraded by this version of the Berkeley DB software.
|
||||
</dl>
|
||||
<p>The DB->upgrade function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->upgrade function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,150 +0,0 @@
|
||||
<!--$Id: db_verify.so,v 10.3 2000/04/11 15:13:51 dda Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DB->verify</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DB->verify</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DB->verify(DB *db, const char *file,
|
||||
const char *database, FILE *outfile, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DB->verify function verifies the integrity of all databases in the
|
||||
file specified by the file argument, and optionally outputs the databases'
|
||||
key/data pairs to a file stream.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or one of the following
|
||||
values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_SALVAGE">DB_SALVAGE</a><dd>Write the key/data pairs from all databases in the file to the file stream
|
||||
named in
|
||||
the <b>outfile</b> argument. The output format is the same as that
|
||||
specified for the <a href="../utility/db_dump.html">db_dump</a> utility and can be used as input for
|
||||
the <a href="../utility/db_load.html">db_load</a> utility.
|
||||
<p>Because the key/data pairs are output in page order as opposed to the sort
|
||||
order used by <a href="../utility/db_dump.html">db_dump</a>, using DB->verify to dump key/data
|
||||
pairs normally produces less than optimal loads for Btree databases.
|
||||
</dl>
|
||||
<p>In addition, the following flags may be set by bitwise inclusively <b>OR</b>'ing them into the
|
||||
<b>flags</b> parameter:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_AGGRESSIVE">DB_AGGRESSIVE</a><dd>Output <b>all</b> the key/data pairs in the file that can be found.
|
||||
By default, DB->verify does not assume corruption. For example,
|
||||
if a key/data pair on a page is marked as deleted, it is not then written
|
||||
to the output file. When DB_AGGRESSIVE is specified, corruption
|
||||
is assumed, and any key/data pair that can be found is written. In this
|
||||
case, key/data pairs that are corrupted or have been deleted may appear
|
||||
in the output (even if the file being salvaged is in no way corrupt), and
|
||||
the output will almost certainly require editing before being loaded into
|
||||
a database.
|
||||
<p><dt><a name="DB_NOORDERCHK">DB_NOORDERCHK</a><dd>Skip the database checks for btree and duplicate sort order and for
|
||||
hashing.
|
||||
<p>The DB->verify function normally verifies that btree keys and duplicate
|
||||
items are correctly sorted and hash keys are correctly hashed. If the
|
||||
file being verified contains multiple databases using differing sorting
|
||||
or hashing algorithms, some of them must necessarily fail database
|
||||
verification as only one sort order or hash function can be specified
|
||||
before DB->verify is called. To verify files with multiple
|
||||
databases having differing sorting orders or hashing functions, first
|
||||
perform verification of the file as a whole by using the
|
||||
DB_NOORDERCHK flag, and then individually verify the sort order
|
||||
and hashing function for each database in the file using the
|
||||
DB_ORDERCHKONLY flag.
|
||||
<p><dt><a name="DB_ORDERCHKONLY">DB_ORDERCHKONLY</a><dd>Perform the database checks for btree and duplicate sort order and for
|
||||
hashing, skipped by DB_NOORDERCHK.
|
||||
<p>When this flag is specified, a <b>database</b> argument should also be
|
||||
specified, indicating the database in the physical file which is to be
|
||||
checked. This flag is only safe to use on databases that have already
|
||||
successfully been verified using DB->verify with the
|
||||
DB_NOORDERCHK flag set.
|
||||
</dl>
|
||||
<p>The database argument must be set to NULL except when the
|
||||
DB_ORDERCHKONLY flag is set.
|
||||
<p>The DB->verify function returns a non-zero error value on failure, 0 on success, and <a href="../ref/program/errorret.html#DB_VERIFY_BAD">DB_VERIFY_BAD</a> if a database is corrupted. When the
|
||||
DB_SALVAGE flag is specified, the <a href="../ref/program/errorret.html#DB_VERIFY_BAD">DB_VERIFY_BAD</a> return
|
||||
means that all key/data pairs in the file may not have been successfully
|
||||
output.
|
||||
<p>The DB->verify function is the underlying function used by the <a href="../utility/db_verify.html">db_verify</a> utility.
|
||||
See the <a href="../utility/db_verify.html">db_verify</a> utility source code for an example of using DB->verify
|
||||
in a IEEE/ANSI Std 1003.1 (POSIX) environment.
|
||||
<h1>Environment Variables</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>DB_HOME<dd>If the <b>dbenv</b> argument to <a href="../api_c/db_create.html">db_create</a> was initialized using
|
||||
<a href="../api_c/env_open.html">DBENV->open</a> the environment variable <b>DB_HOME</b> may be used
|
||||
as the path of the database environment home. Specifically, DB->verify
|
||||
is affected by the configuration value DB_DATA_DIR.
|
||||
</dl>
|
||||
<h1>Errors</h1>
|
||||
<p>The DB->verify function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<p>The DB->verify function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DB->verify function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/db_create.html">db_create</a>,
|
||||
<a href="../api_c/db_close.html">DB->close</a>,
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>,
|
||||
<a href="../api_c/db_del.html">DB->del</a>,
|
||||
<a href="../api_c/db_err.html">DB->err</a>,
|
||||
<a href="../api_c/db_fd.html">DB->fd</a>,
|
||||
<a href="../api_c/db_get.html">DB->get</a>,
|
||||
<a href="../api_c/db_get_byteswapped.html">DB->get_byteswapped</a>,
|
||||
<a href="../api_c/db_get_type.html">DB->get_type</a>,
|
||||
<a href="../api_c/db_join.html">DB->join</a>,
|
||||
<a href="../api_c/db_key_range.html">DB->key_range</a>,
|
||||
<a href="../api_c/db_open.html">DB->open</a>,
|
||||
<a href="../api_c/db_put.html">DB->put</a>,
|
||||
<a href="../api_c/db_remove.html">DB->remove</a>,
|
||||
<a href="../api_c/db_set_bt_compare.html">DB->set_bt_compare</a>,
|
||||
<a href="../api_c/db_set_bt_minkey.html">DB->set_bt_minkey</a>,
|
||||
<a href="../api_c/db_set_bt_prefix.html">DB->set_bt_prefix</a>,
|
||||
<a href="../api_c/db_set_cachesize.html">DB->set_cachesize</a>,
|
||||
<a href="../api_c/db_set_dup_compare.html">DB->set_dup_compare</a>,
|
||||
<a href="../api_c/db_set_errcall.html">DB->set_errcall</a>,
|
||||
<a href="../api_c/db_set_errfile.html">DB->set_errfile</a>,
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a>,
|
||||
<a href="../api_c/db_set_flags.html">DB->set_flags</a>,
|
||||
<a href="../api_c/db_set_h_ffactor.html">DB->set_h_ffactor</a>,
|
||||
<a href="../api_c/db_set_h_hash.html">DB->set_h_hash</a>,
|
||||
<a href="../api_c/db_set_h_nelem.html">DB->set_h_nelem</a>,
|
||||
<a href="../api_c/db_set_lorder.html">DB->set_lorder</a>,
|
||||
<a href="../api_c/db_set_malloc.html">DB->set_malloc</a>,
|
||||
<a href="../api_c/db_set_pagesize.html">DB->set_pagesize</a>,
|
||||
<a href="../api_c/db_set_paniccall.html">DB->set_paniccall</a>,
|
||||
<a href="../api_c/db_set_q_extentsize.html">DB->set_q_extentsize</a>,
|
||||
<a href="../api_c/db_set_realloc.html">DB->set_realloc</a>,
|
||||
<a href="../api_c/db_set_re_delim.html">DB->set_re_delim</a>,
|
||||
<a href="../api_c/db_set_re_len.html">DB->set_re_len</a>,
|
||||
<a href="../api_c/db_set_re_pad.html">DB->set_re_pad</a>,
|
||||
<a href="../api_c/db_set_re_source.html">DB->set_re_source</a>,
|
||||
<a href="../api_c/db_stat.html">DB->stat</a>,
|
||||
<a href="../api_c/db_sync.html">DB->sync</a>,
|
||||
<a href="../api_c/db_upgrade.html">DB->upgrade</a>
|
||||
and
|
||||
<a href="../api_c/db_verify.html">DB->verify</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,64 +0,0 @@
|
||||
<!--$Id: dbc_close.so,v 10.20 2000/03/01 21:41:29 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBcursor->c_close</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBcursor->c_close</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBcursor->c_close(DBC *cursor);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBcursor->c_close function discards the cursor.
|
||||
<p>It is possible for the DBcursor->c_close function to return
|
||||
<a href="../ref/program/errorret.html#DB_LOCK_DEADLOCK">DB_LOCK_DEADLOCK</a>, signaling that any enclosing transaction should
|
||||
be aborted. If the application is already intending to abort the
|
||||
transaction, this error should be ignored, and the application should
|
||||
proceed.
|
||||
<p>Once DBcursor->c_close has been called, regardless of its return, the
|
||||
cursor handle may not be used again.
|
||||
<p>The DBcursor->c_close function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DBcursor->c_close function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The cursor was previously closed.
|
||||
</dl>
|
||||
<p>The DBcursor->c_close function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBcursor->c_close function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/dbc_close.html">DBcursor->c_close</a>,
|
||||
<a href="../api_c/dbc_count.html">DBcursor->c_count</a>,
|
||||
<a href="../api_c/dbc_del.html">DBcursor->c_del</a>,
|
||||
<a href="../api_c/dbc_dup.html">DBcursor->c_dup</a>,
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a>
|
||||
and
|
||||
<a href="../api_c/dbc_put.html">DBcursor->c_put</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,55 +0,0 @@
|
||||
<!--$Id: dbc_count.so,v 10.4 2000/03/01 21:41:29 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBcursor->c_count</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBcursor->c_count</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBC->c_count(DBC *cursor, db_recno_t *countp, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBcursor->c_count function returns a count of the number of duplicate data
|
||||
items for the key referenced by the
|
||||
cursor into the memory location referenced by <b>countp</b>.
|
||||
If the underlying database does not support duplicate data items the call
|
||||
will still succeed and a count of 1 will be returned.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>If the <b>cursor</b> argument is not yet initialized, the DBcursor->c_count function will return EINVAL.
|
||||
<p>Otherwise, the DBcursor->c_count function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DBcursor->c_count function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBcursor->c_count function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/dbc_close.html">DBcursor->c_close</a>,
|
||||
<a href="../api_c/dbc_count.html">DBcursor->c_count</a>,
|
||||
<a href="../api_c/dbc_del.html">DBcursor->c_del</a>,
|
||||
<a href="../api_c/dbc_dup.html">DBcursor->c_dup</a>,
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a>
|
||||
and
|
||||
<a href="../api_c/dbc_put.html">DBcursor->c_put</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,68 +0,0 @@
|
||||
<!--$Id: dbc_del.so,v 10.23 2000/05/22 20:51:46 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBcursor->c_del</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBcursor->c_del</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBcursor->c_del(DBC *cursor, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBcursor->c_del function deletes the key/data pair currently referenced by
|
||||
the cursor.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>The cursor position is unchanged after a delete, and subsequent calls to
|
||||
cursor functions expecting the cursor to reference an existing key will
|
||||
fail.
|
||||
<p>If the element has already been deleted, DBcursor->c_del will return
|
||||
<a href="../ref/program/errorret.html#DB_KEYEMPTY">DB_KEYEMPTY</a>.
|
||||
<p>If the cursor is not yet initialized, the DBcursor->c_del function will return EINVAL.
|
||||
<p>Otherwise, the DBcursor->c_del function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DBcursor->c_del function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EPERM <dd>Write attempted on read-only cursor when the <a href="../api_c/env_open.html#DB_INIT_CDB">DB_INIT_CDB</a> flag was
|
||||
specified to <a href="../api_c/env_open.html">DBENV->open</a>.
|
||||
</dl>
|
||||
<p>The DBcursor->c_del function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBcursor->c_del function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/dbc_close.html">DBcursor->c_close</a>,
|
||||
<a href="../api_c/dbc_count.html">DBcursor->c_count</a>,
|
||||
<a href="../api_c/dbc_del.html">DBcursor->c_del</a>,
|
||||
<a href="../api_c/dbc_dup.html">DBcursor->c_dup</a>,
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a>
|
||||
and
|
||||
<a href="../api_c/dbc_put.html">DBcursor->c_put</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,72 +0,0 @@
|
||||
<!--$Id: dbc_dup.so,v 10.8 2000/03/17 01:53:58 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBcursor->c_dup</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBcursor->c_dup</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBC->c_dup(DBC *cursor, DBC **cursorp, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBcursor->c_dup function creates a new cursor that uses the same transaction
|
||||
and locker ID as the original cursor. This is useful when an application
|
||||
is using locking and requires two or more cursors in the same thread of
|
||||
control.
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_POSITION">DB_POSITION</a><dd>The newly created cursor is initialized to reference the same position
|
||||
in the database as the original cursor and hold the same locks. If the
|
||||
DB_POSITION flag is not specified, then the created cursor is
|
||||
uninitialized and will behave like a cursor newly created using
|
||||
<a href="../api_c/db_cursor.html">DB->cursor</a>.
|
||||
</dl>
|
||||
<p>When using the Berkeley DB Concurrent Data Store product, there can be only one active write cursor
|
||||
at a time. For this reason, attempting to duplicate a cursor for which
|
||||
the <a href="../api_c/db_cursor.html#DB_WRITECURSOR">DB_WRITECURSOR</a> flag was specified during creation will return
|
||||
an error.
|
||||
<p>If the <b>cursor</b> argument is not yet initialized, the DBcursor->c_dup function will return EINVAL.
|
||||
<p>Otherwise, the DBcursor->c_dup function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DBcursor->c_dup function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The <b>cursor</b> argument was created using the
|
||||
<a href="../api_c/db_cursor.html#DB_WRITECURSOR">DB_WRITECURSOR</a> flag in the Berkeley DB Concurrent Data Store product.
|
||||
</dl>
|
||||
<p>The DBcursor->c_dup function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBcursor->c_dup function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/dbc_close.html">DBcursor->c_close</a>,
|
||||
<a href="../api_c/dbc_count.html">DBcursor->c_count</a>,
|
||||
<a href="../api_c/dbc_del.html">DBcursor->c_del</a>,
|
||||
<a href="../api_c/dbc_dup.html">DBcursor->c_dup</a>,
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a>
|
||||
and
|
||||
<a href="../api_c/dbc_put.html">DBcursor->c_put</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,167 +0,0 @@
|
||||
<!--$Id: dbc_get.so,v 10.46 2001/01/19 17:29:46 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBcursor->c_get</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBcursor->c_get</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBcursor->c_get(DBC *cursor,
|
||||
DBT *key, DBT *data, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBcursor->c_get function retrieves key/data pairs from the database. The
|
||||
address and length of the key
|
||||
are returned in the object referenced by <b>key</b> (except for the case
|
||||
of the DB_SET flag where the <b>key</b> object is unchanged),
|
||||
and the address and length of
|
||||
the data are returned in the object referenced by <b>data</b>.
|
||||
<p>Modifications to the database during a sequential scan will be reflected
|
||||
in the scan, i.e. records inserted behind a cursor will not be returned
|
||||
while records inserted in front of a cursor will be returned.
|
||||
<p>In Queue and Recno databases, missing entries (i.e., entries that were
|
||||
never explicitly created or that were created and then deleted), will be
|
||||
skipped during a sequential scan.
|
||||
<p>If multiple threads or processes insert items into the same database file
|
||||
without using locking, the results are undefined.
|
||||
For more detail,
|
||||
see <a href="../ref/am/stability.html">Cursor stability</a>.
|
||||
<p>The <b>flags</b> parameter must be set to one of the following values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_CURRENT">DB_CURRENT</a><dd>Return the key/data pair currently referenced by the cursor.
|
||||
<p>If the cursor key/data pair was deleted, DBcursor->c_get will return
|
||||
<a href="../ref/program/errorret.html#DB_KEYEMPTY">DB_KEYEMPTY</a>.
|
||||
<p>If the cursor is not yet initialized, the DBcursor->c_get function will return EINVAL.
|
||||
<p><dt><a name="DB_FIRST">DB_FIRST</a>, <a name="DB_LAST">DB_LAST</a><dd>The cursor is set to reference the first (last) key/data pair of the
|
||||
database, and that pair is returned. In the presence of duplicate key
|
||||
values, the first (last) data item in the set of duplicates is returned.
|
||||
<p>If the database is a Queue or Recno database, DBcursor->c_get using the
|
||||
DB_FIRST (DB_LAST) flags will ignore any keys that exist
|
||||
but were never explicitly created by the application or were created and
|
||||
later deleted.
|
||||
<p>If the database is empty, DBcursor->c_get will return <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
<p><dt><a name="DB_GET_BOTH">DB_GET_BOTH</a><dd>The DB_GET_BOTH flag is identical to the DB_SET flag,
|
||||
except that both the key and the data arguments must be matched by the
|
||||
key and data item in the database.
|
||||
<p><dt><a name="DB_GET_RECNO">DB_GET_RECNO</a><dd>Return the record number associated with the cursor. The record number
|
||||
will be returned in <b>data</b> as described in <a href="../api_c/dbt.html">DBT</a>. The
|
||||
<b>key</b> parameter is ignored.
|
||||
<p>For DB_GET_RECNO to be specified, the underlying database must be
|
||||
of type Btree and it must have been created with the <a href="../api_c/db_set_flags.html#DB_RECNUM">DB_RECNUM</a>
|
||||
flag.
|
||||
<p><dt><a name="DB_JOIN_ITEM">DB_JOIN_ITEM</a><dd>Do not use the data value found in all of the cursors as a lookup key for
|
||||
the primary database, but simply return it in the key parameter instead.
|
||||
The data parameter is left unchanged.
|
||||
<p>For DB_JOIN_ITEM to be specified, the underlying cursor must have
|
||||
been returned from the <a href="../api_c/db_join.html">DB->join</a> function.
|
||||
<p><dt><a name="DB_NEXT">DB_NEXT</a>, <a name="DB_PREV">DB_PREV</a><dd>If the cursor is not yet initialized, DB_NEXT (DB_PREV)
|
||||
is identical to DB_FIRST (DB_LAST). Otherwise, the cursor
|
||||
is moved to the next (previous) key/data pair of the database, and that
|
||||
pair is returned. In the presence of duplicate key values, the value of
|
||||
the key may not change.
|
||||
<p>If the database is a Queue or Recno database, DBcursor->c_get using the
|
||||
DB_NEXT (DB_PREV) flag will skip any keys that exist but
|
||||
were never explicitly created by the application or were created and later
|
||||
deleted.
|
||||
<p>If the cursor is already on the last (first) record in the database,
|
||||
DBcursor->c_get will return <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
<p><dt><a name="DB_NEXT_DUP">DB_NEXT_DUP</a><dd>If the next key/data pair of the database is a duplicate record for the
|
||||
current key/data pair, the cursor is moved to the next key/data pair of
|
||||
the database, and that pair is returned. Otherwise, DBcursor->c_get will
|
||||
return <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
<p>If the cursor is not yet initialized, the DBcursor->c_get function will return EINVAL.
|
||||
<p><dt><a name="DB_NEXT_NODUP">DB_NEXT_NODUP</a>, <a name="DB_PREV_NODUP">DB_PREV_NODUP</a><dd>If the cursor is not yet initialized, DB_NEXT_NODUP
|
||||
(DB_PREV_NODUP) is identical to DB_FIRST
|
||||
(DB_LAST). Otherwise, the cursor is moved to the next (previous)
|
||||
non-duplicate key/data pair of the database, and that pair is returned.
|
||||
<p>If the database is a Queue or Recno database, DBcursor->c_get using the
|
||||
DB_NEXT_NODUP (DB_PREV_NODUP) flags will ignore any keys
|
||||
that exist but were never explicitly created by the application or were
|
||||
created and later deleted.
|
||||
<p>If no non-duplicate key/data pairs occur after (before) the cursor
|
||||
position in the database, DBcursor->c_get will return <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
<p><dt><a name="DB_SET">DB_SET</a><dd>Move the cursor to the specified key/data pair of the database, and
|
||||
return the datum associated with the given key.
|
||||
<p>In the presence of duplicate key values, DBcursor->c_get will return the
|
||||
first data item for the given key.
|
||||
<p>If the database is a Queue or Recno database and the requested key exists,
|
||||
but was never explicitly created by the application or was later deleted,
|
||||
DBcursor->c_get will return <a href="../ref/program/errorret.html#DB_KEYEMPTY">DB_KEYEMPTY</a>.
|
||||
<p>If no matching keys are found, DBcursor->c_get will return
|
||||
<a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
<p><dt><a name="DB_SET_RANGE">DB_SET_RANGE</a><dd>The DB_SET_RANGE flag is identical to the DB_SET flag,
|
||||
except that the key is returned as well as the data item, and, in the case
|
||||
of the Btree access method, the returned key/data pair is the smallest
|
||||
key greater than or equal to the specified key (as determined by the
|
||||
comparison function), permitting partial key matches and range
|
||||
searches.
|
||||
<p><dt><a name="DB_SET_RECNO">DB_SET_RECNO</a><dd>Move the cursor to the specific numbered record of the database, and
|
||||
return the associated key/data pair. The <b>data</b> field of the
|
||||
specified <b>key</b>
|
||||
must be a pointer to a memory location from which a <a href="../api_c/dbt.html#db_recno_t">db_recno_t</a>
|
||||
may be read, as described in <a href="../api_c/dbt.html">DBT</a>. This memory location will be
|
||||
read to determine the record to be retrieved.
|
||||
<p>For DB_SET_RECNO to be specified, the underlying database must be
|
||||
of type Btree and it must have been created with the <a href="../api_c/db_set_flags.html#DB_RECNUM">DB_RECNUM</a>
|
||||
flag.
|
||||
</dl>
|
||||
<p>In addition, the following flag may be set by bitwise inclusively <b>OR</b>'ing it into the
|
||||
<b>flags</b> parameter:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_RMW">DB_RMW</a><dd>Acquire write locks instead of read locks when doing the retrieval.
|
||||
Setting this flag may decrease the likelihood of deadlock during a
|
||||
read-modify-write cycle by immediately acquiring the write lock during
|
||||
the read part of the cycle so that another thread of control acquiring
|
||||
a read lock for the same item, in its own read-modify-write cycle, will
|
||||
not result in deadlock.
|
||||
</dl>
|
||||
<p>Otherwise, the DBcursor->c_get function returns a non-zero error value on failure and 0 on success.
|
||||
<p>If DBcursor->c_get fails for any reason, the state of the cursor will be
|
||||
unchanged.
|
||||
<h1>Errors</h1>
|
||||
<p>The DBcursor->c_get function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>ENOMEM<dd>There was insufficient memory to return the requested item.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The specified cursor was not currently initialized.
|
||||
</dl>
|
||||
<p>The DBcursor->c_get function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBcursor->c_get function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/dbc_close.html">DBcursor->c_close</a>,
|
||||
<a href="../api_c/dbc_count.html">DBcursor->c_count</a>,
|
||||
<a href="../api_c/dbc_del.html">DBcursor->c_del</a>,
|
||||
<a href="../api_c/dbc_dup.html">DBcursor->c_dup</a>,
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a>
|
||||
and
|
||||
<a href="../api_c/dbc_put.html">DBcursor->c_put</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,154 +0,0 @@
|
||||
<!--$Id: dbc_put.so,v 10.33 2000/12/04 17:02:01 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBcursor->c_put</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBcursor->c_put</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBcursor->c_put(DBC *, DBT *key, DBT *data, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBcursor->c_put function stores key/data pairs into the database.
|
||||
<p>The <b>flags</b> parameter must be set to one of the following values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_AFTER">DB_AFTER</a><dd>In the case of the Btree and Hash access methods, insert the data
|
||||
element as a duplicate element of the key referenced by the cursor.
|
||||
The new element appears immediately after the current cursor position.
|
||||
It is an error to specify DB_AFTER if the underlying Btree or
|
||||
Hash database does not support duplicate data items. The <b>key</b>
|
||||
parameter is ignored.
|
||||
<p>In the case of the Recno access method, it is an error to specify
|
||||
DB_AFTER if the underlying Recno database was not created with
|
||||
the <a href="../api_c/db_set_flags.html#DB_RENUMBER">DB_RENUMBER</a> flag. If the <a href="../api_c/db_set_flags.html#DB_RENUMBER">DB_RENUMBER</a> flag was
|
||||
specified, a new key is created, all records after the inserted item
|
||||
are automatically renumbered, and the key of the new record is returned
|
||||
in the structure referenced by the parameter <b>key</b>. The initial
|
||||
value of the <b>key</b> parameter is ignored. See <a href="../api_c/db_open.html">DB->open</a>
|
||||
for more information.
|
||||
<p>The DB_AFTER flag may not be specified to the Queue access method.
|
||||
<p>If the current cursor record has already been deleted and the underlying
|
||||
access method is Hash, DBcursor->c_put will return <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
If the underlying access method is Btree or Recno, the operation will
|
||||
succeed.
|
||||
<p>If the cursor is not yet initialized or a duplicate sort function has been
|
||||
specified, the DBcursor->c_put function will return EINVAL.
|
||||
<p><dt><a name="DB_BEFORE">DB_BEFORE</a><dd>In the case of the Btree and Hash access methods, insert the data element
|
||||
as a duplicate element of the key referenced by the cursor. The new
|
||||
element appears immediately before the current cursor position. It is
|
||||
an error to specify DB_BEFORE if the underlying Btree or Hash
|
||||
database does not support duplicate data items. The <b>key</b>
|
||||
parameter is ignored.
|
||||
<p>In the case of the Recno access method, it is an error to specify
|
||||
DB_BEFORE if the underlying Recno database was not created with
|
||||
the <a href="../api_c/db_set_flags.html#DB_RENUMBER">DB_RENUMBER</a> flag. If the <a href="../api_c/db_set_flags.html#DB_RENUMBER">DB_RENUMBER</a> flag was
|
||||
specified, a new key is created, the current record and all records
|
||||
after it are automatically renumbered, and the key of the new record is
|
||||
returned in the structure referenced by the parameter <b>key</b>. The
|
||||
initial value of the <b>key</b> parameter is ignored. See
|
||||
<a href="../api_c/db_open.html">DB->open</a> for more information.
|
||||
<p>The DB_BEFORE flag may not be specified to the Queue access method.
|
||||
<p>If the current cursor record has already been deleted and the underlying
|
||||
access method is Hash, DBcursor->c_put will return <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
If the underlying access method is Btree or Recno, the operation will
|
||||
succeed.
|
||||
<p>If the cursor is not yet initialized or a duplicate sort function has been
|
||||
specified, DBcursor->c_put will return EINVAL.
|
||||
<p><dt><a name="DB_CURRENT">DB_CURRENT</a><dd>Overwrite the data of the key/data pair referenced by the cursor with the
|
||||
specified data item. The <b>key</b> parameter is ignored.
|
||||
<p>If a duplicate sort function has been specified and the data item of the
|
||||
current referenced key/data pair does not compare equally to the <b>data</b>
|
||||
parameter, DBcursor->c_put will return EINVAL.
|
||||
<p>If the current cursor record has already been deleted and the underlying
|
||||
access method is Hash, DBcursor->c_put will return <a href="../ref/program/errorret.html#DB_NOTFOUND">DB_NOTFOUND</a>.
|
||||
If the underlying access method is Btree, Queue or Recno, the operation
|
||||
will succeed.
|
||||
<p>If the cursor is not yet initialized, DBcursor->c_put will return EINVAL.
|
||||
<p><dt><a name="DB_KEYFIRST">DB_KEYFIRST</a><dd>In the case of the Btree and Hash access methods, insert the specified
|
||||
key/data pair into the database.
|
||||
<p>If the underlying database supports duplicate data items, and if the
|
||||
key already exists in the database and a duplicate sort function has
|
||||
been specified, the inserted data item is added in its sorted location.
|
||||
If the key already exists in the database and no duplicate sort function
|
||||
has been specified, the inserted data item is added as the first of the
|
||||
data items for that key.
|
||||
<p>The DB_KEYFIRST flag may not be specified to the Queue or Recno
|
||||
access methods.
|
||||
<p><dt><a name="DB_KEYLAST">DB_KEYLAST</a><dd>In the case of the Btree and Hash access methods, insert the specified
|
||||
key/data pair into the database.
|
||||
<p>If the underlying database supports duplicate data items, and if the
|
||||
key already exists in the database and a duplicate sort function has
|
||||
been specified, the inserted data item is added in its sorted location.
|
||||
If the key already exists in the database, and no duplicate sort
|
||||
function has been specified, the inserted data item is added as the last
|
||||
of the data items for that key.
|
||||
<p>The DB_KEYLAST flag may not be specified to the Queue or Recno
|
||||
access methods.
|
||||
<p><dt><a name="DB_NODUPDATA">DB_NODUPDATA</a><dd>In the case of the Btree and Hash access methods, insert the specified
|
||||
key/data pair into the database unless it already exists in the database.
|
||||
If the key/data pair already appears in the database, <a href="../api_c/dbc_put.html#DB_KEYEXIST">DB_KEYEXIST</a>
|
||||
is returned. The DB_NODUPDATA flag may only be specified if
|
||||
the underlying database has been configured to support sorted duplicate
|
||||
data items.
|
||||
<p>The DB_NODUPDATA flag may not be specified to the Queue or Recno
|
||||
access methods.
|
||||
</dl>
|
||||
<p>Otherwise, the DBcursor->c_put function returns a non-zero error value on failure and 0 on success.
|
||||
<p>If DBcursor->c_put fails for any reason, the state of the cursor will be
|
||||
unchanged. If DBcursor->c_put succeeds and an item is inserted into the
|
||||
database, the cursor is always positioned to reference the newly inserted
|
||||
item.
|
||||
<h1>Errors</h1>
|
||||
<p>The DBcursor->c_put function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>DB_LOCK_DEADLOCK<dd>The operation was selected to resolve a deadlock.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EACCES<dd>An attempt was made to modify a read-only database.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>The DB_BEFORE or DB_AFTER flags were specified, and the
|
||||
underlying access method is Queue.
|
||||
<p>An attempt was made to add a record to a fixed-length database that was too
|
||||
large to fit.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EPERM <dd>Write attempted on read-only cursor when the <a href="../api_c/env_open.html#DB_INIT_CDB">DB_INIT_CDB</a> flag was
|
||||
specified to <a href="../api_c/env_open.html">DBENV->open</a>.
|
||||
</dl>
|
||||
<p>The DBcursor->c_put function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBcursor->c_put function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/dbc_close.html">DBcursor->c_close</a>,
|
||||
<a href="../api_c/dbc_count.html">DBcursor->c_count</a>,
|
||||
<a href="../api_c/dbc_del.html">DBcursor->c_del</a>,
|
||||
<a href="../api_c/dbc_dup.html">DBcursor->c_dup</a>,
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a>
|
||||
and
|
||||
<a href="../api_c/dbc_put.html">DBcursor->c_put</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,220 +0,0 @@
|
||||
<!--$Id: dbm.so,v 10.18 2000/03/01 21:41:29 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: dbm/ndbm</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>dbm/ndbm</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#define DB_DBM_HSEARCH 1
|
||||
#include <db.h>
|
||||
<p>
|
||||
typedef struct {
|
||||
char *dptr;
|
||||
int dsize;
|
||||
} datum;
|
||||
<hr size=1 noshade>
|
||||
<h3>Dbm Functions</h3>
|
||||
int
|
||||
dbminit(char *file);
|
||||
<p>
|
||||
int
|
||||
dbmclose();
|
||||
<p>
|
||||
datum
|
||||
fetch(datum key);
|
||||
<p>
|
||||
int
|
||||
store(datum key, datum content);
|
||||
<p>
|
||||
int
|
||||
delete(datum key);
|
||||
<p>
|
||||
datum
|
||||
firstkey(void);
|
||||
<p>
|
||||
datum
|
||||
nextkey(datum key);
|
||||
<hr size=1 noshade>
|
||||
<h3>Ndbm Functions</h3>
|
||||
DBM *
|
||||
dbm_open(char *file, int flags, int mode);
|
||||
<p>
|
||||
void
|
||||
dbm_close(DBM *db);
|
||||
<p>
|
||||
datum
|
||||
dbm_fetch(DBM *db, datum key);
|
||||
<p>
|
||||
int
|
||||
dbm_store(DBM *db, datum key, datum content, int flags);
|
||||
<p>
|
||||
int
|
||||
dbm_delete(DBM *db, datum key);
|
||||
<p>
|
||||
datum
|
||||
dbm_firstkey(DBM *db);
|
||||
<p>
|
||||
datum
|
||||
dbm_nextkey(DBM *db);
|
||||
<p>
|
||||
int
|
||||
dbm_error(DBM *db);
|
||||
<p>
|
||||
int
|
||||
dbm_clearerr(DBM *db);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The dbm interfaces to the Berkeley DB library are intended to provide
|
||||
high-performance implementations and source code compatibility for
|
||||
applications written to historic interfaces. They are not recommended
|
||||
for any other purpose. The historic dbm database format
|
||||
<b>is not supported</b>, and databases previously built using the real
|
||||
dbm libraries cannot be read by the Berkeley DB functions.
|
||||
<p>To compile dbm applications, replace the application's
|
||||
<b>#include</b> of the dbm or ndbm include file (e.g.,
|
||||
<b>#include <dbm.h></b> or <b>#include <ndbm.h></b>)
|
||||
with the following two lines:
|
||||
<p><blockquote><pre>#define DB_DBM_HSEARCH 1
|
||||
#include <db.h></pre></blockquote>
|
||||
<p>and recompile. If the application attempts to load against a dbm library
|
||||
(e.g., <b>-ldbm</b>), remove the library from the load line.
|
||||
<p><b>Key</b> and <b>content</b> arguments are objects described by the
|
||||
<b>datum</b> typedef. A <b>datum</b> specifies a string of
|
||||
<b>dsize</b> bytes pointed to by <b>dptr</b>. Arbitrary binary data,
|
||||
as well as normal text strings, is allowed.
|
||||
<h3>Dbm Functions</h3>
|
||||
<p>Before a database can be accessed, it must be opened by dbminit.
|
||||
This will open and/or create the database <b>file</b>.db. If created,
|
||||
the database file is created read/write by owner only (as described in
|
||||
<b>chmod</b>(2) and modified by the process' umask value at the time
|
||||
of creation (see <b>umask</b>(2)). The group ownership of created
|
||||
files is based on the system and directory defaults, and is not further
|
||||
specified by Berkeley DB.
|
||||
<p>A database may be closed, and any held resources released, by calling
|
||||
dbmclose.
|
||||
<p>Once open, the data stored under a key is accessed by fetch and
|
||||
data is placed under a key by store. A key (and its associated
|
||||
contents) is deleted by delete. A linear pass through all keys
|
||||
in a database may be made, in an (apparently) random order, by use of
|
||||
firstkey and nextkey. The firstkey function will return
|
||||
the first key in the database. The nextkey function will return the next
|
||||
key in the database.
|
||||
<p>The following code will traverse the data base:
|
||||
<p><blockquote><pre>for (key = firstkey();
|
||||
key.dptr != NULL; key = nextkey(key)) {
|
||||
...
|
||||
}</pre></blockquote>
|
||||
<h3>Ndbm Functions</h3>
|
||||
<p>Before a database can be accessed, it must be opened by dbm_open.
|
||||
This will open and/or create the database file <b>file.db</b> depending
|
||||
on the flags parameter (see <b>open</b>(2)). If created, the database
|
||||
file is created with mode <b>mode</b> (as described in <b>chmod</b>(2)) and modified by the process' umask value at the time of creation (see
|
||||
<b>umask</b>(2)). The group ownership of created files is based on
|
||||
the system and directory defaults, and is not further specified by
|
||||
Berkeley DB.
|
||||
<p>Once open, the data stored under a key is accessed by dbm_fetch
|
||||
and data is placed under a key by dbm_store. The <b>flags</b>
|
||||
field can be either <b>DBM_INSERT</b> or <b>DBM_REPLACE</b>.
|
||||
<b>DBM_INSERT</b> will only insert new entries into the database and will
|
||||
not change an existing entry with the same key. <b>DBM_REPLACE</b> will
|
||||
replace an existing entry if it has the same key. A key (and its
|
||||
associated contents) is deleted by dbm_delete. A linear pass
|
||||
through all keys in a database may be made, in an (apparently) random
|
||||
order, by use of dbm_firstkey and dbm_nextkey. The
|
||||
dbm_firstkey function will return the first key in the database. The
|
||||
dbm_nextkey function will return the next key in the database.
|
||||
<p>The following code will traverse the data base:
|
||||
<p><blockquote><pre>for (key = dbm_firstkey(db);
|
||||
key.dptr != NULL; key = dbm_nextkey(db)) {
|
||||
...
|
||||
}</pre></blockquote>
|
||||
<h3>Compatibility Notes</h3>
|
||||
<p>The historic dbm library created two underlying database files,
|
||||
traditionally named <b>file.dir</b> and <b>file.pag</b>. The Berkeley DB
|
||||
library creates a single database file named <b>file.db</b>.
|
||||
Applications that are aware of the underlying database file names may
|
||||
require additional source code modifications.
|
||||
<p>The historic dbminit interface required that the underlying
|
||||
<b>.dir</b> and <b>.pag</b> files already exist (empty databases were
|
||||
created by first manually creating zero-length <b>.dir</b> and
|
||||
<b>.pag</b> files). Applications that expect to create databases using
|
||||
this method may require additional source code modifications.
|
||||
<p>The historic dbm_dirfno and dbm_pagfno macros are
|
||||
supported, but will return identical file descriptors as there is only a
|
||||
single underlying file used by the Berkeley DB hashing access method.
|
||||
Applications using both file descriptors for locking may require
|
||||
additional source code modifications.
|
||||
<p>If applications using the dbm interface exits without first
|
||||
closing the database, it may lose updates because the Berkeley DB library
|
||||
buffers writes to underlying databases. Such applications will require
|
||||
additional source code modifications to work correctly with the Berkeley DB
|
||||
library.
|
||||
<h3>Dbm Diagnostics</h3>
|
||||
<p>The dbminit function returns -1 on failure, setting <b>errno</b>,
|
||||
and 0 on success.
|
||||
<p>The fetch function sets the <b>dptr</b> field of the returned
|
||||
<b>datum</b> to NULL on failure, setting <b>errno</b>,
|
||||
and returns a non-NULL <b>dptr</b> on success.
|
||||
<p>The store function returns -1 on failure, setting <b>errno</b>,
|
||||
and 0 on success.
|
||||
<p>The delete function returns -1 on failure, setting <b>errno</b>,
|
||||
and 0 on success.
|
||||
<p>The firstkey function sets the <b>dptr</b> field of the returned
|
||||
<b>datum</b> to NULL on failure, setting <b>errno</b>,
|
||||
and returns a non-NULL <b>dptr</b> on success.
|
||||
<p>The nextkey function sets the <b>dptr</b> field of the returned
|
||||
<b>datum</b> to NULL on failure, setting <b>errno</b>,
|
||||
and returns a non-NULL <b>dptr</b> on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The dbminit, fetch, store, delete, firstkey and nextkey functions may fail
|
||||
and return a non-zero error for errors specified for other Berkeley DB and C
|
||||
library or system functions.
|
||||
<h3>Ndbm Diagnostics</h3>
|
||||
<p>The dbm_close function returns non-zero when an error has occurred reading or
|
||||
writing the database.
|
||||
<p>The dbm_close function resets the error condition on the named database.
|
||||
<p>The dbm_open function returns NULL on failure, setting <b>errno</b>,
|
||||
and 0 on success.
|
||||
<p>The dbm_fetch function sets the <b>dptr</b> field of the returned
|
||||
<b>datum</b> to NULL on failure, setting <b>errno</b>,
|
||||
and returns a non-NULL <b>dptr</b> on success.
|
||||
<p>The dbm_store function returns -1 on failure, setting <b>errno</b>,
|
||||
0 on success, and 1 if DBM_INSERT was set and the specified key already
|
||||
existed in the database.
|
||||
<p>The dbm_delete function returns -1 on failure, setting <b>errno</b>,
|
||||
and 0 on success.
|
||||
<p>The dbm_firstkey function sets the <b>dptr</b> field of the returned
|
||||
<b>datum</b> to NULL on failure, setting <b>errno</b>,
|
||||
and returns a non-NULL <b>dptr</b> on success.
|
||||
<p>The dbm_nextkey function sets the <b>dptr</b> field of the returned
|
||||
<b>datum</b> to NULL on failure, setting <b>errno</b>,
|
||||
and returns a non-NULL <b>dptr</b> on success.
|
||||
<p>The dbm_close function returns -1 on failure, setting <b>errno</b>,
|
||||
and 0 on success.
|
||||
<p>The dbm_close function returns -1 on failure, setting <b>errno</b>,
|
||||
and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey
|
||||
and dbm_nextkey functions may fail and return a non-zero error for errors
|
||||
specified for other Berkeley DB and C library or system functions.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,158 +0,0 @@
|
||||
<!--$Id: dbt.so,v 10.37 2000/12/18 21:05:12 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBT</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<tt>
|
||||
<a name="2"><!--meow--></a>
|
||||
<h3>Key/Data Pairs</h3>
|
||||
<p>Storage and retrieval for the Berkeley DB access methods are based on key/data
|
||||
pairs. Both key and data items are represented by the DBT data structure.
|
||||
(The name DBT is a mnemonic for <i>data base thang</i>, and was used
|
||||
because no one could think of a reasonable name that wasn't already in
|
||||
use somewhere else.) Key and data byte strings may reference strings of
|
||||
zero length up to strings of essentially unlimited length. See
|
||||
<a href="../ref/program/dbsizes.html">Database limits</a> for more
|
||||
information.
|
||||
<p><blockquote><pre>typedef struct {
|
||||
void *data;
|
||||
u_int32_t size;
|
||||
u_int32_t ulen;
|
||||
u_int32_t dlen;
|
||||
u_int32_t doff;
|
||||
u_int32_t flags;
|
||||
} DBT;</pre></blockquote>
|
||||
<p>In order to ensure compatibility with future releases of Berkeley DB, all fields
|
||||
of the DBT structure that are not explicitly set should be initialized to
|
||||
0 before the first time the structure is used. Do this by declaring the
|
||||
structure external or static, or by calling the C library routine
|
||||
<b>bzero</b>(3) or <b>memset</b>(3).
|
||||
<p>By default, the <b>flags</b> structure element is expected to be 0. In
|
||||
this default case, when the application is providing Berkeley DB a key or data
|
||||
item to store into the database, Berkeley DB expects the <b>data</b> structure
|
||||
element to point to a byte string of <b>size</b> bytes. When returning
|
||||
a key/data item to the application, Berkeley DB will store into the <b>data</b>
|
||||
structure element a pointer to a byte string of <b>size</b> bytes, and
|
||||
the memory referenced by the pointer will be allocated and managed by Berkeley DB.
|
||||
<p>The elements of the DBT structure are defined as follows:
|
||||
<p><dl compact>
|
||||
<p><dt>void *<a name="data">data</a>;<dd>A pointer to a byte string.
|
||||
<p><dt>u_int32_t <a name="size">size</a>;<dd>The length of <b>data</b>, in bytes.
|
||||
<p><dt>u_int32_t <a name="ulen">ulen</a>;<dd>The size of the user's buffer (referenced by <b>data</b>), in bytes.
|
||||
This location is not written by the Berkeley DB functions.
|
||||
<p>Note that applications can determine the length of a record by setting
|
||||
the <b>ulen</b> field to 0 and checking the return value in the
|
||||
<b>size</b> field. See the DB_DBT_USERMEM flag for more information.
|
||||
<p><dt>u_int32_t <a name="dlen">dlen</a>;<dd>The length of the partial record being read or written by the application,
|
||||
in bytes. See the DB_DBT_PARTIAL flag for more information.
|
||||
<p><dt>u_int32_t <a name="doff">doff</a>;<dd>The offset of the partial record being read or written by the application,
|
||||
in bytes. See the DB_DBT_PARTIAL flag for more information.
|
||||
<p><dt>u_int32_t flags;<dd>
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_DBT_MALLOC">DB_DBT_MALLOC</a><dd>When this flag is set Berkeley DB will allocate memory for the returned key
|
||||
or data item (using <b>malloc</b>(3), or the user-specified malloc
|
||||
function) and return a pointer to it in the <b>data</b> field of the
|
||||
key or data DBT structure. As any allocated memory becomes the
|
||||
responsibility of the calling application, the caller must be able to
|
||||
determine if memory was allocated.
|
||||
<p>It is an error to specify more than one of DB_DBT_MALLOC,
|
||||
DB_DBT_REALLOC and DB_DBT_USERMEM.
|
||||
<p><dt><a name="DB_DBT_REALLOC">DB_DBT_REALLOC</a><dd>When this flag is set Berkeley DB will allocate memory for the returned key
|
||||
or data item (using <b>realloc</b>(3), or the user-specified realloc
|
||||
function) and return a pointer to it in the <b>data</b> field of the
|
||||
key or data DBT structure. As any allocated memory becomes the
|
||||
responsibility of the calling application, the caller must be able to
|
||||
determine if memory was allocated.
|
||||
<p>The difference between DB_DBT_MALLOC and DB_DBT_REALLOC
|
||||
is that the latter will call <b>realloc</b>(3) instead of
|
||||
<b>malloc</b>(3), so the allocated memory will be grown as necessary
|
||||
instead of the application doing repeated free/malloc calls.
|
||||
<p>It is an error to specify more than one of DB_DBT_MALLOC,
|
||||
DB_DBT_REALLOC and DB_DBT_USERMEM.
|
||||
<p><dt><a name="DB_DBT_USERMEM">DB_DBT_USERMEM</a><dd>The <b>data</b> field of the key or data structure must reference
|
||||
memory that is at least <b>ulen</b> bytes in length. If the length of
|
||||
the requested item is less than or equal to that number of bytes, the
|
||||
item is copied into the memory referenced by the <b>data</b> field.
|
||||
Otherwise, the <b>size</b> field is set to the length needed for the
|
||||
requested item, and the error ENOMEM is returned.
|
||||
<p>It is an error to specify more than one of DB_DBT_MALLOC,
|
||||
DB_DBT_REALLOC and DB_DBT_USERMEM.
|
||||
<p><dt><a name="DB_DBT_PARTIAL">DB_DBT_PARTIAL</a><dd>Do partial retrieval or storage of an item. If the calling application
|
||||
is doing a get, the <b>dlen</b> bytes starting <b>doff</b> bytes from
|
||||
the beginning of the retrieved data record are returned as if they
|
||||
comprised the entire record. If any or all of the specified bytes do
|
||||
not exist in the record, the get is successful and the existing bytes
|
||||
or nul bytes are returned.
|
||||
<p>For example, if the data portion of a retrieved record was 100 bytes,
|
||||
and a partial retrieval was done using a DBT having a <b>dlen</b>
|
||||
field of 20 and a <b>doff</b> field of 85, the get call would succeed,
|
||||
the <b>data</b> field would reference the last 15 bytes of the record,
|
||||
and the <b>size</b> field would be set to 15.
|
||||
<p>If the calling application is doing a put, the <b>dlen</b> bytes
|
||||
starting <b>doff</b> bytes from the beginning of the specified key's
|
||||
data record are replaced by the data specified by the <b>data</b>
|
||||
and <b>size</b> structure elements.
|
||||
If <b>dlen</b> is smaller than <b>size</b>, the record will grow,
|
||||
and if <b>dlen</b> is larger than <b>size</b>, the record will shrink.
|
||||
If the specified bytes do not exist, the record will be extended using
|
||||
nul bytes as necessary, and the put call will succeed.
|
||||
<p>It is an error to attempt a partial put using the <a href="../api_c/db_put.html">DB->put</a> function
|
||||
in a database that supports duplicate records.
|
||||
Partial puts in databases supporting duplicate records must be done
|
||||
using a <a href="../api_c/dbc_put.html">DBcursor->c_put</a> function.
|
||||
<p>It is an error to attempt a partial put with differing <b>dlen</b> and
|
||||
<b>size</b> values in Queue or Recno databases with fixed-length records.
|
||||
<p>For example, if the data portion of a retrieved record was 100 bytes,
|
||||
and a partial put was done using a DBT having a <b>dlen</b> field of 20,
|
||||
a <b>doff</b> field of 85, and a <b>size</b> field of 30, the resulting
|
||||
record would be 115 bytes in length, where the last 30 bytes would be
|
||||
those specified by the put call.
|
||||
</dl>
|
||||
</dl>
|
||||
<a name="3"><!--meow--></a> <a name="4"><!--meow--></a>
|
||||
<h3>Retrieved key/data permanence</h3>
|
||||
<p>When using the non-cursor Berkeley DB calls to retrieve key/data items (e.g.,
|
||||
<a href="../api_c/db_get.html">DB->get</a>), the memory referenced by the pointer stored into the
|
||||
Dbt is only valid until the next call to Berkeley DB using the Db
|
||||
handle returned by <a href="../api_c/db_open.html">DB->open</a>. (This includes <b>any</b> use of
|
||||
the returned Db handle, including by another thread of control
|
||||
within the process. For this reason, when multiple threads are using the
|
||||
returned Db handle concurrently, one of the DB_DBT_MALLOC,
|
||||
DB_DBT_REALLOC or DB_DBT_USERMEM flags must be specified
|
||||
with any non-cursor Dbt used for key or data retrieval.)
|
||||
<p>When using the cursor Berkeley DB calls to retrieve key/data items (e.g.,
|
||||
<a href="../api_c/dbc_get.html">DBcursor->c_get</a>), the memory referenced by the pointer into the
|
||||
Dbt is only valid until the next call to Berkeley DB using the
|
||||
DBC handle returned by <a href="../api_c/db_cursor.html">DB->cursor</a>.
|
||||
<a name="5"><!--meow--></a>
|
||||
<h3>Data alignment</h3>
|
||||
<p>The Berkeley DB access methods provide no guarantees about key/data byte string
|
||||
alignment, and applications are responsible for arranging any necessary
|
||||
alignment. The DB_DBT_MALLOC, DB_DBT_REALLOC and
|
||||
DB_DBT_USERMEM flags may be used to store returned items in memory
|
||||
of arbitrary alignment.
|
||||
<a name="6"><!--meow--></a>
|
||||
<h3>Logical Record Numbers</h3>
|
||||
<p>In all cases for the Queue and Recno access methods, and when calling the
|
||||
<a href="../api_c/db_get.html">DB->get</a> and <a href="../api_c/dbc_get.html">DBcursor->c_get</a> functions with the
|
||||
<a href="../api_c/db_get.html#DB_SET_RECNO">DB_SET_RECNO</a> flag specified, the <b>data</b> field of the key
|
||||
must be a pointer to a memory location of type <b>db_recno_t</b>, as
|
||||
typedef'd in the #include <db.h> include file. This type is a 32-bit
|
||||
unsigned type, (which limits the number of logical records in a Queue or
|
||||
Recno database, and the maximum logical record which may be directly
|
||||
retrieved from a Btree database, to 4,294,967,296). The <b>size</b>
|
||||
field of the key should be the size of that type, i.e., in the C
|
||||
programming language, <b>sizeof(db_recno_t)</b>.
|
||||
<p>Logical record numbers are 1-based, not 0-based, i.e., the first record
|
||||
in the database is record number 1.
|
||||
</tt>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,84 +0,0 @@
|
||||
<!--$Id: env_close.so,v 10.21 2000/03/01 21:41:29 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->close</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->close</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->close(DB_ENV *dbenv, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBENV->close function closes the Berkeley DB environment, freeing any
|
||||
allocated resources and closing any underlying subsystems.
|
||||
<p>Calling DBENV->close does not imply closing any databases that were
|
||||
opened in the environment.
|
||||
<p>The <b>flags</b> parameter is currently unused, and must be set to 0.
|
||||
<p>Where the environment was initialized with the <a href="../api_c/env_open.html#DB_INIT_LOCK">DB_INIT_LOCK</a> flag,
|
||||
calling DBENV->close does not release any locks still held by the
|
||||
closing process, providing functionality for long-lived locks.
|
||||
Processes that wish to have all their locks
|
||||
released can do so by issuing the appropriate <a href="../api_c/lock_vec.html">lock_vec</a> call.
|
||||
<p>Where the environment was initialized with the <a href="../api_c/env_open.html#DB_INIT_MPOOL">DB_INIT_MPOOL</a>
|
||||
flag, calling DBENV->close implies calls to <a href="../api_c/memp_fclose.html">memp_fclose</a> for
|
||||
any remaining open files in the memory pool that were returned to this
|
||||
process by calls to <a href="../api_c/memp_fopen.html">memp_fopen</a>. It does not imply a call to
|
||||
<a href="../api_c/memp_fsync.html">memp_fsync</a> for those files.
|
||||
<p>Where the environment was initialized with the <a href="../api_c/env_open.html#DB_INIT_TXN">DB_INIT_TXN</a> flag,
|
||||
calling DBENV->close aborts any uncommitted transactions.
|
||||
(Applications are should not depend on this behavior. If the process' has
|
||||
already closed a database handle which is necessary to abort an
|
||||
uncommitted transaction, the Berkeley DB environment must then require that
|
||||
recovery be run before further operations are done, since once a
|
||||
transaction exists that cannot be committed or aborted, no future
|
||||
checkpoint can ever succeed.)
|
||||
<p>In multi-threaded applications, only a single thread may call
|
||||
DBENV->close.
|
||||
<p>Once DBENV->close has been called, regardless of its return,
|
||||
the Berkeley DB environment handle may not be accessed again.
|
||||
<p>The DBENV->close function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The DBENV->close function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBENV->close function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,74 +0,0 @@
|
||||
<!--$Id: env_create.so,v 10.12 2000/10/25 18:51:08 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: db_env_create</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>db_env_create</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
db_env_create(DB_ENV **dbenvp, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The db_env_create function creates a DB_ENV structure which is
|
||||
the handle for a Berkeley DB environment. A pointer to this structure is
|
||||
returned in the memory referenced by <b>dbenvp</b>.
|
||||
<p>The <b>flags</b> parameter must be set to 0 or the following value:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_CLIENT">DB_CLIENT</a><dd>Create a client environment to connect to a server.
|
||||
<p>The DB_CLIENT flag indicates to the system that this environment
|
||||
is remote on a server. The use of this flag causes the environment
|
||||
methods to use functions that call a server instead of local functions.
|
||||
Prior to making any environment or database method calls, the application
|
||||
must call the <a href="../api_c/env_set_server.html">DBENV->set_server</a> function to establish the
|
||||
connection to the server.
|
||||
</dl>
|
||||
<p>The DB_ENV handle contains a special field, "app_private", which
|
||||
is declared as type "void *". This field is provided for the use of
|
||||
the application program. It is initialized to NULL and is not further
|
||||
used by Berkeley DB in any way.
|
||||
<p>The db_env_create function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p>The db_env_create function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the db_env_create function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,205 +0,0 @@
|
||||
<!--$Id: env_open.so,v 10.61 2000/12/01 15:50:31 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->open</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->open</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->open(DB_ENV *, char *db_home, u_int32_t flags, int mode);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBENV->open function is the interface for opening the Berkeley DB
|
||||
environment. It provides a structure for creating a consistent
|
||||
environment for processes using one or more of the features of Berkeley DB.
|
||||
<p>The <b>db_home</b> argument to DBENV->open (and file name
|
||||
resolution in general) is described in
|
||||
<a href="../ref/env/naming.html">Berkeley DB File Naming</a>.
|
||||
<p>The <b>flags</b> argument specifies the subsystems that are initialized
|
||||
and how the application's environment affects Berkeley DB file naming, among
|
||||
other things.
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
<p>As there are a large number of flags that can be specified, they have been
|
||||
grouped together by functionality. The first group of flags indicate
|
||||
which of the Berkeley DB subsystems should be initialized:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_JOINENV">DB_JOINENV</a><dd>Join an existing environment. This option allows applications to
|
||||
join an existing environment without knowing which Berkeley DB subsystems
|
||||
the environment supports.
|
||||
<p><dt><a name="DB_INIT_CDB">DB_INIT_CDB</a><dd>Initialize locking for the <a href="../ref/cam/intro.html">Berkeley DB Concurrent Data Store</a>
|
||||
product. In this mode, Berkeley DB provides multiple reader/single writer
|
||||
access. The only other subsystem that should be specified with the
|
||||
DB_INIT_CDB flag is DB_INIT_MPOOL.
|
||||
<p>Access method calls are largely unchanged when using this flag, although
|
||||
any cursors through which update operations (e.g., <a href="../api_c/dbc_put.html">DBcursor->c_put</a>,
|
||||
<a href="../api_c/dbc_del.html">DBcursor->c_del</a>) will be made must have the <a href="../api_c/db_cursor.html#DB_WRITECURSOR">DB_WRITECURSOR</a> value
|
||||
set in the flags parameter to the cursor call that creates the cursor.
|
||||
See <a href="../api_c/db_cursor.html">DB->cursor</a> for more information.
|
||||
<p><dt><a name="DB_INIT_LOCK">DB_INIT_LOCK</a><dd>Initialize the locking subsystem. This subsystem should be used when
|
||||
multiple processes or threads are going to be reading and writing a Berkeley DB
|
||||
database, so that they do not interfere with each other. If all threads
|
||||
are accessing the database(s) read-only, then locking is unnecessary.
|
||||
When the DB_INIT_LOCK flag is specified, it is usually necessary to run
|
||||
the deadlock detector, as well. See <a href="../utility/db_deadlock.html">db_deadlock</a> and
|
||||
<a href="../api_c/lock_detect.html">lock_detect</a> for more information.
|
||||
<p><dt><a name="DB_INIT_LOG">DB_INIT_LOG</a><dd>Initialize the logging subsystem. This subsystem is used when recovery
|
||||
from application or system failure is necessary.
|
||||
<p>The log is stored in one or more files in the environment directory.
|
||||
Each file is named using the format <i>log.NNNNNNNNNN</i>, where
|
||||
<i>NNNNNNNNNN</i> is the sequence number of the file within the log.
|
||||
For further information, see
|
||||
<a href="../ref/log/limits.html">Log File Limits</a>.
|
||||
<p>If the log region is being created and log files are already present, the
|
||||
log files are reviewed and subsequent log writes are appended
|
||||
to the end of the log, rather than overwriting current log entries.
|
||||
<p><dt><a name="DB_INIT_MPOOL">DB_INIT_MPOOL</a><dd>Initialize the shared memory buffer pool subsystem. This subsystem is
|
||||
used whenever the application is using any Berkeley DB access method.
|
||||
<p><dt><a name="DB_INIT_TXN">DB_INIT_TXN</a><dd>Initialize the transaction subsystem. This subsystem is used when
|
||||
recovery and atomicity of multiple operations and recovery are important.
|
||||
The DB_INIT_TXN flag implies the DB_INIT_LOG flag.
|
||||
</dl>
|
||||
<p>The second group of flags govern what recovery, if any, is performed when
|
||||
the environment is initialized:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_RECOVER">DB_RECOVER</a><dd>Run normal recovery on this environment before opening it for normal use.
|
||||
If this flag is set, the DB_CREATE flag must also be set since the regions
|
||||
will be removed and recreated.
|
||||
<p><dt><a name="DB_RECOVER_FATAL">DB_RECOVER_FATAL</a><dd>Run catastrophic recovery on this environment before opening it for normal
|
||||
use. If this flag is set, the DB_CREATE flag must also be set since the
|
||||
regions will be removed and recreated.
|
||||
</dl>
|
||||
<p>A standard part of the recovery process is to remove the existing Berkeley DB
|
||||
environment and create a new one in which to perform recovery. If the
|
||||
thread of control performing recovery does not specify the correct region
|
||||
initialization information (e.g., the correct memory pool cache size),
|
||||
the result can be an application running in an environment with incorrect
|
||||
cache and other subsystem sizes. For this reason, the thread of control
|
||||
performing recovery should either specify correct configuration
|
||||
information before calling the DBENV->open function, or it should remove
|
||||
the environment after recovery is completed, leaving creation of the
|
||||
correctly sized environment to a subsequent call to DBENV->open.
|
||||
<p>All Berkeley DB recovery processing must be single-threaded, that is, only a
|
||||
single thread of control may perform recovery or access a Berkeley DB
|
||||
environment while recovery is being performed. As it is not an error to
|
||||
specify DB_RECOVER for an environment for which no recovery is
|
||||
required, it is reasonable programming practice for the thread of control
|
||||
responsible for performing recovery and creating the environment to always
|
||||
specify the DB_RECOVER flag during startup.
|
||||
<p>The DBENV->open function returns successfully if DB_RECOVER
|
||||
or DB_RECOVER_FATAL is specified and no log files exist, so it is
|
||||
necessary to ensure all necessary log files are present before running
|
||||
recovery. For further information, consult <a href="../utility/db_archive.html">db_archive</a> and
|
||||
<a href="../utility/db_recover.html">db_recover</a>.
|
||||
<p>The third group of flags govern file naming extensions in the environment:
|
||||
<p><dl compact>
|
||||
<!--$Id: m4.env_flags,v 10.9 2000/06/29 22:54:10 bostic Exp $-->
|
||||
<p><dt><a name="DB_USE_ENVIRON">DB_USE_ENVIRON</a><dd>The Berkeley DB process' environment may be permitted to specify information to
|
||||
be used when naming files; see <a href="../ref/env/naming.html">Berkeley DB
|
||||
File Naming</a>. As permitting users to specify which files are used can
|
||||
create security problems, environment information will be used in file
|
||||
naming for all users only if the DB_USE_ENVIRON flag is set.
|
||||
<p><dt><a name="DB_USE_ENVIRON_ROOT">DB_USE_ENVIRON_ROOT</a><dd>The Berkeley DB process' environment may be permitted to specify information to
|
||||
be used when naming files; see <a href="../ref/env/naming.html">Berkeley DB
|
||||
File Naming</a>. As permitting users to specify which files are used can
|
||||
create security problems, if the DB_USE_ENVIRON_ROOT flag is set,
|
||||
environment information will be used for file naming only for users with
|
||||
appropriate permissions (e.g., on UNIX systems, users with a user-ID of 0).
|
||||
</dl>
|
||||
<p>Finally, there are a few additional, unrelated flags:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_CREATE">DB_CREATE</a><dd>Cause Berkeley DB subsystems to create any underlying files, as necessary.
|
||||
<p><dt><a name="DB_LOCKDOWN">DB_LOCKDOWN</a><dd>Lock shared Berkeley DB environment files and memory mapped databases into memory.
|
||||
<p><dt><a name="DB_PRIVATE">DB_PRIVATE</a><dd>Specify that the environment will only be accessed by a single process
|
||||
(although that process may be multi-threaded). This flag has two effects
|
||||
on the Berkeley DB environment. First, all underlying data structures are
|
||||
allocated from per-process memory instead of from shared memory that is
|
||||
potentially accessible to more than a single process. Second, mutexes
|
||||
are only configured to work between threads.
|
||||
<p>This flag should not be specified if more than a single process is
|
||||
accessing the environment, as it is likely to cause database corruption
|
||||
and unpredictable behavior, e.g., if both a server application and the
|
||||
Berkeley DB utility <a href="../utility/db_stat.html">db_stat</a> will access the environment, the
|
||||
DB_PRIVATE flag should not be specified.
|
||||
<p><dt><a name="DB_SYSTEM_MEM">DB_SYSTEM_MEM</a><dd>Allocate memory from system shared memory instead of from memory backed
|
||||
by the filesystem. See <a href="../ref/env/region.html">Shared Memory
|
||||
Regions</a> for more information.
|
||||
<p><dt><a name="DB_THREAD">DB_THREAD</a><dd>Cause the DB_ENV handle returned by DBENV->open to be
|
||||
<i>free-threaded</i>, that is, useable by multiple threads within a
|
||||
single address space.
|
||||
</dl>
|
||||
<p>On UNIX systems, or in IEEE/ANSI Std 1003.1 (POSIX) environments, all files created by Berkeley DB
|
||||
are created with mode <b>mode</b> (as described in <b>chmod</b>(2)) and
|
||||
modified by the process' umask value at the time of creation (see
|
||||
<b>umask</b>(2)). The group ownership of created files is based on
|
||||
the system and directory defaults, and is not further specified by Berkeley DB.
|
||||
If <b>mode</b> is 0, files are created readable and writeable by both
|
||||
owner and group. On Windows systems, the mode argument is ignored.
|
||||
<p>The DBENV->open function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Environment Variables</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>DB_HOME<dd>The environment variable <b>DB_HOME</b> may be used as the path of
|
||||
the database home as described in
|
||||
<a href="../ref/env/naming.html">Berkeley DB File Naming</a>.
|
||||
</dl>
|
||||
<h1>Errors</h1>
|
||||
<p>The DBENV->open function may fail and return a non-zero error for the following conditions:
|
||||
<p><dl compact>
|
||||
<p><dt>EAGAIN<dd>The shared memory region was locked and (repeatedly) unavailable.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>
|
||||
The DB_THREAD flag was specified and spinlocks are not
|
||||
implemented for this architecture.
|
||||
<p>The DB_HOME or TMPDIR environment variables were set but empty.
|
||||
<p>An incorrectly formatted <b>NAME VALUE</b> entry or line was found.
|
||||
</dl>
|
||||
<p><dl compact>
|
||||
<p><dt>ENOSPC<dd>HP-UX only: a previously created Berkeley DB environment for this process still
|
||||
exists.
|
||||
</dl>
|
||||
<p>The DBENV->open function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBENV->open function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,125 +0,0 @@
|
||||
<!--$Id: env_remove.so,v 10.24 2000/12/06 14:40:11 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->remove</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->remove</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->remove(DB_ENV *, char *db_home, u_int32_t flags);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The DBENV->remove function destroys a Berkeley DB environment, if it is not
|
||||
currently in use. The environment regions, including any backing files,
|
||||
are removed. Any log or database files and the environment directory are
|
||||
not removed.
|
||||
<p>The <b>db_home</b> argument to DBENV->remove is described in
|
||||
<a href="../ref/env/naming.html">Berkeley DB File Naming</a>.
|
||||
<p>If there are processes that have called <a href="../api_c/env_open.html">DBENV->open</a> without
|
||||
calling <a href="../api_c/env_close.html">DBENV->close</a> (i.e., there are processes currently using
|
||||
the environment), DBENV->remove will fail without further action,
|
||||
unless the <a href="../api_c/env_remove.html#DB_FORCE">DB_FORCE</a> flag is set, in which case
|
||||
DBENV->remove will attempt to remove the environment regardless
|
||||
of any processes still using it.
|
||||
<p>The result of attempting to forcibly destroy the environment when it is
|
||||
in use is unspecified. Processes using an environment often maintain open
|
||||
file descriptors for shared regions within it. On UNIX systems, the
|
||||
environment removal will usually succeed and processes that have already
|
||||
joined the region will continue to run in that region without change,
|
||||
however processes attempting to join the environment will either fail or
|
||||
create new regions. On other systems (e.g., Windows/NT), where the
|
||||
<b>unlink</b>(2) system call will fail if any process has an open
|
||||
file descriptor for the file, the region removal will fail.
|
||||
<p>Calling DBENV->remove should not be necessary for most applications,
|
||||
as the Berkeley DB environment is cleaned up as part of normal database recovery
|
||||
procedures, however, applications may wish to call DBENV->remove
|
||||
as part of application shutdown to free up system resources.
|
||||
Specifically, when the <a href="../api_c/env_open.html#DB_SYSTEM_MEM">DB_SYSTEM_MEM</a> flag was specified to
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>, it may be useful to call DBENV->remove in order
|
||||
to release system shared memory segments that have been allocated.
|
||||
<p>In the case of catastrophic or system failure, database recovery must be
|
||||
performed (see <a href="../utility/db_recover.html">db_recover</a>), or the <a href="../api_c/env_open.html#DB_RECOVER">DB_RECOVER</a> and
|
||||
<a href="../api_c/env_open.html#DB_RECOVER_FATAL">DB_RECOVER_FATAL</a> flags to <a href="../api_c/env_open.html">DBENV->open</a> must be specified
|
||||
when the environment is re-opened. Alternatively, if recovery is not
|
||||
required because no database state is maintained across failures, and
|
||||
the <a href="../api_c/env_open.html#DB_SYSTEM_MEM">DB_SYSTEM_MEM</a> flag was not specified when the environment
|
||||
was created, it is possible to clean up an environment by removing all
|
||||
of the files in the environment directory that begin with the string
|
||||
prefix "__db", as no backing files are created in any other directory.
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_FORCE">DB_FORCE</a><dd>If the <a href="../api_c/env_remove.html#DB_FORCE">DB_FORCE</a> flag is set, the environment is removed regardless
|
||||
of any processes that may still using it, and, no locks are acquired
|
||||
during this process. (Generally, the <a href="../api_c/env_remove.html#DB_FORCE">DB_FORCE</a> flag is only
|
||||
specified when applications were unable to shut down cleanly, and there
|
||||
is a risk that an application may have died holding a Berkeley DB lock.)
|
||||
<!--$Id: m4.env_flags,v 10.9 2000/06/29 22:54:10 bostic Exp $-->
|
||||
<p><dt><a name="DB_USE_ENVIRON">DB_USE_ENVIRON</a><dd>The Berkeley DB process' environment may be permitted to specify information to
|
||||
be used when naming files; see <a href="../ref/env/naming.html">Berkeley DB
|
||||
File Naming</a>. As permitting users to specify which files are used can
|
||||
create security problems, environment information will be used in file
|
||||
naming for all users only if the DB_USE_ENVIRON flag is set.
|
||||
<p><dt><a name="DB_USE_ENVIRON_ROOT">DB_USE_ENVIRON_ROOT</a><dd>The Berkeley DB process' environment may be permitted to specify information to
|
||||
be used when naming files; see <a href="../ref/env/naming.html">Berkeley DB
|
||||
File Naming</a>. As permitting users to specify which files are used can
|
||||
create security problems, if the DB_USE_ENVIRON_ROOT flag is set,
|
||||
environment information will be used for file naming only for users with
|
||||
appropriate permissions (e.g., on UNIX systems, users with a user-ID of 0).
|
||||
</dl>
|
||||
<p>In multi-threaded applications, only a single thread may call
|
||||
DBENV->remove.
|
||||
<p>A DB_ENV handle which has already been used to open an
|
||||
environment should not be used to call the DBENV->remove function, a new
|
||||
DB_ENV handle should be created for that purpose.
|
||||
<p>Once DBENV->remove has been called, regardless of its return,
|
||||
the Berkeley DB environment handle may not be accessed again.
|
||||
<p>The DBENV->remove function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EBUSY<dd>The shared memory region was in use and the force flag was not set.
|
||||
</dl>
|
||||
<p>The DBENV->remove function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
|
||||
If a catastrophic error has occurred, the DBENV->remove function may fail and return
|
||||
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
|
||||
in the same way.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,87 +0,0 @@
|
||||
<!--$Id: env_set_cachesize.so,v 10.19 2000/05/20 16:29:11 bostic Exp $-->
|
||||
<!--$Id: m4.cachesize,v 10.7 2000/02/11 18:54:45 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_cachesize</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_cachesize</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->set_cachesize(DB_ENV *dbenv,
|
||||
u_int32_t gbytes, u_int32_t bytes, int ncache);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the size of the database's shared memory buffer pool, i.e., the cache,
|
||||
to <b>gbytes</b> gigabytes plus <b>bytes</b>. The cache should be the
|
||||
size of the normal working data set of the application, with some small
|
||||
amount of additional memory for unusual situations. (Note, the working
|
||||
set is not the same as the number of simultaneously referenced pages, and
|
||||
should be quite a bit larger!)
|
||||
<p>The default cache size is 256KB, and may not be specified as less than
|
||||
20KB. Any cache size less than 500MB is automatically increased by 25%
|
||||
to account for buffer pool overhead, cache sizes larger than 500MB are
|
||||
used as specified. For information on tuning the Berkeley DB cache size, see
|
||||
<a href="../ref/am_conf/cachesize.html">Selecting a cache size</a>.
|
||||
<p>It is possible to specify caches to Berkeley DB that are large enough so that
|
||||
they cannot be allocated contiguously on some architectures, e.g., some
|
||||
releases of Solaris limit the amount of memory that may be allocated
|
||||
contiguously by a process. If <b>ncache</b> is 0 or 1, the cache will
|
||||
be allocated contiguously in memory. If it is greater than 1, the cache
|
||||
will be broken up into <b>ncache</b> equally sized separate pieces of
|
||||
memory.
|
||||
<p>The DBENV->set_cachesize interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/env_open.html">DBENV->open</a> interface is called.
|
||||
<p>The DBENV->set_cachesize function returns a non-zero error value on failure and 0 on success.
|
||||
<p>The database environment's cache size may also be set using the environment's
|
||||
<b>DB_CONFIG</b> file. The syntax of the entry in that file is a
|
||||
single line with the string "set_cachesize", one or more whitespace characters,
|
||||
and the three arguments specified to this interface, separated by whitespace
|
||||
characters, for example, "set_cachesize 1 500 2". Because the <b>DB_CONFIG</b> file is read when the database
|
||||
environment is opened, it will silently overrule configuration done
|
||||
before that time.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/env_open.html">DBENV->open</a> was called.
|
||||
<p>The specified cache size was impossibly small.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,77 +0,0 @@
|
||||
<!--$Id: env_set_data_dir.so,v 10.3 2000/05/20 16:29:11 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_data_dir</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_data_dir</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->set_data_dir(DB_ENV *dbenv, const char *dir);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the path of a directory to be used as the location of the access
|
||||
method database files. Paths specified to the <a href="../api_c/db_open.html">DB->open</a> function
|
||||
will be searched relative to this path. Paths set using this interface
|
||||
are additive, and specifying more than one will result in each specified
|
||||
directory being searched for database files. If any directories are
|
||||
specified, created database files will always be created in the first path
|
||||
specified.
|
||||
<p>If no database directories are specified, database files can only exist
|
||||
in the environment home directory. See <a href="../ref/env/naming.html">Berkeley DB File Naming</a> for more information.
|
||||
<p>For the greatest degree of recoverability from system or application
|
||||
failure, database files and log files should be located on separate
|
||||
physical devices.
|
||||
<p>The DBENV->set_data_dir interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/env_open.html">DBENV->open</a> interface is called.
|
||||
<p>The DBENV->set_data_dir function returns a non-zero error value on failure and 0 on success.
|
||||
<p>The database environment's data directory may also be set using the environment's
|
||||
<b>DB_CONFIG</b> file. The syntax of the entry in that file is a
|
||||
single line with the string "set_data_dir", one or more whitespace characters,
|
||||
and the directory name. Because the <b>DB_CONFIG</b> file is read when the database
|
||||
environment is opened, it will silently overrule configuration done
|
||||
before that time.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/env_open.html">DBENV->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,73 +0,0 @@
|
||||
<!--$Id: env_set_errcall.so,v 10.16 1999/12/20 08:52:29 bostic Exp $-->
|
||||
<!--$Id: m4.errset,v 10.8 2000/02/19 20:57:57 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_errcall</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_errcall</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
void
|
||||
DBENV->set_errcall(DB_ENV *dbenv,
|
||||
void (*db_errcall_fcn)(const char *errpfx, char *msg));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
When an error occurs in the Berkeley DB library, a Berkeley DB error or an error
|
||||
return value is returned by the function. In some cases, however,
|
||||
the <b>errno</b> value may be insufficient to completely describe
|
||||
the cause of the error especially during initial application debugging.
|
||||
<p>The DBENV->set_errcall function is used to enhance the mechanism for reporting error
|
||||
messages to the application. In some cases, when an error occurs, Berkeley DB
|
||||
will call <b>db_errcall_fcn</b> with additional error information. The
|
||||
function must be declared with two arguments; the first will be the prefix
|
||||
string (as previously set by <a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a> or
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>), the second will be the error message string.
|
||||
It is up to the <b>db_errcall_fcn</b> function to display the error
|
||||
message in an appropriate manner.
|
||||
<p>Alternatively, you can use the <a href="../api_c/db_set_errfile.html">DB->set_errfile</a> or
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a> functions to display the additional information
|
||||
via a C library FILE *.
|
||||
<p>This error logging enhancement does not slow performance or significantly
|
||||
increase application size, and may be run during normal operation as well
|
||||
as during application debugging.
|
||||
<p>The DBENV->set_errcall interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,70 +0,0 @@
|
||||
<!--$Id: env_set_errfile.so,v 10.17 1999/12/20 08:52:29 bostic Exp $-->
|
||||
<!--$Id: m4.errset,v 10.8 2000/02/19 20:57:57 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_errfile</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_errfile</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
void
|
||||
DBENV->set_errfile(DB_ENV *dbenv, FILE *errfile);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
When an error occurs in the Berkeley DB library, a Berkeley DB error or an error
|
||||
return value is returned by the function. In some cases, however,
|
||||
the <b>errno</b> value may be insufficient to completely describe
|
||||
the cause of the error especially during initial application debugging.
|
||||
<p>The DBENV->set_errfile function is used to enhance the mechanism for reporting error
|
||||
messages to the application by setting a C library FILE * to be used for
|
||||
displaying additional Berkeley DB error messages. In some cases, when an error
|
||||
occurs, Berkeley DB will output an additional error message to the specified
|
||||
file reference.
|
||||
<p>The error message will consist of the prefix string and a colon
|
||||
("<b>:</b>") (if a prefix string was previously specified using
|
||||
<a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a> or <a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>), an error string, and
|
||||
a trailing <newline> character.
|
||||
<p>This error logging enhancement does not slow performance or significantly
|
||||
increase application size, and may be run during normal operation as well
|
||||
as during application debugging.
|
||||
<p>The DBENV->set_errfile interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,59 +0,0 @@
|
||||
<!--$Id: env_set_errpfx.so,v 10.12 1999/12/20 08:52:29 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_errpfx</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_errpfx</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
void
|
||||
DBENV->set_errpfx(DB_ENV *dbenv, const char *errpfx);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the prefix string that appears before error messages issued by Berkeley DB.
|
||||
<p>The DBENV->set_errpfx function does not copy the memory referenced by the
|
||||
<b>errpfx</b> argument, rather, it maintains a reference to it. This
|
||||
allows applications to modify the error message prefix at any time,
|
||||
without repeatedly calling DBENV->set_errpfx, but means that the
|
||||
memory must be maintained until the handle is closed.
|
||||
<p>The DBENV->set_errpfx interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,69 +0,0 @@
|
||||
<!--$Id: env_set_feedback.so,v 10.19 2000/07/09 19:12:39 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_feedback</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_feedback</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->set_feedback(DB_ENV *,
|
||||
void (*db_feedback_fcn)(DB_ENV *, int opcode, int pct));
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Some operations performed by the Berkeley DB library can take non-trivial
|
||||
amounts of time. The DBENV->set_feedback function can be used by
|
||||
applications to monitor progress within these operations.
|
||||
<p>When an operation is likely to take a long time, Berkeley DB will call the
|
||||
specified callback function. This function must be declared with
|
||||
three arguments: the first will be a reference to the enclosing
|
||||
environment, the second a flag value, and the third the percent of the
|
||||
operation that has been completed, specified as an integer value between
|
||||
0 and 100. It is up to the callback function to display this
|
||||
information in an appropriate manner.
|
||||
<p>The <b>opcode</b> argument may take on any of the following values:
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_RECOVER">DB_RECOVER</a><dd>The environment is being recovered.
|
||||
</dl>
|
||||
<p>The DBENV->set_feedback interface may be used to configure Berkeley DB at any time
|
||||
during the life of the application.
|
||||
<p>The DBENV->set_feedback function returns a non-zero error value on failure and 0 on success.
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,84 +0,0 @@
|
||||
<!--$Id-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_flags</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_flags</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->set_flags(DB_ENV *dbenv, u_int32_t flags, int onoff);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The <b>flags</b> value must be set to 0 or by bitwise inclusively <b>OR</b>'ing together one or more
|
||||
of the following values.
|
||||
If <b>onoff</b> is zero, the specified flags are cleared, otherwise they
|
||||
are set.
|
||||
<p><dl compact>
|
||||
<p><dt><a name="DB_CDB_ALLDB">DB_CDB_ALLDB</a><dd>For Berkeley DB Concurrent Data Store applications, perform locking on an environment-wide basis
|
||||
rather than per-database. This flag may only be used to configure Berkeley DB
|
||||
before the <a href="../api_c/env_open.html">DBENV->open</a> interface is called.
|
||||
<p><dt><a name="DB_NOMMAP">DB_NOMMAP</a><dd>Copy read-only database files in this environment into the local cache
|
||||
instead of potentially mapping them into process memory (see the
|
||||
description of the <a href="../api_c/env_set_mp_mmapsize.html">DBENV->set_mp_mmapsize</a> function for further information).
|
||||
<p><dt><a name="DB_TXN_NOSYNC">DB_TXN_NOSYNC</a><dd>Do not synchronously flush the log on transaction commit or prepare.
|
||||
This means that transactions exhibit the ACI (atomicity, consistency and
|
||||
isolation) properties, but not D (durability), i.e., database integrity
|
||||
will be maintained but it is possible that some number of the most
|
||||
recently committed transactions may be undone during recovery instead of
|
||||
being redone.
|
||||
<p>The number of transactions that are potentially at risk is governed by
|
||||
how often the log is checkpointed (see <a href="../utility/db_checkpoint.html">db_checkpoint</a> for more
|
||||
information) and how many log updates can fit on a single log page.
|
||||
</dl>
|
||||
<p>The DBENV->set_flags function returns a non-zero error value on failure and 0 on success.
|
||||
<p>The database environment's flag values may also be set using the environment's
|
||||
<b>DB_CONFIG</b> file. The syntax of the entry in that file is a
|
||||
single line with the string "set_flags", one or more whitespace characters,
|
||||
and the interface flag argument as a string, for example, "set_flags
|
||||
DB_TXN_NOSYNC". Because the <b>DB_CONFIG</b> file is read when the database
|
||||
environment is opened, it will silently overrule configuration done
|
||||
before that time.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,68 +0,0 @@
|
||||
<!--$Id: env_set_lg_bsize.so,v 10.10 2000/05/20 16:29:11 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_lg_bsize</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_lg_bsize</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->set_lg_bsize(DB_ENV *dbenv, u_int32_t lg_bsize);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>Set the size of the in-memory log buffer, in bytes. By default, or if
|
||||
the value is set to 0, a size of 32K is used.
|
||||
<p>Log information is stored in-memory until the storage space fills up
|
||||
or transaction commit forces the information to be flushed to stable
|
||||
storage. In the presence of long-running transactions or transactions
|
||||
producing large amounts of data, larger buffer sizes can increase
|
||||
throughput.
|
||||
<p>The DBENV->set_lg_bsize interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/env_open.html">DBENV->open</a> interface is called.
|
||||
<p>The DBENV->set_lg_bsize function returns a non-zero error value on failure and 0 on success.
|
||||
<p>The database environment's log buffer size may also be set using the environment's
|
||||
<b>DB_CONFIG</b> file. The syntax of the entry in that file is a
|
||||
single line with the string "set_lg_bsize", one or more whitespace characters,
|
||||
and the size in bytes. Because the <b>DB_CONFIG</b> file is read when the database
|
||||
environment is opened, it will silently overrule configuration done
|
||||
before that time.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/env_open.html">DBENV->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_set_lg_bsize.html">DBENV->set_lg_bsize</a>,
|
||||
<a href="../api_c/env_set_lg_max.html">DBENV->set_lg_max</a>,
|
||||
<a href="../api_c/log_archive.html">log_archive</a>,
|
||||
<a href="../api_c/log_compare.html">log_compare</a>,
|
||||
<a href="../api_c/log_file.html">log_file</a>,
|
||||
<a href="../api_c/log_flush.html">log_flush</a>,
|
||||
<a href="../api_c/log_get.html">log_get</a>,
|
||||
<a href="../api_c/log_put.html">log_put</a>,
|
||||
<a href="../api_c/log_register.html">log_register</a>,
|
||||
<a href="../api_c/log_stat.html">log_stat</a>
|
||||
and
|
||||
<a href="../api_c/log_unregister.html">log_unregister</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
@ -1,73 +0,0 @@
|
||||
<!--$Id: env_set_lg_dir.so,v 10.3 2000/05/20 16:29:11 bostic Exp $-->
|
||||
<!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.-->
|
||||
<!--All rights reserved.-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Berkeley DB: DBENV->set_lg_dir</title>
|
||||
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
|
||||
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<a name="2"><!--meow--></a>
|
||||
<table><tr valign=top>
|
||||
<td>
|
||||
<h1>DBENV->set_lg_dir</h1>
|
||||
</td>
|
||||
<td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<hr size=1 noshade>
|
||||
<tt>
|
||||
<h3><pre>
|
||||
#include <db.h>
|
||||
<p>
|
||||
int
|
||||
DBENV->set_lg_dir(DB_ENV *dbenv, const char *dir);
|
||||
</pre></h3>
|
||||
<h1>Description</h1>
|
||||
<p>The path of a directory to be used as the location of logging files.
|
||||
Log files created by the Log Manager subsystem will be created in this
|
||||
directory.
|
||||
<p>If no logging directory is specified, log files are created in the
|
||||
environment home directory. See <a href="../ref/env/naming.html">Berkeley DB File Naming</a> for more information.
|
||||
<p>For the greatest degree of recoverability from system or application
|
||||
failure, database files and log files should be located on separate
|
||||
physical devices.
|
||||
<p>The DBENV->set_lg_dir interface may only be used to configure Berkeley DB before
|
||||
the <a href="../api_c/env_open.html">DBENV->open</a> interface is called.
|
||||
<p>The DBENV->set_lg_dir function returns a non-zero error value on failure and 0 on success.
|
||||
<p>The database environment's logging directory may also be set using the environment's
|
||||
<b>DB_CONFIG</b> file. The syntax of the entry in that file is a
|
||||
single line with the string "set_lg_dir", one or more whitespace characters,
|
||||
and the directory name. Because the <b>DB_CONFIG</b> file is read when the database
|
||||
environment is opened, it will silently overrule configuration done
|
||||
before that time.
|
||||
<h1>Errors</h1>
|
||||
<p><dl compact>
|
||||
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
|
||||
<p>Called after <a href="../api_c/env_open.html">DBENV->open</a> was called.
|
||||
</dl>
|
||||
<h1>See Also</h1>
|
||||
<a href="../api_c/env_close.html">DBENV->close</a>,
|
||||
<a href="../api_c/env_create.html">db_env_create</a>,
|
||||
<a href="../api_c/env_open.html">DBENV->open</a>,
|
||||
<a href="../api_c/env_remove.html">DBENV->remove</a>,
|
||||
<a href="../api_c/db_err.html">DBENV->err</a>,
|
||||
<a href="../api_c/env_strerror.html">db_strerror</a>,
|
||||
<a href="../api_c/env_version.html">db_version</a>,
|
||||
<a href="../api_c/env_set_cachesize.html">DBENV->set_cachesize</a>,
|
||||
<a href="../api_c/env_set_errcall.html">DBENV->set_errcall</a>,
|
||||
<a href="../api_c/env_set_errfile.html">DBENV->set_errfile</a>,
|
||||
<a href="../api_c/env_set_errpfx.html">DBENV->set_errpfx</a>,
|
||||
<a href="../api_c/env_set_flags.html">DBENV->set_flags</a>,
|
||||
<a href="../api_c/env_set_mutexlocks.html">DBENV->set_mutexlocks</a>,
|
||||
<a href="../api_c/env_set_paniccall.html">DBENV->set_paniccall</a>,
|
||||
and
|
||||
<a href="../api_c/env_set_verbose.html">DBENV->set_verbose</a>.
|
||||
</tt>
|
||||
<table><tr><td><br></td><td width="1%">
|
||||
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
|
||||
</td></tr></table>
|
||||
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user