RASQL(1)

πŸ“¦
version 5.0.2+git20250321.41f65e2 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– RASQL(1) πŸ’–

okay bestie, gather round, because we're talking about rasql β€” the manual page, the myth, the legend. it's a General Commands Manual situation, and no cap, she's a baddie. πŸ’…


✨ NAME ✨

rasql β€” read argus(8) data from a mysql database. πŸ“


🌸 SYNOPSIS 🌸

rasql [-M sql='where clause'] -r mysql://user@host/db/table [raoptions]
[-- filter-expression]

like, look at her. she's giving structure. she's giving syntax. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so rasql reads argus data from a mysql database that was generated by argus-client. that's the whole vibe. 🌈

but here's the main character part: the principal function of rasql is to extract the 'record' binary blob β€” the one that gets inserted by rasqlinsert.1 when it's adding argus data to a mysql table. that blob? iconic. that blob? the moment. πŸ’–


πŸ‘‘ RASQL SPECIFIC OPTIONS πŸ‘‘

rasql, just like literally all the ra-based clients out there, supports a whole bunch of ra options β€” including filtering of input argus records through a terminating filter expression. periodt. πŸ’…

the rasql(1)-specific options are:

  • -M sql='where clause' β€” this appends the 'where clause' to the SELECT mysql database command. it's your little backstage pass to use SQL select and join strategies when you're performing queries. slay. πŸ”₯

🌟 INVOCATION 🌟

okay so this invocation right here reads argus(8) data from the table table that lives inside the db database, using the user database account β€” and it instructs MySQL to select records where the database attribute 'saddr' equals the string '2.3.4.5'. obsessed. 😭

rasql -r mysql://user@localhost/db/table -M sql="saddr='2.3.4.5'"

Copyright (c) 2000-2024 QoSient. All rights reserved. πŸ’œ


⭐ SEE ALSO ⭐

ra(1), rasqlinsert(1), rarc(5), argus(8), 🌸


🧚 AUTHORS 🧚

Carter Bullard (carter@qosient.com). πŸ’–


and that's the whole page bestie, no notes, she ate and left no crumbs πŸ‘‘

rasql version 5.0.3 β€” dated 12 August 2023. mwah, ily, go read your argus data πŸ’…βœ¨πŸ¦‹