| 
						
						
							
								
							
						
						
					 | 
					@ -236,6 +236,10 @@ export class CapacitorPlatformService implements PlatformService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      throw new Error("Database not initialized"); | 
					 | 
					 | 
					      throw new Error("Database not initialized"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    const sqlExec: (sql: string) => Promise<capSQLiteChanges> = | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.db.execute.bind(this.db); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    const sqlQuery: (sql: string) => Promise<DBSQLiteValues> = | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.db.query.bind(this.db); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const extractMigrationNames: (result: DBSQLiteValues) => Set<string> = ( | 
					 | 
					 | 
					    const extractMigrationNames: (result: DBSQLiteValues) => Set<string> = ( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      result, | 
					 | 
					 | 
					      result, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ) => { | 
					 | 
					 | 
					    ) => { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -243,10 +247,6 @@ export class CapacitorPlatformService implements PlatformService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        result.values?.map((row: { name: string }) => row.name) || []; | 
					 | 
					 | 
					        result.values?.map((row: { name: string }) => row.name) || []; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      return new Set(names); | 
					 | 
					 | 
					      return new Set(names); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }; | 
					 | 
					 | 
					    }; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const sqlExec: (sql: string) => Promise<capSQLiteChanges> = | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      this.db.execute.bind(this.db); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const sqlQuery: (sql: string) => Promise<DBSQLiteValues> = | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      this.db.query.bind(this.db); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    runMigrations(sqlExec, sqlQuery, extractMigrationNames); | 
					 | 
					 | 
					    runMigrations(sqlExec, sqlQuery, extractMigrationNames); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |