This content has been marked as final. Show 3 replies
I solved it myself.
In the primary Database, i am using the keys, comma seperated as one big unique key.
I wrote those keyExtractors for each of the single keys.
associated them to the primary db, and for each of them, one secondary DB.
Some Database Joins / Cursor joins now allow me to get some Data, based on more than one of these single keys.
Its easy to specify the queries i need in SQL, but it took some time to translate that to Berkeley.
I have a new Problem.
My Application must use COleDateTime Class.
This Class includes oledb.h.
Inside of oledb.h they define a DWORD called "DBTYPE", for some structs etc.
Berkeley db.h is using "DBTYPE" for an enumeration.
So i get "error c2371 redefinition different basic types"
Is it a good idea to make a new namespace for this part of Berkeley ?
If so, where is a good place for that.
Any other solution ?
Edit: Looks like i solved this...
#define DBTYPE BDBTYPE
(got this from the forum)
I noticed, saving key.data with less than 4 number of digits causes my Berkeley DB to save the key.data as hexadecimal.
With 4 or more number of digits, Berkeley is storing the actual value.
Is this conventional ?
Thanks in advance
Edited by: 976684 on 20.12.2012 06:32
Edited by: 976684 on 20.12.2012 23:29