remove unused DB methods (for now)

This commit is contained in:
2025-06-05 20:00:51 -06:00
parent ea227fe0b8
commit 340bceee31
3 changed files with 6 additions and 44 deletions

View File

@@ -19,7 +19,7 @@ import {
import { logger } from "../../utils/logger";
interface QueuedOperation {
type: "run" | "query" | "getOneRow" | "getAll";
type: "run" | "query";
sql: string;
params: unknown[];
resolve: (value: unknown) => void;
@@ -145,26 +145,12 @@ export class CapacitorPlatformService implements PlatformService {
);
result = {
columns: [], // SQLite plugin doesn't provide column names
values: (queryResult.values || []).map((row) => Object.values(row)),
values: (queryResult.values || []).map((row) =>
Object.values(row),
),
};
break;
}
case "getOneRow": {
const oneRowResult = await this.db.query(
operation.sql,
operation.params,
);
result = oneRowResult.values?.[0];
break;
}
case "getAll": {
const allResult = await this.db.query(
operation.sql,
operation.params,
);
result = allResult.values || [];
break;
}
}
operation.resolve(result);
} catch (error) {