Recently I wrote a database application. I decided to connect to a mySQL database and use it.
I decided to use the MySQLCommunityServer class.
All the while thinking to myself that I should use the database class.
Thinking if I wanted to expand then all I would have to do is to make a select statement based on a user preference.
[code]dim db as Database
const TheActualDatabase as string = “MySQLCommunityServer”
Select Case TheActualDatabase
db = new MSSQLServerDatabase
db = new MySQLCommunityServer
db = new ODBCDatabase
db = new OracleDatabase
db = new PostgreSQLDatabase
db = new SQLiteDatabase
if db.connect connect then
I was under the impression that there was a database interface and a way to pass an interface to an object.
I looked for the DatabaseInterface but couldn’t find it.