Hello everyone I am a recent graduate and have recently joined my job. I have been assigned a task of introducing a layer between the c++ program and its connectivity with database which would translate a query to any given database which in this case is postgres. We are using mysql++ and I have to write the code such that it works with any database tool. Could anyone please guide me? Thanks
First you have to detect the engine and then have the needed interface that works same on top but works differently for different database connectivity.
Thanks Shabbir. I am totally new to databases, a novice. I am basically a C++ programmer and am interacting with databases for the first time. Could you please guide from the beginning?
I have just found this website but is above my head ;'( http://www.theregister.co.uk/2006/11/22/cplusplus_database_framework/
Yes that is what I was suggesting you in simple terms. Actually you are trying to create ODBC like miniature thing
Is there any tutorial that starts from beginning? Or could you help me do this from scratch. I am not at all familiar with Databases. I have been coding in C++ or J2SE but never in sql etc
Yes but which book? Could you recommend any which teaches from the scratch. Most of them are for those who already have some knowledge about it ;'(
Could you please recommend any book that teaches from the beginning because books do not always start from scratch. They do assume some level of familiarity ;'(
Right!!! shabbir you said right Books are the best to start learn something and the database is not a small topic its a huge and there is lot of things to learn first. Its not possible to learn the database by discussion go for some good books and you can also learn online if you would like you can try w3schools is one of the best tutorial.
You developed the game three or five years ago by using MySQL. All worked fine at the beginning but today you have more then a million ..