kinland / cse403-wi11-wikimap

Automatically exported from code.google.com/p/cse403-wi11-wikimap
0 stars 0 forks source link

Clean up Database Connection in Java and PHP #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the functionality of the feature/task that is to be implemented?

We need for our database connection to be changed in as few places as possible 
when instructing a customer to switch databases.  

Original issue reported on code.google.com by holycrap...@gmail.com on 9 Mar 2011 at 2:11

GoogleCodeExporter commented 8 years ago
Liem,

I'm not familiar with php so I was wondering if you can abstract the two calls 
to the database in the php files into a separate class (i.e. 
DatabaseConnection.php) and in it have two functions that return a connection 
object for reading and an object for writing?

It should be similar to communication/DatabaseConnection.java. 

Let me know.  If you can't get to it, I'll see if Dylan can, but he has a lot 
on his plate for tonight.

Original comment by kwanste on 9 Mar 2011 at 3:31

GoogleCodeExporter commented 8 years ago
Java one got cleaned up. PHP one is on hold for now.  Will revisit.

Original comment by holycrap...@gmail.com on 11 Mar 2011 at 3:18