Files
dolt/samples/go/csv
cmasone-attic d1f46401d1 Go: Add Mx() for Noms Maps (#1876)
As one step towards #1819, we've created MapMutator, which can take a
bunch of (what would normally be) Map.Set() calls and batch them up to
be applied all at once. The keys and values are held in a LevelDB cache
until everything's done. Usage looks like this:

 m := types.NewMap()
 mx := m.Mx()
 mx = mx.Set(String("foo"), String("bar")).Set(String("baz"), Number(42))
 m = mx.Finish()

We intend to make this the only way to modify collections, but at first
this will only work on an empty NomsMap.
2016-06-27 13:52:52 -07:00
..
2016-06-22 12:11:31 -07:00
2016-06-05 02:37:28 -07:00
2016-06-05 02:37:28 -07:00
2016-06-05 02:37:28 -07:00
2016-06-05 02:37:28 -07:00
2016-06-05 02:37:28 -07:00
2016-06-27 13:52:52 -07:00
2016-06-05 02:37:28 -07:00
2016-06-22 12:11:31 -07:00
2016-06-22 12:11:31 -07:00

CSV Importer

Imports a CSV file as List<T> where T is a struct with fields corresponding to the CSV's column headers. The struct spec can also be set manually with the -header flag.

Usage

$ cd csv-import
$ go build
$ ./csv-import http://localhost:8000:foo <PATH>

Some places for CSV files

CSV Exporter

Export a dataset in CSV format to stdout with column headers.

Usage

$ cd csv-export
$ go build
$ ./csv-export http://localhost:8000:foo