Skip to content

Implement support for BLOB and MEMO datatypes#8

Open
maxthoursie wants to merge 1 commit intolinville:mainfrom
maxthoursie:main
Open

Implement support for BLOB and MEMO datatypes#8
maxthoursie wants to merge 1 commit intolinville:mainfrom
maxthoursie:main

Conversation

@maxthoursie
Copy link
Copy Markdown

A first stab at supporting BLOB and MEMO datatypes. I'm unsure of completeness, but I was able to extract all fields from the database I had at hand.

| `0x0` | 4 | Previous block index |
| `0x4` | 4 | Next block index |
| `0x8` | 2 | Length of block content |
| `0xA` | 4 | Unknown index |
Copy link
Copy Markdown

@X-Coder X-Coder Jun 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0xA is the row index, from the main table file. This is how the engine can link the blob block to a specific row. One blb file contains the data of all blob and memo type columns.

@@ -66,3 +67,24 @@ A row in the actual data section of the database has a 26-byte row header. The m
| `0x9` | 16 | Checksum (MD5?) |
Copy link
Copy Markdown

@X-Coder X-Coder Jun 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all file headers, this is the engine's checksum and not a file checksum. This needs to match the reading engine, otherwise the engine is unable to read the file. It doesn't matter for this project, it is only used by the engine.

@Kabbura
Copy link
Copy Markdown

Kabbura commented Jan 14, 2026

Hi @maxthoursie
Thank you for the merge request. I tried it (after converting it to Kotlin) and I was able to extract the BLOB columns from a database.

@X-Coder Thank you for the project. Maybe it is time to merge this PR?

One more thing; in field.py I added a new FiledType LARGEINT = (18, 8) as I was getting an error that the field type is not in the list. I can do a PR if needed.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants