Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Apr 6, 2024
1 parent fe0ed72 commit 11462a8
Show file tree
Hide file tree
Showing 14 changed files with 597 additions and 553 deletions.
153 changes: 151 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ default-run = "toydb"
doctest = false

[dependencies]
async-channel = "~2.2.0"
bincode = "~1.3.3"
clap = { version = "~4.5.4", features = ["cargo"] }
clap = { version = "~4.5.4", features = ["cargo", "derive"] }
config = "~0.14.0"
derivative = "~2.2.0"
fs4 = "~0.8.1"
futures = "~0.3.15"
futures-util = "~0.3.15"
hdrhistogram = "~7.5.4"
hex = "~0.4.3"
itertools = "0.12.1"
lazy_static = "~1.4.0"
log = "~0.4.14"
names = "~0.14.0"
Expand Down
8 changes: 1 addition & 7 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,13 +735,7 @@ out of scope for the project.

The toyDB [`Client`](https://github.com/erikgrinaker/toydb/blob/master/src/client.rs) provides a
simple API for interacting with a server, mainly by executing SQL statements via `execute()`
returning `sql::ResultSet`. It also has the convenience method `with_txn()`, taking a closure
that executes a series of SQL statements while automatically catching and retrying serialization
errors.

There is also `client::Pool`, which manages a set of pre-connected clients that can be retrieved
for running short-lived queries in a multi-threaded application without incurring connection
setup costs.
returning `sql::ResultSet`.

The [`toysql`](https://github.com/erikgrinaker/toydb/blob/master/src/bin/toysql.rs) command-line
client is a simple REPL client that connects to a server using the toyDB `Client` and continually
Expand Down
Loading

0 comments on commit 11462a8

Please sign in to comment.