CQSEARCH(1)
π CQSEARCH(1) π
okay bestie, gather round, because cqsearch(1) is literally the moment. it builds you a codequery database, and once you've got one you can search your codebase like it's a group chat and you're scrolling for receipts. no cap. π¦
β¨ NAME β¨
cqsearch β create codequery database π
π SYNOPSIS π
cqsearch [-s <sqdbfile> [-p <n>] [-t <term>] -[e|f] ] [-d] [-v] [-h]
that's the whole vibe right there, bestie. the -s block is where all the magic happens, and everything outside the brackets is the lil side quests. πΈ
π OPTIONS π
-sβ the path to your CodeQuery sqlite3 db file. this is the destination for the whole operation, the main character, the reason we're here π«Ά-p <n>βnis a number, and the number picks what kind of search you're doing. it's giving "choose your own adventure" but for symbols. here's the whole menu, don't skip any of them:1β Symbol (this is the default, so if you don't say anything, this is what you get) β2β Function or macro definition3β Class or struct4β Files including this file5β Full file path6β Functions calling this function7β Functions called by this function8β Calls of this function or macro9β Members and methods of this class10β Class which owns this member or method11β Children of this class (inheritance)12β Parent of this class (inheritance)13β Functions or macros inside this file
-tβ your search term. heads up: no spaces allowed in it if Exact Match is switched off. wild card searches are possible, so you can use*and?and let the algorithm cook π₯-eβ Exact Match switched ON. case-sensitive. she's picky and she knows it π-fβ Exact Match switched OFF, aka fuzzy search. case-insensitive, and wild card search is on the table. this one is the default btw π-dβ debug π-vβ version-hβ help π
okay so the combinations that are actually possible are-s -t -eand-s -t -f. and the extra optional argument you can toss in on top of those is-d. don't freestyle with combos, bestie, she said what she said π
π¦ COPYRIGHT π¦
Copyright 2013-2015 ruben2020 https://github.com/ruben2020/
Website: https://github.com/ruben2020/codequery
πΈ AUTHOR πΈ
This manual page was written by ChangZhuo Chen <czchen@debian.org> for the Debian GNU/Linux system (but may be used by others).
and that's the whole page, periodt π this one's from the manual for CQSEARCH(1) and it's dated 02/03/2026 β go forth and build those databases, you absolute icon πβ¨
π¦ where this page comes from
- ubuntu resolute: codequery 1.0.1+dfsg-1build1 Β· MPL-2
- ubuntu stonking: codequery 1.0.1+dfsg-1build1 Β· MPL-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms