MCPcopy Index your code
hub / github.com/dflemstr/rq

github.com/dflemstr/rq @v1.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.4 ↗ · + Follow
192 symbols 329 edges 16 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rq Build Status Build status Crates.io Language (Rust)

NOTE: rq is in very low maintenance mode as my day job is taking up a lot of my time. I will try my best to merge pull requests but will not drive active development of this crate.

NOTE: rq no longer ships with query support and a Javascript engine is not included; instead, it focuses exclusively on format transformation. You can still pipe into a runtime like node.js if you need Javascript evaluation. Please see this issue to discuss introducing a new query language.

This is the home of the tool called rq (record query). It's a tool that's used for performing queries on streams of records in various formats.

The goal is to make ad-hoc exploration of data sets easy without having to use more heavy-weight tools like SQL/MapReduce/custom programs. rq fills a similar niche as tools like awk or sed, but works with structured (record) data instead of text.

It was created with love out of the best parts of Rust, and is distributed as a dependency-free binary on many operating systems and architectures.

Quick links

Format support status

Format Read Write
Apache Avro ✔️ ✔️
CBOR ✔️ ✔️
JSON ✔️ ✔️
MessagePack ✔️ ✔️
Google Protocol Buffers ✔️ ✖️
YAML ✔️ ✔️
TOML ✔️ ✔️
Raw (plain text) ✔️ ✔️
CSV ✔️ ✔️

Extension points exported contracts — how you extend this code

Source (Interface)
(no doc) [1 implementers]
src/value/mod.rs
Sink (Interface)
(no doc) [1 implementers]
src/value/mod.rs

Core symbols most depended-on inside this repo

parse_args
called by 27
src/bin/rq.rs
source
called by 9
src/value/csv.rs
run_source
called by 9
src/bin/rq.rs
write_integer
called by 8
src/value/json.rs
sink
called by 5
src/value/csv.rs
run_source_sink
called by 5
src/bin/rq.rs
indent
called by 4
src/value/json.rs
find_data
called by 2
src/config.rs

Shape

Method 90
Function 73
Class 21
Enum 6
Interface 2

Languages

Rust100%

Modules by API surface

src/bin/rq.rs46 symbols
src/value/json.rs40 symbols
src/value/mod.rs32 symbols
src/value/avro.rs11 symbols
src/config.rs9 symbols
src/value/messagepack.rs8 symbols
src/value/csv.rs8 symbols
src/value/cbor.rs7 symbols
src/value/yaml.rs6 symbols
src/value/toml.rs6 symbols
src/value/raw.rs6 symbols
src/error.rs5 symbols

For agents

$ claude mcp add rq \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page