Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rekordbox formats #696

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Replace file accitentally moved.
  • Loading branch information
James Elliott committed Nov 25, 2018
commit 00ea7011dd9462ad2f3d7d2999cb98e8e402f81f
101 changes: 101 additions & 0 deletions database/dbf.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
meta:
id: dbf
file-extension: dbf
application: dBASE
license: CC0-1.0
endian: le
seq:
- id: header1
type: header1
- id: header2
size: header1.len_header - 12
type: header2
- id: records
size: header1.len_record
repeat: expr
repeat-expr: header1.num_records
types:
header1:
doc-ref: http://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm - section 1.1
seq:
- id: version
type: u1
- id: last_update_y
type: u1
- id: last_update_m
type: u1
- id: last_update_d
type: u1
- id: num_records
type: u4
- id: len_header
type: u2
- id: len_record
type: u2
instances:
dbase_level:
value: 'version & 0b111'
header2:
seq:
- id: header_dbase_3
if: _root.header1.dbase_level == 3
type: header_dbase_3
- id: header_dbase_7
if: _root.header1.dbase_level == 7
type: header_dbase_7
- id: fields
type: field
repeat: expr
repeat-expr: 11
header_dbase_3:
seq:
- id: reserved1
size: 3
- id: reserved2
size: 13
- id: reserved3
size: 4
header_dbase_7:
seq:
- id: reserved1
contents: [0, 0]
- id: has_incomplete_transaction
type: u1
- id: dbase_iv_encryption
type: u1
- id: reserved2
size: 12
- id: production_mdx
type: u1
- id: language_driver_id
type: u1
- id: reserved3
contents: [0, 0]
- id: language_driver_name
size: 32
- id: reserved4
size: 4
field:
seq:
- id: name
type: str
encoding: ASCII
size: 11
- id: datatype
type: u1
- id: data_address
type: u4
- id: length
type: u1
- id: decimal_count
type: u1
- id: reserved1
size: 2
- id: work_area_id
type: u1
- id: reserved2
size: 2
- id: set_fields_flag
type: u1
- id: reserved3
size: 8