Live data from Hacker News

Show HN: FSQL – Search through your file system with SQL-esque queries

github.com

51–60 of 132 posts

Re: Show HN: FSQL – Search through your file system with SQL-esque queries

#52
post #12

Nice! I'm actually working on a similar project to push lsof and files from /proc into some postgres tables. Lets me do cool things like query log files across a ~6000 server infrastructure similar to: SELECT distinct(l.name) FROM lsof l, lsofer_runs r WHERE l.lsofer_id = r.id AND fd_type = 'REG' AND l.fd ~ '[0-9][uw]' AND l.name like '%log' GROUP BY l.name, r.hostname ORDER BY name Best of luck!

so you're rewriting osquery? https://osquery.io/

I need this immediately.

Re: Show HN: FSQL – Search through your file system with SQL-esque queries

#56
post #23

Did someone come up with a generalized rule about putting SQL on top of every possible system that contains queryable information? Here is first-pass: >eventually every system that contains information that can be queried will have a sql interface

Yes, it is called "Spark driver" these days.

Re: Show HN: FSQL – Search through your file system with SQL-esque queries

#57
post #10

find/grep/awk/ag get me a long way to be honest. However, I think this is a cool project because it makes filtering of file attributes (such as size) so much easier. No need for splitting strings and using regex. Cheers.

Not to take anything away from this project, but you can filter on size, permission, etc easily and robustly using just `find` (try -perm, -size, -{c,m}time, etc flags): https://linux.die.net/man/1/find

If you are splitting strings (from output of `ls -l` presumably) for such tasks, then definitely take a look at find.

Re: Show HN: FSQL – Search through your file system with SQL-esque queries

#58
post #33
post #29

Earlier quoted context omitted.

Does it keep everything local? I couldn't find anything on the FAQ and I remember a similar tool posted here on HN and people complained that it called home for some search functionality.

everything in Everything is local

Cool, thanks

Re: Show HN: FSQL – Search through your file system with SQL-esque queries

#59

I wanted to write the exact opposite: a Mysql/Postgres client as a FUSE filesystem driver. Namespaces -> folders, tables -> (editable) CSV files, stored procedures and settings accessible as (editable) plain text files.

Sounds dangerous!

Re: Show HN: FSQL – Search through your file system with SQL-esque queries

#60
Does anyone remember WinFS (1)?

Bill Gates described it as his biggest product regret (2).

I remember I thought it was brilliant. Too bad it was probably a little bit too futuristic for its time, as for a few other things they launched when it just was not the right time... the clunky Tablet PCs (3) were for sure another example.

(1) https://en.m.wikipedia.org/wiki/WinFS

(2) http://www.zdnet.com/article/bill-gates-biggest-microsoft-pr...

(3) https://en.m.wikipedia.org/wiki/Microsoft_Tablet_PC

Post reply on HN