What database program to use with programming language C ?

5 replies
I have an arduino decimille (a circut board) and it is programmed in C. I sort of learned very basic programming with it but now i need it to input data (the results of an on/off switch) into a database.


What free database programs can i use that will accept input from a program written in C?
#database #language #program #programming
  • Profile picture of the author xtrecoolx
    Are you saying that the circuit board is sending output via serial port to a computer and you need to save this output??

    Originally Posted by Claysprague View Post

    I have an arduino decimille (a circut board) and it is programmed in C. I sort of learned very basic programming with it but now i need it to input data (the results of an on/off switch) into a database.


    What free database programs can i use that will accept input from a program written in C?
    Signature
    {{ DiscussionBoard.errors[3665440].message }}
  • Profile picture of the author caesargus
    Originally Posted by Claysprague View Post

    I have an arduino decimille (a circut board) and it is programmed in C. I sort of learned very basic programming with it but now i need it to input data (the results of an on/off switch) into a database.


    What free database programs can i use that will accept input from a program written in C?
    If you're working with small memory space requirements, I'd checkout sqlite. You can always work with ini files or csv files as well. MySQL is a good choice if it will work within the constraints that you might be under.

    The thing about C is that you have to remember to close file pointers, database pointers, and manage your memory. A lot of higher level languages take care of these things.

    I would suggest contacting RonWilder (here on the WarriorForum), he is pretty knowledgeable in this space (working with Micro Controllers, etc), and he should be able to give you pointers that will help you get what you're looking for
    {{ DiscussionBoard.errors[3666546].message }}
  • Profile picture of the author hireava
    Your best bet will probably be MySQL it has libraries for most OS's.
    Signature
    {{ DiscussionBoard.errors[3669631].message }}
  • Profile picture of the author jenilson2612
    Yeah. Even i am also developing programs using C and when there is need for database connectivity than i am using MySQL because it's very easy to use and implement. Just go through queries of that, it's very easy and simple.
    {{ DiscussionBoard.errors[3670121].message }}
  • Profile picture of the author wayfarer
    I'm not a C programmer, but I've actually used the C API for MySQL with Python. It's pretty easy.
    Signature
    I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
    {{ DiscussionBoard.errors[3671339].message }}

Trending Topics