{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "masumedb-masume--query-database-from-terminal",
 "repo": "masumedb/masume",
 "repo_url": "https://github.com/masumedb/masume",
 "repo_slug": "masumedb-masume",
 "title": "Browse and query a database from the terminal",
 "page_title": "How to browse and query a database from the terminal with Masume",
 "summary": "Open a database in a keyboard-driven client and run SQL with completion and query plans.",
 "who": "A developer or analyst who needs to look at tables and run queries on a database without opening a GUI tool.",
 "problem": "Switching between a browser tool, a shell, and docs slows down quick checks on a database.",
 "outcome": "You connect to a database, browse its objects, and run a query with results shown in a grid.",
 "steps": [
  "Run `brew install masumedb/tap/masume`",
  "Run `masume ./notes.db` for a SQLite file, or `masume postgres://ada@127.0.0.1:5432/shop` for a URL",
  "Press `?` to see the keys and `Ctrl+K` to open the command palette",
  "Write a query in the editor and run it, then sort or filter the grid"
 ],
 "agent_prompt": "In the masume repo, open the database at <target> with `masume <target>` and run `select count(*) from <table>`. Expected output: a single row with a count. Verify the count matches the table size reported by the database.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README lists the supported engines, but a given engine may have limits; check docs/engines.md before relying on a specific feature.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "A terminal on macOS, Linux, or Windows",
  "A database you can reach, or a local SQLite file",
  "One install method: Homebrew, npm, Go 1.27 or later, or a release package"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/masumedb-masume/query-database-from-terminal/",
 "md": "https://dedupedai.com/use-cases/masumedb-masume/query-database-from-terminal/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/masumedb-masume--query-database-from-terminal.json",
 "api_version": "v1"
}
