File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
packages/powersync-sdk-common/src/client Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,16 @@ import { EventIterator } from 'event-iterator';
22
22
export interface PowerSyncDatabaseOptions {
23
23
schema : Schema ;
24
24
database : DBAdapter ;
25
+ /**
26
+ * Delay for retrying sync streaming operations
27
+ * from the PowerSync backend after an error occurs.
28
+ */
25
29
retryDelay ?: number ;
30
+ /**
31
+ * Backend Connector CRUD operations are throttled
32
+ * to occur at most every `crudUploadThrottleMs`
33
+ * milliseconds.
34
+ */
26
35
crudUploadThrottleMs ?: number ;
27
36
logger ?: ILogger ;
28
37
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { DBAdapter } from '../db/DBAdapter';
2
2
import { Schema } from '../db/schema/Schema' ;
3
3
import { AbstractPowerSyncDatabase , PowerSyncDatabaseOptions } from './AbstractPowerSyncDatabase' ;
4
4
5
- export interface PowerSyncOpenFactoryOptions {
5
+ export interface PowerSyncOpenFactoryOptions extends Partial < PowerSyncDatabaseOptions > {
6
6
schema : Schema ;
7
7
/**
8
8
* Filename for the database.
@@ -26,7 +26,8 @@ export abstract class AbstractPowerSyncDatabaseOpenFactory {
26
26
generateOptions ( ) : PowerSyncDatabaseOptions {
27
27
return {
28
28
database : this . openDB ( ) ,
29
- schema : this . schema
29
+ schema : this . schema ,
30
+ ...this . options
30
31
} ;
31
32
}
32
33
You can’t perform that action at this time.
0 commit comments