Commit graph

16 commits

Author SHA1 Message Date
Emily Toop
36f6efa1d6 Addressing rebase issues 2017-05-30 11:03:47 +01:00
Emily Toop
c03b88eb43 Execute command line args in order 2017-05-30 11:00:53 +01:00
Emily Toop
002edeae1e Execute queries and transacts passed in at startup 2017-05-30 11:00:53 +01:00
Emily Toop
825726ddf9 Add query and transact commands to help 2017-05-30 11:00:53 +01:00
Emily Toop
99e1c35377 Send queries and transactions to mentat and output the results
move outputting query and transaction results out of store and into repl
2017-05-30 11:00:53 +01:00
Emily Toop
525f8766b4 Address review comments =nalexander.
* Bump rust version number.
* Use `bail` when throwing errors.
* Improve edn parser.
* Remove references to unused `more` flag.
* Improve naming of query and transact commands.
2017-05-30 11:00:53 +01:00
Emily Toop
00af587682 Address review comments r=nalexander.
* Bump rust version number.
* Use `bail` when throwing errors.
* Improve edn parser.
* Remove references to unused `more` flag.
* Improve naming of query and transact commands.
2017-05-30 10:58:40 +01:00
Emily Toop
e0548e9be2 Improve query parser. Am still not happy with it though.
There must be some way that I can retain the eof() after the `then` that means I don't have to move the skip on spaces and eof

Make in process command storing clearer.

Add comments around in process commands.
Add alternative commands for transact/t and query/q
2017-05-22 15:15:54 +01:00
Emily Toop
a8bb996e4f Implement is_complete for transactions and queries 2017-05-19 16:13:49 +01:00
Emily Toop
102e528310 Parse query and transact commands 2017-05-19 16:11:05 +01:00
Nick Alexander
b3ff534690 Review comment: Use combine to parse arguments.
Move over to using Result rather than enums with err
2017-05-19 13:21:06 +01:00
Emily Toop
45d00c43ac Implement Close command to close current DB.
* Closes existing open db and opens new in memory db
2017-05-19 13:21:06 +01:00
Emily Toop
f3d39d4194 Open named database OR default to in memory database if no name provided
Rearrange workspace to allow import of mentat crate in cli crate

Create store object inside repl when started for connecting to mentat

Use provided DB name to open connection in store

Accept DB name as command line arg.

Open on CLI start

Implement '.open' command to open desired DB from inside CLI
2017-05-19 13:19:49 +01:00
Emily Toop
5a6c3f6598 Remove rustc-serialize dependency 2017-05-10 10:40:34 +01:00
Emily Toop
9b30a2c0a7 Create mentat command line.
* Create tools directory containing new crate for mentat_cli.
* Add simple cli with mentat prompt.
2017-05-10 10:40:34 +01:00
Richard Newman
c95ec13ffe Begin moving web server to a separate crate. (#448) r=bgrins
This doesn't yet introduce a working Cargo.toml for 'mentatweb', but it
does allow RLS to build correctly without errors, and it reduces the
core library's dependency space, which is more important in the short
term.
2017-05-10 02:25:59 -07:00