{"repo":"infused/dbf","free":true,"listed":false,"github":"https://github.com/infused/dbf","clone":"git clone https://github.com/infused/dbf.git","description":"DBF is a small, fast Ruby library for reading dBase, xBase, Clipper, and FoxPro database files.","language":"Ruby","stars":281,"topics":["ruby","dbf","dbase","xbase","database","foxpro"],"license":"MIT","category":"databases-storage","readme_excerpt":"DBF DBF is a small, fast Ruby library for reading dBase, xBase, Clipper, and FoxPro database files. Project page: API Documentation: Report bugs: Questions: Email and put DBF somewhere in the subject line Change log: Compatibility DBF is tested to work with the following versions of Ruby: Ruby 3.3.x, 3.4.x, 4.0.x Older Rubies are supported by older DBF release lines: DBF version Ruby support ----------- ------------ 5.2+ 3.3+ 4.3 – 5.1 3.1+ 4.0 – 4.2 2.4+ 3.x (3 stable) 2.0 – 2.3 2.x (2 stable) 1.8 – 1.9 DBF is Ractor-friendly: all library constants are deeply frozen, so tables can be opened, enumerated, and exported inside non-main Ractors. Installation Install the gem manually: Or add to your Gemfile: Basic Usage Open a DBF file using a path: Open a DBF file using an IO object: All errors raised by the library inherit from DBF::Error, so you can rescue the library as a unit: Open a DBF by passing in raw data (wrap the raw data with StringIO): Use the block form to close the table automatically, like File.open: Enumerate all records Find a single record Note that find() will return nil if the requested record has been deleted and not yet pruned from the database. The value for an attribute can be accessed via element reference in several ways. Get a hash of all attributes. The keys are the original column names. Search for records using a simple hash format. Multiple search criteria are ANDed. Use the block form if the resulting record set is too big. Otherwise, all records ","default_branch":null,"files":null,"tree":[],"storefront":"/r/infused","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/infused/dbf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}