OT: DBI equiv for C

I've prototyped something in ruby a while ago and I wish to translate some of it to C. Part of what I want to translate uses DBI. Is there a DBI equivalent in C? It would be good to be able to avoid the lose of backed database generality and to avoid having to learn a new database specific API. Not to mention speeding up the write.

J.