You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Connecting via 'SyncStreamConnectionMethod.WEB_SOCKET' when using the 'CapacitorSQLiteAdapter' will result in poor sync performance. Use 'SyncStreamConnectionMethod.HTTP' (the default for native) instead.`
42
44
);
43
45
}
@@ -57,17 +59,20 @@ export class PowerSyncDatabase extends WebPowerSyncDatabase {
57
59
constplatform=Capacitor.getPlatform();
58
60
if(platform=='ios'||platform=='android'){
59
61
if(options.database.dbLocation){
60
-
options.logger?.warn(`
62
+
options.logger?.log(
63
+
LogLevels.warn,
64
+
`
61
65
dbLocation is ignored on iOS and Android platforms.
62
66
The database directory can be configured in the Capacitor project.
63
-
See https://github.com/capacitor-community/sqlite?tab=readme-ov-file#installation`);
67
+
See https://github.com/capacitor-community/sqlite?tab=readme-ov-file#installation`
68
+
);
64
69
}
65
-
options.logger?.debug(`Using CapacitorSQLiteAdapter for platform: ${platform}`);
70
+
options.logger?.log(LogLevels.debug,`Using CapacitorSQLiteAdapter for platform: ${platform}`);
66
71
returnnewCapacitorSQLiteAdapter({
67
72
...options.database
68
73
});
69
74
}else{
70
-
options.logger?.debug(`Using default web adapter for web platform`);
75
+
options.logger?.log(LogLevels.debug,`Using default web adapter for web platform`);
71
76
returnsuper.openDBAdapter(options);
72
77
}
73
78
}
@@ -102,9 +107,12 @@ export class PowerSyncDatabase extends WebPowerSyncDatabase {
102
107
if(this.isNativeCapacitorPlatform){
103
108
// We don't want to support multi-tab on mobile platforms.
104
109
// We technically can, but it's not a common use case and requires additional work/testing.
0 commit comments