comparison OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp @ 5776:de33982a0bf4 find-refactoring

wip: started implementing Find in PostgreSQL
author Alain Mazy <am@orthanc.team>
date Fri, 13 Sep 2024 11:57:14 +0200
parents f96abfe08946
children f1ccb67fce31
comparison
equal deleted inserted replaced
5775:9af45c841f59 5776:de33982a0bf4
1804 { 1804 {
1805 // TODO: implement revisions in SQLite 1805 // TODO: implement revisions in SQLite
1806 dbCapabilities_.SetFlushToDisk(true); 1806 dbCapabilities_.SetFlushToDisk(true);
1807 dbCapabilities_.SetLabelsSupport(true); 1807 dbCapabilities_.SetLabelsSupport(true);
1808 dbCapabilities_.SetHasExtendedChanges(true); 1808 dbCapabilities_.SetHasExtendedChanges(true);
1809 dbCapabilities_.SetHasFindSupport(true);
1809 db_.Open(path); 1810 db_.Open(path);
1810 } 1811 }
1811 1812
1812 1813
1813 SQLiteDatabaseWrapper::SQLiteDatabaseWrapper() : 1814 SQLiteDatabaseWrapper::SQLiteDatabaseWrapper() :
1817 { 1818 {
1818 // TODO: implement revisions in SQLite 1819 // TODO: implement revisions in SQLite
1819 dbCapabilities_.SetFlushToDisk(true); 1820 dbCapabilities_.SetFlushToDisk(true);
1820 dbCapabilities_.SetLabelsSupport(true); 1821 dbCapabilities_.SetLabelsSupport(true);
1821 dbCapabilities_.SetHasExtendedChanges(true); 1822 dbCapabilities_.SetHasExtendedChanges(true);
1823 dbCapabilities_.SetHasFindSupport(true);
1822 db_.OpenInMemory(); 1824 db_.OpenInMemory();
1823 } 1825 }
1824 1826
1825 SQLiteDatabaseWrapper::~SQLiteDatabaseWrapper() 1827 SQLiteDatabaseWrapper::~SQLiteDatabaseWrapper()
1826 { 1828 {