Commit graph

33 commits

Author SHA1 Message Date
kortschak
d743de6b87 Add call to loadFn hook
Also add error return.
2015-01-26 16:36:31 +10: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
kortschak
443a091b72 Rename triple entities were relevant 2014-08-27 21:27:01 +09:30
89a03bfe8f Merge pull request #128 from barakmich/boltdb
Add BoltDB backend
2014-08-23 18:11:28 -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
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
fe0569c9d4 merge with master 2014-08-13 23:03:07 -04:00
c1550e347f 117 patched in 2014-08-13 21:28:45 -04:00
82e4d122fc bolt db works 2014-08-11 05:31:34 -04:00
9ce35aeb45 add removal test 2014-08-10 21:34:22 -04:00
3770190db5 test clean 2014-08-10 20:10:00 -04:00
kortschak
0c79c11606 Allow memstore instances to be started empty
This allows easier debugging of web UI problem.
2014-08-09 18:13:44 +09:30
11c3cd17c6 Fix cayley load command 2014-08-09 01:23:23 -04:00
kortschak
4844ef3e58 Add support for remote data sources
Now you can, for example:

cayley http --dbpath="https://github.com/google/cayley/blob/master/30kmoviedata.nq.gz?raw=true"
2014-08-08 22:19:53 +09:30
kortschak
844927ff1f Make decompressor conditional on reader interface 2014-08-08 21:27:17 +09:30
kortschak
979a0c4aee Allow optional strict N-Quad parsing
This puts more of the logic in cayley, but other approaches require that
db knows about quad formats.
2014-08-08 10:28:18 +09:30
kortschak
4c3f5109eb Separate db.Open and db.Load
Updates #82.
2014-08-08 09:52:35 +09:30
kortschak
2d4c07b56d Make db name-literal agnostic
Move the persistence characteristic of the store into the graph registry
and provide an API hook to get that information.

Add error return for init on a non-persistent store.

Updates #35.
2014-08-08 08:36:49 +09:30
8136f2abe9 fix usage to make more sense 2014-07-30 18:02:40 -04:00
d2b1d64de3 Add version numbers and ARM build 2014-07-30 17:47:10 -04:00
kortschak
592ea81687 Use build constraints for appengine 2014-07-23 10:02:11 +09:30
kortschak
0e0e382d2b Use error returns and interface type for parsing
Fixes issue #72

This change simplifies interactions with parsing N-Quads and makes
reading datasets more robust. Changes made while here also improve
performance:

benchmark           old ns/op     new ns/op     delta
BenchmarkParser     1058          667           -36.96%

We still use string concatenation which I'm not wildly happy about, but
I think this can be left for a later change.

Initial changes towards idiomatic error handling have been made. More
significant changes are needed, but these have subtle design implication
and need to be thought about more.

30kmoviesdata.nt.gz has been altered to properly escape double quotes.
This was done mechanically and with manual curation to pick up
straglers.
2014-07-22 20:34:37 +09:30
Jeremy Jay
923679b36c comment tweaks 2014-07-18 14:54:29 -04:00
Jeremy Jay
d808d9347c move to registry interface for backends 2014-07-16 16:49:55 -04:00
Alex Peters
4d34ea50cc Fix typos and minor cleanup 2014-07-10 13:19:30 +02:00
kortschak
334431418e Simplify db.Open name 2014-06-28 15:21:46 +09:30
kortschak
c4a19a4e35 Simplify names in cmd source 2014-06-28 12:38:51 +09:30
kortschak
639559544d Reorganise to make cmd code more prominant 2014-06-28 02:14:09 +09:30