reddb-cli 0.1.2-next.31 → 0.1.2-next.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,8 +35,7 @@ RedDB uses the same core engine across three practical modes:
|
|
|
35
35
|
That means the storage model stays the same whether you:
|
|
36
36
|
|
|
37
37
|
- open a local `.rdb` file inside your Rust process
|
|
38
|
-
- run `red server --http`
|
|
39
|
-
- run `red server --grpc`
|
|
38
|
+
- run `red server --grpc-bind 127.0.0.1:50051 --http-bind 127.0.0.1:8080`
|
|
40
39
|
- expose the same database to AI agents through MCP
|
|
41
40
|
|
|
42
41
|
## Install
|
|
@@ -92,11 +91,14 @@ cargo build --release --bin red
|
|
|
92
91
|
|
|
93
92
|
## Run a server
|
|
94
93
|
|
|
95
|
-
###
|
|
94
|
+
### Local Dev
|
|
96
95
|
|
|
97
96
|
```bash
|
|
98
97
|
mkdir -p ./data
|
|
99
|
-
red server
|
|
98
|
+
red server \
|
|
99
|
+
--path ./data/reddb.rdb \
|
|
100
|
+
--grpc-bind 127.0.0.1:50051 \
|
|
101
|
+
--http-bind 127.0.0.1:8080
|
|
100
102
|
```
|
|
101
103
|
|
|
102
104
|
Create data:
|
|
@@ -127,12 +129,10 @@ Health check:
|
|
|
127
129
|
curl -s http://127.0.0.1:8080/health
|
|
128
130
|
```
|
|
129
131
|
|
|
130
|
-
|
|
132
|
+
This is the recommended local setup because it gives you:
|
|
131
133
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
red server --grpc --path ./data/reddb.rdb --bind 127.0.0.1:50051
|
|
135
|
-
```
|
|
134
|
+
- HTTP for `curl`, browser tooling, and scripts
|
|
135
|
+
- gRPC for `red connect` and service-to-service clients
|
|
136
136
|
|
|
137
137
|
## Connect to RedDB
|
|
138
138
|
|
|
@@ -156,7 +156,10 @@ curl -X POST http://127.0.0.1:8080/query \
|
|
|
156
156
|
Start a gRPC server first:
|
|
157
157
|
|
|
158
158
|
```bash
|
|
159
|
-
red server
|
|
159
|
+
red server \
|
|
160
|
+
--path ./data/reddb.rdb \
|
|
161
|
+
--grpc-bind 127.0.0.1:50051 \
|
|
162
|
+
--http-bind 127.0.0.1:8080
|
|
160
163
|
```
|
|
161
164
|
|
|
162
165
|
Then connect:
|
|
@@ -250,10 +253,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
|
250
253
|
|
|
251
254
|
## Documentation
|
|
252
255
|
|
|
253
|
-
- Docs home: [docs/README.md](
|
|
254
|
-
- Installation: [docs/getting-started/installation.md](
|
|
255
|
-
- Quick start: [docs/getting-started/quick-start.md](
|
|
256
|
-
- Connection guide: [docs/getting-started/connect.md](
|
|
257
|
-
- Embedded guide: [docs/api/embedded.md](
|
|
258
|
-
- HTTP API: [docs/api/http.md](
|
|
259
|
-
- CLI reference: [docs/api/cli.md](
|
|
256
|
+
- Docs home: [docs/README.md](docs/README.md)
|
|
257
|
+
- Installation: [docs/getting-started/installation.md](docs/getting-started/installation.md)
|
|
258
|
+
- Quick start: [docs/getting-started/quick-start.md](docs/getting-started/quick-start.md)
|
|
259
|
+
- Connection guide: [docs/getting-started/connect.md](docs/getting-started/connect.md)
|
|
260
|
+
- Embedded guide: [docs/api/embedded.md](docs/api/embedded.md)
|
|
261
|
+
- HTTP API: [docs/api/http.md](docs/api/http.md)
|
|
262
|
+
- CLI reference: [docs/api/cli.md](docs/api/cli.md)
|