Berkeley DB file format

| 1 Comment

備忘録.

ふむ.db2 以上の format は (今のところ) 互換性があると思って良さそうかしら.

Berkeley DB Reference Guide: The db_dump and db_load utilities (at Sleepycat Software)
The db_dump and db_dump185 utilities dump Berkeley DB databases into a flat-text representation of the data that can be read by db_load. The only difference between them is that db_dump reads Berkeley DB version 2 and greater database formats, whereas db_dump185 reads Berkeley DB version 1.85 and 1.86 database formats.

少なくとも db1.85 以外は,最悪でも db_upgrade するか,db_dump oldfile.db | db_load newfile.db で問題なさそうだ,と.

というか header file 内での定義を見る限りではオッケーそう.









1 Comment

備忘録補足.btree だと:

db2 (2.4.24):
#define DB_BTREEVERSION 6 /* Current btree version. */
#define DB_BTREEOLDVER 6 /* Oldest btree version supported. */
#define DB_BTREEMAGIC 0x053162

db3 (3.2.9):
#define DB_BTREEVERSION 8 /* Current btree version. */
#define DB_BTREEOLDVER 6 /* Oldest btree version supported. */
#define DB_BTREEMAGIC 0x053162

db4 (4.0.14):
#define DB_BTREEVERSION 8 /* Current btree version. */
#define DB_BTREEOLDVER 6 /* Oldest btree version supported. */
#define DB_BTREEMAGIC 0x053162

同様に hash 等も ok みたい.

Pages

Powered by Movable Type 4.23-en

About this Entry

This page contains a single entry by Shaolin published on January 19, 2003 4:09 AM.

2002年度ノ最惡ニユウス:CCCD was the previous entry in this blog.

ホンカア再ビ is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.