dbTalk Databases Forums  

Binary keys

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Binary keys in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jack
 
Posts: n/a

Default Binary keys - 04-03-2006 , 04:07 AM






Hi,
Do I need to convert binary keys to ASCII before storage and retrieval?
I ask this because
I saw Dbt constructor only support string keys
Dbc (void *, ....);
Please correct me if I am wrong.
Thanks
Jack


Reply With Quote
  #2  
Old   
Jack
 
Posts: n/a

Default Re: Binary keys - 04-03-2006 , 04:30 AM






Or maybe I am really wrong...

Thanks
Jack


Reply With Quote
  #3  
Old   
agorrod@gmail.com
 
Posts: n/a

Default Re: Binary keys - 04-03-2006 , 04:54 PM



The keys do not need to be in ASCII form.
The constructor signature is:

Dbt(void *data, u_int32_t size);

void* is untyped data - which can be anything you like.

the signature you mention above is Dbc -- this is a cursor. Cursors can
be used for retrieving data, but do not need to be. There is no
reference to ASCII strings in cursors either.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.