Skip to content

Added partial support for dBase level 7#12

Open
marmol-dev wants to merge 3 commits intocalvinmetcalf:masterfrom
marmol-dev:master
Open

Added partial support for dBase level 7#12
marmol-dev wants to merge 3 commits intocalvinmetcalf:masterfrom
marmol-dev:master

Conversation

@marmol-dev
Copy link

Added partial support for dBase level 7.
Some header properties are ignored.

Copy link
Owner

@calvinmetcalf calvinmetcalf left a comment

Choose a reason for hiding this comment

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

what are the actual changes, how different are the 2 types, I'm mainly just seeing some new types and the deleted flag

index.js Outdated
var header = dbfHeader(buffer);

if (header.dBaseVersion === 'level7') {
return parseLevel7.apply(this, arguments)
Copy link
Owner

Choose a reason for hiding this comment

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

return parseLevel7(buffer, encoding);

var out = {};

switch(data[0] & 0x07) {
case 0x03:
Copy link
Owner

Choose a reason for hiding this comment

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

lets not get all fancy here, 0x03 is also know as...3, same with 0x07 and 0x04

var deleted;
deleted = buffer.readUInt8(offset) == 0x2A
offset++
out['@deleted'] = deleted
Copy link
Owner

Choose a reason for hiding this comment

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

ok so this is a field that's going to be showing up in records, if it's deleted shouldn't it actually just skip this record?

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.

2 participants