s3db.js 7.2.0 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PLUGINS.md +200 -10
- package/dist/s3db.cjs.js +149 -1458
- package/dist/s3db.cjs.min.js +1 -1
- package/dist/s3db.d.ts +14 -15
- package/dist/s3db.es.js +150 -1459
- package/dist/s3db.es.min.js +1 -1
- package/dist/s3db.iife.js +149 -1458
- package/dist/s3db.iife.min.js +1 -1
- package/package.json +19 -8
- package/src/behaviors/body-only.js +2 -2
- package/src/behaviors/truncate-data.js +2 -2
- package/src/client.class.js +1 -1
- package/src/database.class.js +1 -1
- package/src/errors.js +1 -1
- package/src/plugins/audit.plugin.js +5 -5
- package/src/plugins/cache/filesystem-cache.class.js +661 -0
- package/src/plugins/cache/index.js +4 -0
- package/src/plugins/cache/partition-aware-filesystem-cache.class.js +480 -0
- package/src/plugins/cache.plugin.js +159 -9
- package/src/plugins/consumers/index.js +3 -3
- package/src/plugins/consumers/sqs-consumer.js +2 -2
- package/src/plugins/fulltext.plugin.js +5 -5
- package/src/plugins/metrics.plugin.js +2 -2
- package/src/plugins/queue-consumer.plugin.js +3 -3
- package/src/plugins/replicator.plugin.js +259 -362
- package/src/plugins/replicators/bigquery-replicator.class.js +102 -68
- package/src/plugins/replicators/postgres-replicator.class.js +19 -109
- package/src/plugins/replicators/s3db-replicator.class.js +56 -68
- package/src/plugins/replicators/sqs-replicator.class.js +34 -121
- package/src/resource.class.js +14 -14
- package/src/s3db.d.ts +14 -15
- package/src/schema.class.js +3 -3
package/dist/s3db.d.ts
CHANGED
|
@@ -418,23 +418,22 @@ declare module 's3db.js' {
|
|
|
418
418
|
export interface BigQueryReplicatorConfig {
|
|
419
419
|
projectId: string;
|
|
420
420
|
datasetId: string;
|
|
421
|
-
keyFilename?: string;
|
|
422
421
|
credentials?: Record<string, any>;
|
|
423
|
-
|
|
424
|
-
|
|
422
|
+
location?: string;
|
|
423
|
+
logTable?: string;
|
|
425
424
|
batchSize?: number;
|
|
426
425
|
maxRetries?: number;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
426
|
+
writeDisposition?: string;
|
|
427
|
+
createDisposition?: string;
|
|
428
|
+
tableMapping?: Record<string, string>;
|
|
429
|
+
logOperations?: boolean;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/** BigQuery Resource Configuration */
|
|
433
|
+
export interface BigQueryResourceConfig {
|
|
434
|
+
table: string;
|
|
435
|
+
actions?: ('insert' | 'update' | 'delete')[];
|
|
436
|
+
transform?: (data: any) => any;
|
|
438
437
|
}
|
|
439
438
|
|
|
440
439
|
/** Postgres Replicator config */
|
|
@@ -1041,7 +1040,7 @@ declare module 's3db.js' {
|
|
|
1041
1040
|
|
|
1042
1041
|
/** BigQuery Replicator class */
|
|
1043
1042
|
export class BigqueryReplicator extends BaseReplicator {
|
|
1044
|
-
constructor(config: BigQueryReplicatorConfig);
|
|
1043
|
+
constructor(config: BigQueryReplicatorConfig, resources: Record<string, string | BigQueryResourceConfig | BigQueryResourceConfig[]>);
|
|
1045
1044
|
}
|
|
1046
1045
|
|
|
1047
1046
|
/** Postgres Replicator class */
|