Skip to content

MarkPflug/Sylvan.Data.XBase

Repository files navigation

Sylvan Logo Sylvan.Data.XBase

The fastest "XBase" data reader available for .NET. XBase is a file format used by DBase, FoxPro, and Clipper database applications which were popular in the '90s. It still used as the storage format for metadata in ESRI shape files.

Sylvan.Data.XBase provides a forward-only reader that allows reading data over a non-seekable stream. This means that it is possible to read records directly out of a zip archive, which is common for shapefiles. Memo data does not neccessarily support forward only reading, but shape files don't normally include memo data. This library does not currently support writing XBase files, it only supports reading.

Installation

Sylvan.Data.XBase Nuget Package

Install-Package Sylvan.Data.XBase

Example

Simple Reading

using Sylvan.Data.XBase;

using var reader = XBaseDataReader.Create("data.dbf");
while(reader.Read())
{
    var id = reader.GetInt32(0);
    var name = reader.GetString(1);
}

Convert to CSV

using Sylvan.Data.Csv;
using Sylvan.Data.XBase;

using var reader = XBaseDataReader.Create("data.dbf");
using var writer = CsvDataWriter.Create("data.csv");
writer.Write(reader);

About

The fastest .NET library for reading xBase (.dbf) data files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages