Commit Graph

404 Commits

Author SHA1 Message Date
Zach Musgrave
9b9ec6dc3e Fixed a bug on windows when redirecting STDIN for SQL import, e.g. dolt sql < dump.sql. Also fixed up ip2nation sample so that it successfully imports
Signed-off-by: Zach Musgrave <zach@liquidata.co>
2019-08-09 12:48:19 -07:00
Zach Musgrave
a0e5bb7353 Added a large SQL import script as a test. Performance is... not great. Initially failed the import because we disallowed capital letters in table names, so changed that and added regression tests for the two tables. Also discovered a couple bugs. 2019-05-15 16:52:28 -07:00
Zach Musgrave
0a20ea073a Added a .gitignore for dolt repositories 2019-03-11 12:23:26 -07:00
Zach Musgrave
e7a60c8b3b State population sample dataset with script to create the database. 2019-03-08 13:51:49 -08:00
Zach Musgrave
fe78571271 Added the employees toy dataset, along with a sample bash script that replicates the video demo, and a README file. 2019-03-08 11:28:50 -08:00
Brian Hendriks
17bd99a876 removed portions of noms we dont need / won't maintain in preparation for moving to our repo 2019-06-20 10:44:06 -07:00
Brian Hendriks
78da82ba1b fixes 2019-05-15 14:37:42 -07:00
Brian Hendriks
4db808b556 move package 2019-05-15 14:37:42 -07:00
Brian Hendriks
da27bfa2ac bug fixes and code cleanup 2019-05-15 14:37:42 -07:00
Brian Hendriks
074bf08fad memory improvements 2019-05-15 14:37:42 -07:00
Brian Hendriks
368c927e62 async sorted edits 2019-05-15 14:37:42 -07:00
Brian Hendriks
6523fb0e2a uuid type (#12)
* uuid type
* NumberKind -> FloatKind
* ints and uints
2018-09-19 11:19:30 -07:00
Aaron Boodman
668ad6090a csv.StringToValue: add "yes" and "no" to string forms of bool 2018-03-11 18:37:57 -07:00
Dan Willhite
705b13cfa8 Make termio scrolling more efficient 2017-11-09 15:10:59 -08:00
Erik Arvidsson
c3a7a71f78 Update version to 7.18 2017-10-27 15:49:26 -07:00
Rafael Weinstein
69759ba023 Avoid creating gigantic chunks with Lists of very long repeated values (#3765)
Avoid creating gigantic chunks with Lists of very long repeated values (#3765)
2017-10-18 21:14:23 -07:00
Erik Arvidsson
3317130741 Make metaTuple backed by []byte (#3746)
This is a version change since there was a bug in the old code; it
didn't include the numLeaves in the rolling hash.

Towards #2270
2017-09-28 16:05:38 -07:00
Dan Willhite
9405ea41d4 Add ability to import csv in column major order (#3742)
Added --invert argument to indicate column major order
  Added --append argument to append imported data to current head of dataset
  Added --limit-records to import data for limited number of rows
2017-09-28 11:22:46 -07:00
Jesse Ditson
8be0ae7c6b update code blocks to always specify syntax, fix ordered list (#3734) 2017-09-23 16:25:46 -07:00
Aaron Boodman
ec302256b6 Restructure decentralized examples directory structure (#3730) 2017-09-20 17:39:21 -07:00
Dan Willhite
742f0681c3 Modifications to ipfs-chat and ipfs chunkstore (#3691)
* Modifications to ipfs-chat and ipfs chunkstore
 * Change ipfs paths to include directory where ipfs repo is stored.
 * Rework ipfs-chat to create ipfs chunkstores manually rather than
   relying on Spec.ForDataset. This enables creating two chunkstores
   (one local and one network) using the same IpfsNode (ipfs repo).
 * Create separate replicate function for daemon and mergeMessage
   function for client to experiment with slightly different behaviors
   for each.

* Re-organization of code to remove duplication.

The main points are:
* added event loop to process events synchronously
* more agressive about not re-processing msgs from other nodes
  that we've already processed
* fixed bug in ipfs chunkstore HasMany()

* Add go-base58 library
2017-09-19 17:54:32 -07:00
Erik Arvidsson
6fcfeeb215 Optimize CSV Export (#3721)
This optimizes CSV export after the change in types.Value being backed
by byte slices.

Towards #3710
2017-09-19 00:48:21 -07:00
wardn
386c3f3e3e NOMSFS: only build for darwin/linux (#3712) 2017-09-17 09:45:36 -07:00
Erik Arvidsson
b497bcc974 Make values be backed by []byte (#3694)
This makes all but types.Type be backed by a []byte.

The motivation is to reduce the allocations and the work needed to be
done when we read parts of a value (especially prolly trees).

Towards #2270
2017-09-14 17:45:08 -07:00
wardn
e6c5675a54 remove js implementation (#3705) 2017-09-14 11:51:03 -07:00
Erik Arvidsson
5ff6432c7b Add support for parsing values (#3688)
This allows parsing all Noms values from the string representation
used by human readable encoding:

```
v, err := nomdl.Parse(vrw, `map {"abc": 42}`)
```

Fixes #1466
2017-09-13 15:02:01 -07:00
cmasone-attic
d3be53d164 csv-invert: Perf improvments! (#3698)
Tweaking the main loop that processes list entries to avoid some
map assignments, lookups, and allocations saves 15% or so, resulting
in an overall savings of about 1m on the 6m runtime of our test
workload (as run on my laptop).

Towards #3690
2017-09-12 15:48:22 -07:00
cmasone-attic
1b5ac05793 csv-invert command line tool (#3689)
Takes the output of a CSV file imported as a List of Struct and
"inverts" it so that it's now a Struct of Lists.

Example:

List<Struct Row {
  Base?: String,
  DOLocationID?: String,
}>

becomes

Struct Columnar {
  base: List<String>,
  dolocationid: List<String>,
}
2017-09-12 15:05:31 -07:00
Aaron Boodman
a18bd984d1 Update importer.go 2017-09-09 19:59:09 -07:00
wardn
b213146428 fix csv-importer dest-type description (#3682) 2017-09-09 19:58:06 -07:00
Aaron Boodman
484587a2b4 Fix broken build (#3680) 2017-09-08 02:54:45 -07:00
Aaron Boodman
f0568592b8 Add import to p2p sample (#3679) 2017-09-08 02:10:01 -07:00
Aaron Boodman
a25ea915a7 add a simpler p2p ipfs-chat (#3678) 2017-09-07 18:32:47 -07:00
Ben Kalman
03b7221c36 Use stretchr/testify not attic-labs/testify (#3677)
stretchr has fixed a bug with the -count flag. I could merge these
changes into attic-labs, but it's easier to just use strechr.

We forked stretchr a long time ago so that we didn't link in the HTTP
testing libraries into the noms binaries (because we were using d.Chk in
production code). The HTTP issue doesn't seem to happen anymore, even
though we're still using d.Chk.
2017-09-07 15:01:03 -07:00
Eric Halpern
5d1723674b Add --lowercase option to map column names to lowercase struct names (#3675)
* Add --lowercase option to map column names to lowercase struct names

By default, each column name maps to a struct field preserving the original case.
If --lowercase is specified the resulting struct fields will always be lowercase.
2017-09-07 11:21:31 -07:00
Aaron Boodman
759cf4fe58 gofmt (#3671) 2017-09-05 18:47:56 -07:00
Dan Willhite
071ba838d2 Modifications to ipfs-chat can ipfs chunkstore (#3666) 2017-09-05 18:35:50 -07:00
Ian Davis
63a72d3bfb Use ETag/If-None-Match in url-fetch (#3664) 2017-09-04 01:02:21 -07:00
Dan Willhite
aa65868741 Changes to accommodate new version of ipfs 2017-08-31 10:48:27 -07:00
Dan Willhite
b1cb8a0fff Add rate limit to ipfs chunkstore, increase thread limit 2017-08-30 17:09:54 -07:00
Dan Willhite
04e837bad9 Increase rlimit and auto-initialize IPFS repos 2017-08-30 11:52:50 -07:00
Rafael Weinstein
c3f98d1631 Remove in mem graphs (#3635)
This patch removes the ability to keep alive uncommitted prolly-tree sequences.
2017-08-29 13:12:10 -07:00
Rafael Weinstein
61f3d87dcf Introduce Sloppy (#3631)
Introduce Sloppy - an estimating compression function for snappy - which allows for the rolling hash to better produce a given target chunk size after compression.
2017-08-28 13:23:00 -07:00
Dan Willhite
60f676616b Various improvements
* Fix scrolling issue
* Make importer merge scripts in with pre-existing texts before committing
2017-08-25 17:25:38 -07:00
Dan Willhite
c24e10646f Change msg key to be date-based rather than consecutive integer 2017-08-25 17:25:38 -07:00
Dan Willhite
996741a669 In pubsub, skip replication work on same hash notification 2017-08-25 17:25:38 -07:00
Dan Willhite
500a33eb51 Fix disappearing highlighting and scrolling issue 2017-08-25 17:25:38 -07:00
Dan Willhite
cc42196818 Clean up usernames from import and limit to top 30 2017-08-25 17:25:38 -07:00
Dan Willhite
95aac7ca1e Merge modifications made by Aaron. (#3638)
* Add kingpin library for argument handling.
* Update hard-coded Version number in chunkstore.
* Store noms repo information in ipfs home directory.
2017-08-24 17:50:15 -07:00
Dan Willhite
23e0bb388b Introduce ipfs-chat (#3637)
* Add github.com/mattn/go-runewidth to vendor directory

* Add golang.org/x/net/html library to vendor directory

* Add github.com/nsf/termbox-go library to vendor directory

* Introduce ipfs-chat

* Add github.com/jroimartin/gocui library to vendor directory
2017-08-24 11:02:59 -07:00