Move domain items up to lib
- WIP on converting more complex queries
This commit is contained in:
1 parent
f7f5dba795
commit
610ab67475
16 files changed
+189
-167
No files matched your search
+3
-1
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use BitBadger\Documents\DocumentException;
|
||||
use BitBadger\Documents\SQLite\Custom;
|
||||
use BitBadger\Documents\SQLite\Results;
|
||||
use FeedReaderCentral\Data;
|
||||
@@ -47,8 +48,9 @@ function rebuild_index(): void
|
||||
}
|
||||
printfn('Rebuilding search index...');
|
||||
Custom::nonQuery("INSERT INTO item_search (item_search) VALUES ('rebuild')", [], $db);
|
||||
// $db->exec("INSERT INTO item_search (item_search) VALUES ('rebuild')");
|
||||
printfn(PHP_EOL . 'Search index rebuilt');
|
||||
} catch (DocumentException $ex) {
|
||||
printfn("$ex");
|
||||
} finally {
|
||||
$db->close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user