Module: Kladr::DBF

Defined in:
lib/dbf/dbf/table.rb,
lib/dbf/dbf/column.rb,
lib/dbf/dbf/record.rb,
lib/dbf/dbf/globals.rb

Defined Under Namespace

Classes: Column, ColumnLengthError, DBFError, InvalidColumnLength, InvalidColumnName, Record, Table

Constant Summary collapse

DBF_HEADER_SIZE =
32
FPT_HEADER_SIZE =
512
FPT_BLOCK_HEADER_SIZE =
8
DATE_REGEXP =
/([\d]{4})([\d]{2})([\d]{2})/
VERSION_DESCRIPTIONS =
{
  "02" => "FoxBase",
  "03" => "dBase III without memo file",
  "04" => "dBase IV without memo file",
  "05" => "dBase V without memo file",
  "30" => "Visual FoxPro",
  "31" => "Visual FoxPro with AutoIncrement field",
  "7b" => "dBase IV with memo file",
  "83" => "dBase III with memo file",
  "8b" => "dBase IV with memo file",
  "8e" => "dBase IV with SQL table",
  "f5" => "FoxPro with memo file",
  "fb" => "FoxPro without memo file"
}
MS_PER_SECOND =
1000
MS_PER_MINUTE =
MS_PER_SECOND * 60
MS_PER_HOUR =
MS_PER_MINUTE * 60