mentat/db/src
Emily Toop 46fc1615fb Open DB inside CLI (#452) (#463)
* 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

* Implement Close command to close current DB.
* Closes existing open db and opens new in memory db

* Review comment: Use `combine` to parse arguments.

Move over to using Result rather than enums with err

* Accept and parse EDN Query and Transact commands (#453) (#465)

* Parse query and transact commands

* Implement is_complete for transactions and queries

* 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

* 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.

* Send queries and transactions to mentat and output the results (#466)

* Send queries and transactions to mentat and output the results

move outputting query and transaction results out of store and into repl

* Add query and transact commands to help

* Execute queries and transacts passed in at startup

* 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.

* Execute command line args in order

* Addressing rebase issues
2017-05-30 11:05:58 +01:00
..
add_retract_alter_set.rs Schema alteration. Fixes #294 and #295. (#370) r=rnewman 2017-03-20 13:18:59 -07:00
bootstrap.rs UUIDs and instants. Fixes #44, #45, #426, #427. (#438) r=nalexander 2017-04-28 20:11:55 -07:00
db.rs Allow opening a DB. (#462) r=fluffyemily 2017-05-09 09:42:35 -07:00
debug.rs Use Rc for TypedValue, Variable, and query Ident keywords. (#395) r=nalexander 2017-04-02 21:38:36 -07:00
entids.rs UUIDs and instants. Fixes #44, #45, #426, #427. (#438) r=nalexander 2017-04-28 20:11:55 -07:00
errors.rs Lookup refs, nested vector values, map notation. Fixes #180, fixes #183, fixes #284. (#382) r=rnewman 2017-03-27 16:30:04 -07:00
internal_types.rs Lookup refs, nested vector values, map notation. Fixes #180, fixes #183, fixes #284. (#382) r=rnewman 2017-03-27 16:30:04 -07:00
lib.rs Open DB inside CLI (#452) (#463) 2017-05-30 11:05:58 +01:00
metadata.rs UUIDs and instants. Fixes #44, #45, #426, #427. (#438) r=nalexander 2017-04-28 20:11:55 -07:00
schema.rs UUIDs and instants. Fixes #44, #45, #426, #427. (#438) r=nalexander 2017-04-28 20:11:55 -07:00
tx.rs UUIDs and instants. Fixes #44, #45, #426, #427. (#438) r=nalexander 2017-04-28 20:11:55 -07:00
types.rs UUIDs and instants. Fixes #44, #45, #426, #427. (#438) r=nalexander 2017-04-28 20:11:55 -07:00
upsert_resolution.rs Lookup refs, nested vector values, map notation. Fixes #180, fixes #183, fixes #284. (#382) r=rnewman 2017-03-27 16:30:04 -07:00