Skip to content

Commit

Permalink
Update itemdb.d
Browse files Browse the repository at this point in the history
* Correct spelling
  • Loading branch information
abraunegg committed Dec 26, 2024
1 parent 0e7315e commit ebbf995
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/itemdb.d
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ final class ItemDatabase {
string selectItemByRemoteIdStmt;
string selectItemByRemoteDriveIdStmt;
string selectItemByParentIdStmt;
string selctRemoteTypeByNameStmt;
string selctRemoteTypeByRemoteDriveIdStmt;
string selectRemoteTypeByNameStmt;
string selectRemoteTypeByRemoteDriveIdStmt;
string deleteItemByIdStmt;
bool databaseInitialised = false;
private Mutex databaseLock;
Expand Down Expand Up @@ -361,13 +361,13 @@ final class ItemDatabase {
FROM item
WHERE remoteDriveId = ?1
";
selctRemoteTypeByNameStmt = "
selectRemoteTypeByNameStmt = "
SELECT *
FROM item
WHERE type = 'remote'
AND name = ?1
";
selctRemoteTypeByRemoteDriveIdStmt = "
selectRemoteTypeByRemoteDriveIdStmt = "
SELECT *
FROM item
WHERE type = 'remote'
Expand Down Expand Up @@ -616,7 +616,7 @@ final class ItemDatabase {
// This should return the 'remote' DB entry for the given 'name'
bool selectByRemoteEntryByName(const(char)[] entryName, out Item item) {
synchronized(databaseLock) {
auto p = db.prepare(selctRemoteTypeByNameStmt);
auto p = db.prepare(selectRemoteTypeByNameStmt);
scope(exit) p.finalise(); // Ensure that the prepared statement is finalised after execution.
try {
p.bind(1, entryName);
Expand All @@ -636,7 +636,7 @@ final class ItemDatabase {
// This should return the 'remote' DB entry for the given 'remoteDriveId'
bool selctRemoteTypeByRemoteDriveId(const(char)[] entryName, out Item item) {

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

selct is not a recognized word. (unrecognized-spelling)
synchronized(databaseLock) {
auto p = db.prepare(selctRemoteTypeByRemoteDriveIdStmt);
auto p = db.prepare(selectRemoteTypeByRemoteDriveIdStmt);
scope(exit) p.finalise(); // Ensure that the prepared statement is finalised after execution.
try {
p.bind(1, entryName);
Expand Down

0 comments on commit ebbf995

Please sign in to comment.