r19959 - gnucash/trunk/src/backend/dbi - Add enumeration of indexes in sql backends.

John Ralls jralls at code.gnucash.org
Fri Dec 17 18:50:26 EST 2010


Author: jralls
Date: 2010-12-17 18:50:25 -0500 (Fri, 17 Dec 2010)
New Revision: 19959
Trac: http://svn.gnucash.org/trac/changeset/19959

Added:
   gnucash/trunk/src/backend/dbi/gnc-backend-dbi-priv.h
Modified:
   gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c
   gnucash/trunk/src/backend/dbi/test/test-dbi-basic.c
   gnucash/trunk/src/backend/dbi/test/test-dbi-stuff.c
Log:
Add enumeration of indexes in sql backends.

This is a first step to rewriting databases in a safe way. Indexes are 
named entities in sql databases and so need to be renamed along with the 
tables before creating and populating a new set.

This change also introduces a unit test of the new enumeration, and that 
test has to be able to see data structures which are private to 
gnc-backend-dbi.c, so those data structures are moved to a new file, 
gnc-backend-dbi-priv.h, which both gnc-backend-dbi.c and 
tests/test-stuff.c can include.





More information about the gnucash-patches mailing list