Mercurial > dedupe
comparison MemoryDBLink.cpp @ 92:f49023c61dac
Support for bulk insertion.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Mon, 21 Oct 2013 20:03:39 +0200 |
| parents | af7962f3274b |
| children | 6c6f3a5f96ea |
comparison
equal
deleted
inserted
replaced
| 91:a5788991ca9f | 92:f49023c61dac |
|---|---|
| 1 #include "MemoryDBLink.hpp" | 1 #include "MemoryDBLink.hpp" |
| 2 #include "Exception/ValueExistsException.hpp" | 2 #include "Exception/ValueExistsException.hpp" |
| 3 #include <QtCore/QStringList> | 3 #include <QtCore/QStringList> |
| 4 | 4 |
| 5 void MemoryDBLink::addFile(const QString& path, quint64 size, | 5 void MemoryDBLink::addFile(const QString& path, quint64 size, |
| 6 const QDateTime& dtime, const QByteArray& hash) | 6 const QDateTime& dtime, const QByteArray& hash, bool) |
| 7 { | 7 { |
| 8 addFile(DBInfo(path, size, dtime, hash)); | 8 addFile(DBInfo(path, size, dtime, hash)); |
| 9 } | 9 } |
| 10 | 10 |
| 11 bool MemoryDBLink::tryAddFile(const DBInfo& dbinfo) | 11 bool MemoryDBLink::tryAddFile(const DBInfo& dbinfo) |
| 83 } | 83 } |
| 84 return NONE; | 84 return NONE; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void MemoryDBLink::updateFile(const QString& path, quint64 size, | 87 void MemoryDBLink::updateFile(const QString& path, quint64 size, |
| 88 const QDateTime& dtime, const QByteArray& hash) | 88 const QDateTime& dtime, const QByteArray& hash, |
| 89 bool) | |
| 89 { | 90 { |
| 90 updateFile(DBInfo(path, size, dtime, hash)); | 91 updateFile(DBInfo(path, size, dtime, hash)); |
| 91 } | 92 } |
| 92 | 93 |
| 93 void MemoryDBLink::updateFile(const DBInfo& dbinfo) | 94 void MemoryDBLink::updateFile(const DBInfo& dbinfo) |
