PDB is a container format for record databases in Palm OS, Garnet OS and Access Linux Platform. Its structure is similar to PRC resource databases[1].

Contents

Structure of PDB file

A PDB file contains a PDB header, PDB record headers and records[2][3].

PDB Header
PDB Record Header
PDB Records

PDB Header

The PDB header is located at the beginning of the file and contains meta-information on the file [2]:

Offset Name Type Size
0x00 name char 32 Bytes
0x20 file attributes integer 2 Bytes
0x22 version integer 2 Bytes
0x24 creation time Macintosh time 4 Bytes
0x28 modification time Macintosh time 4 Bytes
0x2c backup time Macintosh time 4 Bytes
0x30 modification number integer 4 Bytes
0x34 app_info integer 4 Bytes
0x38 sort_info integer 4 Bytes
0x3c type integer 4 Bytes
0x40 creator integer 4 Bytes
0x44 unique_id_seed integer 4 Bytes
0x48 next_record_list integer 4 Bytes
0x4c num_records integer 2 Bytes

PDB Record Header

For every record, there is an eight byte record header, containing[2]:

name type size notes
offset integer 4 bytes Byte number in the PDB file (counting from zero), where the record is located
attributes byte 1 byte Attributes of the record (delete/dirty/busy/secret/category)
UniqueID integer 3 bytes Always 0

PDB Records

Now the records themselves follow. The usual order is AppInfoArea, SortInfoArea and records, sequentially[3].

See also

References

  1. ^ N. Rhodes, J. McKeehan. Palm OS Programming, Second Edition, O'Reilly, 2001, ISBN 1-56592-856-3
  2. ^ a b c Paul J. Lucas (1998) PDB (Pilot Database) file format. Accessed on 20090308
  3. ^ a b Microfirst Software. The Pilot Record Database Format Accessed on 20090308

Categories: Computer file formats | Palm OS

 

The above information uses material from Wikipedia and is licensed under the GNU Free Documentation License.
Some facts may not have been fully verified for accuracy. [Disclaimers]
This page was last archived by our server on Fri Nov 13 22:23:14 2009. [ refresh local cache ]
Displaying this page or its contents does not use any Wikimedia Foundation's resources.
The owners of this site proudly support the Wikimedia Foundation.


BookShelf | iPhone-Heaven.net - Apple iPhone Applications
iphone-heaven.net
BookShelf | iPhone-Heaven.net - Apple iPhone Applications

robo1120

Fri, 28 Aug 2009 06:32:38 GM

New in version 2.0, some . Palm OS. files can be downloaded directly on your iPhone using Safari without the need for the ShelfServer application. Direct downloading requires a special bookmarklet saved in your Safari bookmarks list from your computer. ... Other . PDB. and PRC file types including iSilo and eReader are NOT supported at this time. Getting help: Be sure to checkout the website (www.iphonebook​shelf.com) for instructional videos and tutorials. ...

Google Blogs Search: PDB (Palm OS),
Fri Sep 4 03:02:52 2009