Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/common/src/client/AbstractPowerSyncDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
return this.connectionManager.syncStreamImplementation;
}

get connector() {
return this.connectionManager.connector;
}

get connectionOptions() {
return this.connectionManager.connectionOptions;
}

protected _schema: Schema;

private _database: DBAdapter;
Expand Down
8 changes: 8 additions & 0 deletions packages/common/src/client/ConnectionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ export class ConnectionManager extends BaseObserver<ConnectionManagerListener> {
this.syncDisposer = null;
}

get connector() {
return this.pendingConnectionOptions?.connector ?? null;
}

get connectionOptions() {
return this.pendingConnectionOptions?.options ?? null;
}

get logger() {
return this.options.logger;
}
Expand Down
Loading