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> β€” n is 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 definition
    • 3 β€” Class or struct
    • 4 β€” Files including this file
    • 5 β€” Full file path
    • 6 β€” Functions calling this function
    • 7 β€” Functions called by this function
    • 8 β€” Calls of this function or macro
    • 9 β€” Members and methods of this class
    • 10 β€” Class which owns this member or method
    • 11 β€” 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 -e and -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 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