Writing a database. The strucure of storage format

From: Luiz Antonio Gomes Picanço <luiz_at_luizantonio.com>
Date: 2 Mar 2005 22:32:47 -0800
Message-ID: <1109831567.659447.288240_at_z14g2000cwz.googlegroups.com>



Hi all,

I'm writing a database and i need help with the file strucure of the database.
Can anyone analyse my file structure ??? Any ideas, suggestions etc. ?

I'm thinking in this format:


[Header]

 Tables - Offset to tables description
 FreeSpaces - Offset to free spaces description

[FreeSpaces]

 Start - The offset to start of the free space  Length - The length of the free space
 NextFreeSpace - Offset to next FreeSpace description

[Tables]

 Table Data - The name of table etc.
 Fields - Offset to fields description
 Data - Offset to data description
 NextTable - Offset to next Table description

[Fields]

 FieldData - The name, type etc.
 NextField - Offset to next field description

[DataDescription]

 Data - Offset to the data of table
 NextData - Offset to next Data Description

[Data]

  • for each field DataLength - The length of the data Data - The data

Thanks. Received on Thu Mar 03 2005 - 07:32:47 CET

Original text of this message