by Woodi · 2y ago · 0 comments
However sqlite gained "SELECT * FROM /etc/passwd" and other system stats gathering features so looking for replacement...
Some fork dedicated to eradicated more complicated things like eg. WINDOWS would be nice. And ex-Redis and others simplifications too !
OsQuery is an SQLite extension consisting of hundreds of virtual tables that provide SQL access to operating system status and configuration.
I'm trying to wrap my head around where this sits within the OS. Is it a layer "on top" of everything? Or does it sit "underneath" the higher level os functionality?
Apologies if that doesn't make any sense, it looks to be a really cool tool and I'll be investigating it regardless.
So it sits in the same place as `top` or similar.
Only works in the CLI. Which also has .import
sqlite> create table pwd(name, pass, uid, gid, gecos, home, shell);
sqlite> .sep :
sqlite> .import /etc/passwd pwd
sqlite> .mode column
sqlite> select * from pwd where uid = '0';
name pass uid gid gecos home shell
---- ---- --- --- ----- ----- ---------
root x 0 0 root /root /bin/bash