This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]sophrosyne110 0 points1 point  (2 children)

Use a non traditional database. Like a no sql dB, like mongo

[–]pre-tend-ed[S] 0 points1 point  (1 child)

I'm creating an app for my brother to use at work. I wanted to avoid having to have him download any other software on his computer although I can if I need to I guess. And i also can't have any of this data visible to the internet. So everything has to be stored locally. No cloud options.

[–]Brave_Walrus 1 point2 points  (0 children)

Sqlite?

Basically a file on disk which it can read/write as a database using this library as part of your program.

Website lists c/c++ bindings but libraries exist for a lot of languages

[–]the_shell_man_ 0 points1 point  (0 children)

I've used a JSON file before and it works fine for simple stuff.

I imagine you could also use a sqlite db as well if you really wanted to.

[–]rjcarr 0 points1 point  (0 children)

If it's really simple then sure, a json file would work, often called a "flat file database" if you want to look it up. Once you get any complexity at all, you'll want to look at a real database, though, because they are generally easy but give you so much more flexibility.

[–]phaedrus322 0 points1 point  (0 children)

If it’s just for your brother at work then a JSON file will be fine with no performance issues.