Commit graph

356 commits

Author SHA1 Message Date
kortschak
bf6412b55d Run go vet
Bugs found.
2014-08-28 12:22:37 +09:30
kortschak
8118c8d3cc Quieten deadcode 2014-08-28 12:04:45 +09:30
kortschak
484bf145a8 Remove non-documentation lint
Because of extensive nature of changes, tested all three non-memstore
backends - passed.
2014-08-28 11:51:39 +09:30
6614466d23 Merge pull request #148 from kortschak/renaming
Renaming triple-related entities to the quads they actually are (eg, TripleStore -> QuadStore)
2014-08-27 16:36:06 -04:00
kortschak
a22eb42482 Make hashOf a function 2014-08-27 23:25:50 +09:30
kortschak
d8866478df Add basic support for mongo testing
This is not intended to be for general consumption at this stage; it
requires that the tester has a mongod instance running and because of
the time taken to load the db, $GOROOT/src/cmd/go/test.go must be
modified to allow for tests longer than 10 minutes. A future CL may
allow db probing and the use of an existing cayley test dataset.
2014-08-27 23:01:12 +09:30
kortschak
dccf38cba6 Simplify godoc 2014-08-27 21:40:56 +09:30
kortschak
5e9da0347c Simplify method name 2014-08-27 21:40:36 +09:30
kortschak
443a091b72 Rename triple entities were relevant 2014-08-27 21:27:01 +09:30
kortschak
ddf8849e60 Remove quadfix 2014-08-27 20:39:28 +09:30
kortschak
12859a69a5 Rename triple* -> quad* files 2014-08-27 19:20:35 +09:30
1e62aaf374 Merge pull request #145 from kortschak/gremlin
Fix gremlin timeout handling
2014-08-26 11:56:57 -04:00
878a3267d6 Merge pull request #143 from kortschak/generate
Add generation support for B+tree code
2014-08-26 11:29:54 -04:00
kortschak
4345604a39 Inconsequential whitespace changes 2014-08-26 14:36:42 +09:30
kortschak
1faa8b1727 Fix build 2014-08-26 14:30:10 +09:30
kortschak
73dbfc9461 Fix worker termination handling
Fixes issue #102.
2014-08-26 14:20:37 +09:30
kortschak
62e7037f20 Remove unnecessary indirection 2014-08-26 11:19:22 +09:30
kortschak
ab685cfe04 Mark limit as unused in gremlin and SEXP
Used in SEXP. Currently there appears to be no way to limit the number
of query returns from MQL.
2014-08-26 10:17:44 +09:30
kortschak
8df21cd8d9 Refactor work out into worker type 2014-08-26 10:12:44 +09:30
kortschak
95170eb8ed Prepare gremlin for introduction of a worker type 2014-08-25 15:57:40 +09:30
kortschak
ca90da43f4 Generate cznic/b code as described in Makefile 2014-08-24 11:45:00 +09:30
kortschak
59ce5e5a58 Add generate help for memstore/b generation 2014-08-24 11:44:35 +09:30
a96f2ef6f3 Merge pull request #142 from kortschak/generate
Add go generate directive
2014-08-23 20:48:44 -04:00
kortschak
5aba71f2e7 Add go generate directive
At this stage this is just a comment for users. The directive will have
effect at go tip when go CL125580044 is submitted. When that happens, at
tip parser code generation can be acheived in the default case with:

    go generate

in the relevant package directory.
2014-08-24 10:08:53 +09:30
89a03bfe8f Merge pull request #128 from barakmich/boltdb
Add BoltDB backend
2014-08-23 18:11:28 -04:00
d0fcdf4299 Documentation and tests 2014-08-23 18:05:04 -04:00
e2debf5f04 Merge branch 'master' into boltdb 2014-08-23 17:23:16 -04:00
37904212e3 Merge pull request #139 from kortschak/deadcode
Move remove() and removeAll() to tests
2014-08-23 17:22:29 -04:00
e8c51f5df4 Merge kortschak/config (hand-conflict) 2014-08-23 17:21:08 -04:00
e11dfeb50f Optionalize the sync parameter 2014-08-23 17:19:14 -04:00
c46c3f16e0 Merge pull request #138 from kortschak/usage
Clean up usage
2014-08-23 14:20:33 -04:00
79297cd8b1 Merge pull request #141 from kortschak/parse
Fix parser acceptance of `"` literal in IRIRef
2014-08-23 14:18:43 -04:00
kortschak
49961a50d7 Generate parser and add tests
ragel -Z -G2 parse.rl

ragel version 6.8
2014-08-23 11:09:28 +09:30
kortschak
d7e4aff72d Fix IRIRef defintions
Literal `"` is not allowed in an IRIRef. Fix this.
2014-08-23 10:57:49 +09:30
6d82c78b45 Cleanup based on comments 2014-08-22 16:31:50 -04:00
kortschak
ec008b5820 Move remove() and removeAll() to tests
This is done to keep deadcode quiet.
2014-08-22 16:50:39 +09:30
kortschak
d9096d6d9f Make usage cayley intro banner contextual
Only provide it when people run cayley without any other args.
2014-08-22 16:40:22 +09:30
kortschak
318edfc3c7 Clean up usage
* Use raw strings.
* Hook usage into flag.
* Print banner to stderr as flag.PrintDefaults does.
* Use the cayley usage rather than the flag ussage when command is
  unknown.
* Simplify args handling.
2014-08-22 16:33:20 +09:30
kortschak
df2c5e3c2a Move flag handling out of config into main
This places all the flag definitions together, making them easier to
find, and makes it possible (in the future) to use db for convenience
functions when we have a Go API, without having flag space contaminated
by cayley main flags.
2014-08-22 09:56:36 +09:30
cce0f88803 Merge pull request #135 from kortschak/mongo
Quieten go vet in mongo
2014-08-21 13:27:27 -04:00
c8c7f1ff8c Merge pull request #132 from kortschak/repl
Fix error in REPL term shutdown leaving tty unsane
2014-08-21 13:26:54 -04:00
ce25bd9b76 Merge pull request #131 from kortschak/tagger
Do tagger copying with less iteration
2014-08-21 13:23:41 -04:00
kortschak
93c9814147 Quieten go vet in mongo 2014-08-21 19:33:00 +09:30
kortschak
631188c626 Fix error in REPL term shutdown leaving tty unsane
Previously we did not close the liner term unless a SIGINT or SIGKILL
was received. This left the terminal in raw. Fix that.
2014-08-21 15:55:05 +09:30
kortschak
08e47b4a9e Do tagger copying with less iteration
This makes minimal difference to the benchmarks in cayley_test.go (a
variable ±5% on the bigger cases).
2014-08-21 15:34:50 +09:30
77b72e7189 Merge branch 'master' into boltdb 2014-08-20 17:37:30 -04:00
775a253a06 Merge pull request #127 from barakmich/localhost
Switch default to localhost. Fixes #107
2014-08-20 16:20:05 -04:00
b4ef86145d Switch default to localhost. Fixes #107 2014-08-20 15:56:36 -04:00
720a80a51f Merge pull request #126 from barakmich/replcrash
Temporarily fix REPL crash by locking the kill channel
2014-08-20 14:01:25 -04:00
d3d55e320d Merge pull request #125 from barakmich/gremlin_underscore
Import underscore for Gremlin
2014-08-20 13:52:05 -04:00