Databases in C

Alright, I'm writing some file syncing software in c, and well I need to create a database of some kind to keep track of differences in the server's and host's files. The thing is I have not the slightest clue where to even start with working with something like that in c. So do you guys have any ideas or suggestions?

Attached: photo5224633304345586329.jpg (481x604, 37.11K)

fucking newfags out

Attached: 8ef875808a51a139cac4e7c4fc8c84c65fb894dffc4b24eee2d8017e4d6ff2c6.jpg (1280x1440, 110.24K)

This site is broken. He's not nesesarily new. Blame codemonkey

i don't buy it, I know the site is fugged but posting multiple breads usually happens when newfags don't know that on bigger boards it takes a while for it to go through so they keep reloading the page and pressing new thread again, I know because it happened to me too back in the day

Attached: 519dc9508c7852fa01b93f0769420571943d376002c6c9c46e562b950160059e.jpg (640x640, 38.75K)

You dun goofed.

sqlite?

You don't need to create a database from scratch, neither does it have to be in C, as long as you can talk to it in C. There are decades proven solutions, big and lightweight.

Search first based on need, not restriction. You aren't looking for a C database. First and foremost you are looking for an east to work with database and a tutorial on how to interface with a database. There are many great tutorials around. Do that first, it will narrow down what you actually want and need.
You can't make decisions if you don't know what you need, neither can someone here truly recommend something without knowing what your project looks like.

You need to actually create a database. Sounds like you don't need a relational one, so something like NoSQL will work. Although be aware that basically any non-relational is called a "nosql" database but that NoSQL is actually a particular implementation of one as well.
Once you have a database that is suited for your needs, you'll need to interact with it.
The easiest solution is to find a header-only library that makes interacting with it easy; just point it to a database and start doing operations.
If none exists, you're going to need to build your own bindings.
Since it's C and you can't just make a class to use as an interface, you'll probably just want to write some macros to make common tasks easy to do.
Frankly, explaining how to do that is beyond the scope of what I can reasonably fit in a post, and if you can't do it yourself (and I suspect you can't) then I'd recommend just selecting a database, any database, that has a header-only library available.

I haven't needed to use a database with C before, but I imagine C++ has a number of libraries available. Finding ones which are C compatible may be difficult.

Attached: 1457987534394.png (630x600, 154.56K)

You're overthinking this, it's just a list of checksums.

Don't bother with this guy OP. These worry warts litter these threads with "don't try to write it yourself user!" hysteria.

You can write your own functional db in C, its quite easy in fact since C gives you nearly all the tools you need to succeed.

Just start small, basically just a data store with simple set/get methods and expand from there. The benefit you will have is something that performs much faster than the bloated solutions normally mentioned (e.g. sqlite, etc). Also remember that writing it yourself is oftentimes faster than trying to slave away at learning some poorly documented API (e.g. postgresql).