MCPcopy Create free account
hub / github.com/LindsayBradford/go-dbf

github.com/LindsayBradford/go-dbf @v1.0.0-aplha.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0-aplha.4 ↗ · + Follow
135 symbols 453 edges 8 files 52 documented · 39% updated 10d agov1.0.0-alpha-5 · 2023-07-10★ 1093 open issues

Browse by type

Functions 115 Types & classes 20
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-dbf

Build Status GoDoc

A pure Go library for reading and writing dBase/xBase database files

This project is a part of go-shp library. go-shp is a pure Go implementation of Esri Shapefile format.

You can incorporate the library into your local workspace with the following 'go get' command:

go get github.com/LindsayBradford/go-dbf

Code needing to call into the library needs to include the following import statement:

import (
  "github.com/LindsayBradford/go-dbf"
)

Here is a very simple snippet of example 'load' code to get you going:

  dbfTable, err := godbf.NewFromFile("exampleFile.dbf", "UTF8")

  exampleList := make(ExampleList, dbfTable.NumberOfRecords())

  for i := 0; i < dbfTable.NumberOfRecords(); i++ {
    exampleList[i] = new(ExampleListEntry)

    exampleList[i].someColumnId, err = dbfTable.FieldValueByName(i, "SOME_COLUMN_ID")
  }

Further examples can be found by browsing the library's test suite.

Projects using godbf

dbfcsv - A command line utility for dbf/csv conversion

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 60
Method 55
Struct 15
Interface 2
TypeAlias 2
FuncType 1

Languages

Go100%

Modules by API surface

godbf/table.go46 symbols
godbf/io_test.go27 symbols
godbf/table_test.go22 symbols
godbf/helpers.go13 symbols
godbf/interpreter.go12 symbols
godbf/field.go11 symbols
godbf/io.go3 symbols
godbf/encoding.go1 symbols

For agents

$ claude mcp add go-dbf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page