TheGU / fin-ally

Automatically exported from code.google.com/p/fin-ally
GNU General Public License v3.0
0 stars 0 forks source link

Create a Database class #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We need to create a database object to store things like database name, size, 
and potentially things like table formatting issues, etc.. 

Initially this object should contain meta-data about the database we're using, 
as opposed to data from the database itself.

I noticed this while looking at fileCheck.py (a utility script for locating a 
.db file). The function SetupInitialDatabase( ) needs to identify the database 
name, but once it does so it does not place this information into an object for 
future use. 

It does push the database name into a genericExpense object, which is good, but 
not what we're after. 

Original issue reported on code.google.com by Daniel.S...@gmail.com on 17 Jun 2010 at 5:01

GoogleCodeExporter commented 9 years ago
Database class created (called Database) to contain a method called 
IdentifyDatabase, which will absorb the File Utilities function where we 
previously located and loaded the database. This class also contains static 
variables name, size, and location (path), which can be accessed by all other 
modules.

Original comment by Daniel.S...@gmail.com on 17 Jun 2010 at 8:29