Puchaczov

Joined 8 years ago

Karma
48
Submissions
21
Member since
Jul 20
.NET developer, loves to automate things.
View on Hacker News

Recent submissions

Comment · 6 months ago
interesting idea!
Comment · 1 year ago
Thanks! Would love to hear about your specific support scenarios :)
Comment · 1 year ago
You actually don't need any special type system or complex infrastructure for this. Each data source can handle its own data representation and operations. For GIS data, you could create a plugin that naturally handles spatial operations. Here's how it could work:

select Id, DistanceBetween(s.FromPoint(-73.935242, 40.730610)) as Distance, s.IsBetween(s.FromPoint(-73.935242, 40.730610)) as IsInArea from #gis.shapefile('map.shp') s

You could even combine it with other data sources. For example, if you have geometry data in a CSV:

select sfg.DistanceBetween(sfg.FromPoint(..., ...)) from #csv.file(...) c cross apply #gis.ShapeFromGeometry(c.Geometry) sfg

Comment · 1 year ago
I see it a bit that way: while osquery focuses on OS-level queries and steampipe on cloud services, Musoq is more developer-centric, I'm using it like swiss army knife for various thing, something like sed or grep. You can ofcourse create plugins that covers what mentioned tools do or even, use that tools as a plugin for musoq but in general - I'm not going to compete with any of them, I'm filling my own niche - flexible developer tool.
Comment · 1 year ago
Thanks! It would be great to ask what kind of usage you have in mind? I've currently been using the Roslyn plugin mainly with the engine repository itself because it helps me extract queries from tests, I use it in combination with GPT, which helps me create documentation. In the longer term, I would like this plugin to help me refactor some problematic code fragments, but for that I will need to further develop the Roslyn integration itself.
Comment · 1 year ago
You can query with --format [raw|csv|json|interpreted_json]

This will output pure json or csv. This way you can use other tools like jq, grep, csvtoolkit or whatever you need further process your data.

to dig deeper, just look at: https://github.com/Puchaczov/Musoq.CLI

After some thought: you could have also asked whether it's possible to add new data sources that you need to query, and the answer is of course yes! It's actually quite simple and there are many examples. Each data source tool is just a plugin implementing the appropriate interfaces. You can look at some example projects and see how they implement their data source here: https://github.com/Puchaczov/Musoq.DataSources

Comment · 1 year ago
Do you have something specific in your mind? I would love to hear that! Unexpected approach is what driving me usually
Comment · 8 years ago
Can you say something more? How you earn moneys here? What's your business model?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton