readstat-rs icon indicating copy to clipboard operation
readstat-rs copied to clipboard

Add metadata

Open curtisalexander opened this issue 4 years ago • 2 comments

Expand metadata captured:

  • [x] file encoding
  • [x] row count
    • may need error handling (check if < 0)
  • [x] column count
    • may need error handling (check if < 0)
  • [x] column names
  • [x] column types
  • [x] column labels
  • [ ] column storage width
    • could query and use something like lazy static to create an appropriately sized Vec at runtime???
  • [ ] column display width
  • [x] file label
  • [x] encoding
  • [x] file format version
  • [x] creation time
  • [x] modified time
  • [x] compression
  • [x] endianness

curtisalexander avatar Dec 09 '20 13:12 curtisalexander

For a list of metadata to consider including, see the dump_metadata function from the readstat binary.

https://github.com/WizardMac/ReadStat/blob/master/src/bin/readstat.c#L392

curtisalexander avatar Dec 16 '20 04:12 curtisalexander

Expanded metadata as part of #38

curtisalexander avatar Jan 01 '21 19:01 curtisalexander