Changeset 15647


Ignore:
Timestamp:
2008-05-22T15:49:18+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Added second setinfo() function, so sqlitedbclass can be used with history.db files.

Location:
gsdl/trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/lib/sqlitedbclass.cpp

    r15643 r15647  
    226226  }
    227227
     228  return setinfo(key, data);
     229}
     230
     231
     232// returns true on success
     233bool sqlitedbclass::setinfo (const text_t &key, const text_t &data)
     234{
    228235  // We need to do either an INSERT or UPDATE depending on whether the key already exists
    229236  if (!exists(key))
  • gsdl/trunk/lib/sqlitedbclass.h

    r15643 r15647  
    6060  bool setinfo (const text_t &key, const infodbclass &info);
    6161
     62  // returns true on success
     63  bool setinfo (const text_t &key, const text_t &data);
     64
    6265protected:
    6366  text_t openfile;
Note: See TracChangeset for help on using the changeset viewer.