Changeset 15647

Show
Ignore:
Timestamp:
22.05.2008 15:49:18 (11 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 modified

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;