thomas008
Well-known member
Hi
I have an application ready in which I have a lot of code to access a database.
The code works well enough but now i want to write a class that completely handles my database access. So that if i should change from ACCESS to MYSQL
that i do not have to alter my code in any way. I would just have to change my class of write a new one.
I'm not sure of where to begin or what to do. Could anyone give me some startertips. I do know what classes are and how to use them. I'm just not sure of what to place in a database class.
Thanks in advance
I have an application ready in which I have a lot of code to access a database.
The code works well enough but now i want to write a class that completely handles my database access. So that if i should change from ACCESS to MYSQL
that i do not have to alter my code in any way. I would just have to change my class of write a new one.
I'm not sure of where to begin or what to do. Could anyone give me some startertips. I do know what classes are and how to use them. I'm just not sure of what to place in a database class.
Thanks in advance