EDB sorting and reading

Source: Internet
Author: User
------------------------------------------------------
1. EDB database structure
------------------------------------------------------
      The basic unit of an EDB database is volume, that is, a volume, which usually exists in a disk file, such as Pim. Vol.

   The volume contains several databases, which can be accessed by the database name or OID (object number). For example, Pim. Vol contains a database named "appointments Database", whose oid is 1077960704.

   Each database contains many records. You can access each record by using the oId or sort number in the database.

   Each record contains many attributes. Record attribute = record data. The record attributes are stored by the cepropval structure. Each record stores an array of the cepropval type. The array size is the number of attributes.
   The attributes of each record are identified by cepropval: propid. Propid is a DWORD data, which defines the property name ID. A low word represents the type of the property data recorded in the database, such as lpwstr and ui4. The property ID in Pim. Vol is defined in "pimstore. H.
   Attribute data is stored in the Union of the cevalunion type. The definition of cevalunion is as follows:
   Typedef union _ cevalunion {
   Short         Ival;   // @ Field cevt_i2
   Ushort        Uival;  // @ Field cevt_ui2
   Long          Lval;   // @ Field cevt_i4
   Ulong         Ulval;  // @ Field cevt_ui4
                             // @ Field cevt_auto_i4 _
   Filetime      Filetime; // @ field cevt_filetime
   Lpwstr        Lpwstr; // @ Field cevt_lpwstr-PTR to NULL terminated string
   Ceblob        Blob;   // @ Field cevt_blob-DWORD count, and PTR to bytes
                             // @ Field cevt_auto_i8
                             // @ Field cevt_recid
                             // @ Field cevt_stream
   Bool 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.