pare-db

v0.24.2
io.github.Dave-London/pare-db Checked 5 hours ago Published 3 days ago

Pare DB — Structured database CLI operations (psql, mysql, redis-cli, mongosh) as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

psql-query PostgreSQL Query

Executes a PostgreSQL query via psql and returns structured tabular output. WARNING: The query is executed as-is against the target database — do not pass untrusted input.

ParameterTypeDescription
query *stringSQL query to execute
compactbooleanPrefer compact output
databasestringDatabase name to connect to
hoststringDatabase host
portnumberDatabase port (default: 5432)
userstringDatabase user

psql-list-databases PostgreSQL List Databases

Lists all PostgreSQL databases via psql with owner, encoding, and size info.

ParameterTypeDescription
compactbooleanPrefer compact output
hoststringDatabase host
portnumberDatabase port (default: 5432)
userstringDatabase user

mysql-query MySQL Query

Executes a MySQL query and returns structured tabular output. WARNING: The query is executed as-is against the target database — do not pass untrusted input.

ParameterTypeDescription
query *stringSQL query to execute
compactbooleanPrefer compact output
databasestringDatabase name to connect to
hoststringDatabase host
portnumberDatabase port (default: 3306)
userstringDatabase user

mysql-list-databases MySQL List Databases

Lists all MySQL databases with structured output.

ParameterTypeDescription
compactbooleanPrefer compact output
hoststringDatabase host
portnumberDatabase port (default: 3306)
userstringDatabase user

redis-ping Redis Ping

Tests Redis connectivity by sending a PING command.

ParameterTypeDescription
compactbooleanPrefer compact output
hoststringRedis host
passwordstringRedis password (AUTH)
portnumberRedis port (default: 6379)

redis-info Redis Info

Gets Redis server info with structured sections (server, clients, memory, etc.).

ParameterTypeDescription
compactbooleanPrefer compact output
hoststringRedis host
passwordstringRedis password (AUTH)
portnumberRedis port (default: 6379)
sectionstringSpecific info section to retrieve (e.g., server, clients, memory, stats)

redis-command Redis Command

Executes a Redis command via redis-cli and returns the response. WARNING: The command is executed as-is — do not pass untrusted input.

ParameterTypeDescription
command *stringRedis command to execute (e.g., GET, SET, KEYS, DBSIZE)
argsarrayArguments for the Redis command
compactbooleanPrefer compact output
dbnumberRedis database number
hoststringRedis host
passwordstringRedis password (AUTH)
portnumberRedis port (default: 6379)

mongosh-eval MongoDB Eval

Evaluates a MongoDB expression via mongosh and returns the output. WARNING: The expression is executed as-is — do not pass untrusted input.

ParameterTypeDescription
expression *stringJavaScript expression to evaluate in mongosh
compactbooleanPrefer compact output
uristringMongoDB connection URI (e.g., mongodb://localhost:27017/mydb)

mongosh-stats MongoDB Stats

Gets MongoDB database statistics (collections, objects, data size, storage, indexes) via mongosh.

ParameterTypeDescription
compactbooleanPrefer compact output
uristringMongoDB connection URI (e.g., mongodb://localhost:27017/mydb)