|
|
@ -5,10 +5,7 @@ import { |
|
|
|
} from "../PlatformService"; |
|
|
|
import { logger } from "../../utils/logger"; |
|
|
|
import { QueryExecResult } from "@/interfaces/database"; |
|
|
|
import { |
|
|
|
SQLiteConnection, |
|
|
|
SQLiteDBConnection, |
|
|
|
} from "@capacitor-community/sqlite"; |
|
|
|
import { SQLiteDBConnection } from "@capacitor-community/sqlite"; |
|
|
|
import { DEFAULT_ENDORSER_API_SERVER } from "@/constants/app"; |
|
|
|
import { DatabaseConnectionPool } from "../database/ConnectionPool"; |
|
|
|
|
|
|
@ -30,9 +27,6 @@ export class ElectronPlatformService implements PlatformService { |
|
|
|
private connection: SQLiteDBConnection | null = null; |
|
|
|
private connectionPool: DatabaseConnectionPool; |
|
|
|
private initializationPromise: Promise<void> | null = null; |
|
|
|
private dbName = "timesafari"; |
|
|
|
private readonly MAX_RETRIES = 3; |
|
|
|
private readonly RETRY_DELAY = 1000; // 1 second
|
|
|
|
private dbFatalError = false; |
|
|
|
|
|
|
|
constructor() { |
|
|
|