Database for C Kernel?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
xvedejas
Member
Member
Posts: 168
Joined: Thu Jun 04, 2009 5:01 pm

Database for C Kernel?

Post by xvedejas »

I'm looking for an open source (anything GPL compatible) database that might be easily ported to an all-C kernel. We've implemented a bit of stdlib already, and we're wondering if there might be a small database that could be compiled with the kernel on top of that. The one small catch is we don't want the database to use any threads or anything.

Is anyone aware of a small, simple, and efficient database software that might fit this? Thanks for any help.
MasterLee
Member
Member
Posts: 90
Joined: Fri Mar 13, 2009 8:51 am

Re: Database for C Kernel?

Post by MasterLee »

50₰
User avatar
xvedejas
Member
Member
Posts: 168
Joined: Thu Jun 04, 2009 5:01 pm

Re: Database for C Kernel?

Post by xvedejas »

We've already tried SQLite, it uses POSIX threads in numerous places, so it probably can't be ported -- that isn't to say we can't use code from it. But we really don't want to fork a project.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Database for C Kernel?

Post by pcmattman »

We've already tried SQLite, it uses POSIX threads in numerous places
We ported sqlite to our kernel's C++ config module with no POSIX apart from malloc/free and a couple of string and memory manipulation functions without too much of a problem. It's handy as it supports callbacks, which we've made use of quite extensively already.
MasterLee
Member
Member
Posts: 90
Joined: Fri Mar 13, 2009 8:51 am

Re: Database for C Kernel?

Post by MasterLee »

Take a look at following page:
http://www.sqlite.org/custombuild.html
There you can find porting information.
50₰
dak91
Member
Member
Posts: 43
Joined: Thu Mar 12, 2009 3:27 am
Location: Sardegna (IT)

Re: Database for C Kernel?

Post by dak91 »

I had the same question, and I chose sqlite3, it's easy to be integrated. I followed the page that MasterLee have already posted. You can config sqlite3 to use a single thread, it's all in the link
Post Reply