68
submitted 1 month ago* (last edited 1 month ago) by matcha_addict@lemy.lol to c/linux@lemmy.ml

Hi all,

I am looking for a local database that is easily accessible via the command line.

It can be SQL or non-SQL

Whats my use case? I want to use it kinda like a second brain. A place to save ~~my notes~~, my todo lists, my book reading lists, links / articles to read later, etc.

I want it to be a good CLI citizen so that I can script its commands to create simpler abstractions, rather than writing out the full queries every time.

Maybe sqlite is what I need, but is that ideal for my use case?

Edit: removed notes, as evidently they aren't suitable for this and aren't like the rest.

you are viewing a single comment's thread
view the rest of the comments
[-] tmk@social.lugal.io 10 points 1 month ago

@matcha_addict Anything beyond SQLite is too heavy, but if it were me I would use a lightweight wiki like dokuwiki. Having to run SQL to do all these sorts of things sounds like it would just get in the way of both getting and consuming your thoughts.

[-] matcha_addict@lemy.lol -1 points 1 month ago

I don't think it would suffice. It would work for notes, but I want to also have a todo list in there, for example. Be able to check things off, query by due date, by assignee or task, etc.

[-] subignition@fedia.io 13 points 1 month ago

I don't think a database is a good fit for your use case at all, unless you're willing to reinvent a lot of wheels.

[-] matcha_addict@lemy.lol 2 points 1 month ago

What would then? I haven't found anything that has command line interface and supports dependent tasks and a flexible, queryable tag system

[-] subignition@fedia.io 1 points 1 month ago

I'm sorry, I don't have a suggestion. If it were me I would not be looking at a CLI solution for this at all.

[-] atzanteol@sh.itjust.works 4 points 1 month ago

For todo stuff there's the excellent "todo-txt" for cli use. Though not great for notes. Perhaps separate tools would be fine?

[-] matcha_addict@lemy.lol 1 points 1 month ago

Todo txt lacked some features I needed, which would be trivial to implement as a SQL column.

I do not remember what it was... Maybe it was dependent tasks? I believe so.

[-] 0x0@programming.dev 1 points 1 month ago* (last edited 1 month ago)
[-] makussu@feddit.org 2 points 1 month ago

Org mode, org roam, org agenda and org-ql

this post was submitted on 23 Jul 2024
68 points (97.2% liked)

Linux

47345 readers
1380 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS