Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User asheraslan's Avatar
    Join Date
    Dec 2004
    Posts
    11
    Hello Guys,

    My app uses different types of persistent data (setting) that I would like to save in one DB table.
    The values I want to keep in the DB are from different kind of types (e.g. int, strings, bin…)

    I thought about create columns for each type that I need(IntCol, StrCol, BinCol…) but it will be a waste of space since I will only use one columns in a row. I also thought about the option of keep them all as binary type but then I will have to do the right casting for each value.

    Is anybody can advice for a better why to do it?

    Thanks,
    Asher

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    Have you considered stores ? For example CDictionaryStore works pretty well on saving settings data.

    yucca

  3. #3
    Registered User asheraslan's Avatar
    Join Date
    Dec 2004
    Posts
    11
    Thanks for your advice!

    Asher

  4. #4
    Regular Contributor Mr. Buttington's Avatar
    Join Date
    Jan 2007
    Posts
    155
    The dictionary store would be usful if you need independant access to the settings (i.e. you want to save/restore one without accessing the others). But if you save/restore them all in one go you could also simply save them in a plain old file (accessed directly or via RFileRead/WriteStream).

Similar Threads

  1. How to create a contact item in 7650 SDK?
    By mparkkon in forum Symbian C++
    Replies: 15
    Last Post: 2008-09-02, 07:39
  2. Synchronisation algorithm between Nokia and PC database
    By acomber in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2004-01-23, 19:08
  3. database problem
    By sridhar_ratna in forum Symbian C++
    Replies: 1
    Last Post: 2003-04-18, 09:07
  4. Create My Own DataBase
    By DanMic1973Ephrat in forum Symbian C++
    Replies: 1
    Last Post: 2002-11-07, 00:07
  5. Creating and Delete databases
    By -kevbo- in forum Symbian C++
    Replies: 1
    Last Post: 2001-12-13, 12:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved