Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
04cc1bd
Basic MongoDB replication structure.
rkistner Sep 10, 2024
4ae6b23
Support resuming; multi-document operations.
rkistner Sep 12, 2024
bed97eb
Workaround for transaction boundaries; filter ns in pipeline.
rkistner Sep 13, 2024
f68a6ec
Proper initial snapshot + streaming afterwards.
rkistner Sep 13, 2024
9d68d5c
Use _id directly as replica identity.
rkistner Sep 16, 2024
5cf1474
Configurable defaultSchema.
rkistner Sep 16, 2024
787ff88
Merge branch 'configurable-default-schema' into mongodb-poc
rkistner Sep 16, 2024
e36f306
Fix merge conflicts.
rkistner Sep 16, 2024
3facc2f
Fix Dockerfile.
rkistner Sep 16, 2024
505e728
Fix and test mongo data type conversion.
rkistner Sep 16, 2024
ae89a0d
More mongo format tests.
rkistner Sep 17, 2024
a2857bf
Fix initial snapshot; initial change-stream tests.
rkistner Sep 17, 2024
a9da521
Record keepalive events.
rkistner Sep 17, 2024
aac8101
Another fix; basic replication tests passing.
rkistner Sep 17, 2024
6a3b1e4
Handle collection drop and rename events.
rkistner Sep 17, 2024
9f1de16
Handle replace event.
rkistner Sep 17, 2024
64bb4f4
Handle missing fullDocument correctly.
rkistner Sep 17, 2024
834aa18
Improve keepalive stability.
rkistner Sep 17, 2024
00a9ed9
Merge remote-tracking branch 'origin/configurable-default-schema' int…
rkistner Sep 17, 2024
a31b727
Use checkpoints for standard replication.
rkistner Sep 17, 2024
594acc4
Support wildcard table patterns.
rkistner Sep 17, 2024
ef65356
Fix merge issue.
rkistner Sep 17, 2024
6f54a28
Add changeset.
rkistner Sep 19, 2024
9725fac
Merge remote-tracking branch 'origin/feat/modular-replication-archite…
rkistner Sep 19, 2024
e9bf63e
Fix aborting logic.
rkistner Sep 23, 2024
03a18c7
Normalize mongo connection parameters.
rkistner Sep 23, 2024
f428736
Remove error message when closing a ChangStreamReplicationJob.
rkistner Sep 23, 2024
9de2d35
Support M0 clusters; better error message on unsupported clusters.
rkistner Sep 23, 2024
3185e02
Fix sharded cluster check.
rkistner Sep 23, 2024
14b83eb
Fix initial replication regression.
rkistner Sep 23, 2024
bfea461
remove mongodb publish config restriction in order to publish dev pac…
stevensJourney Oct 1, 2024
fb52b59
need to explicitly set MongDB package access to public for publish.
stevensJourney Oct 1, 2024
6dcfe68
Merge branch 'feat/modular-replication-architecture' into mongodb-alpha
rkistner Oct 2, 2024
354f762
Fix pnpm-lock.
rkistner Oct 2, 2024
b85150c
Implement basic diagnostics apis for MongoDB.
rkistner Oct 2, 2024
b863b67
Add test for getConnectionSchema.
rkistner Oct 2, 2024
5050204
Improve schema filtering; return defaultSchema in API.
rkistner Oct 2, 2024
4a654f1
list all databases (#96)
stevensJourney Oct 4, 2024
2a442dc
Merge branch 'feat/modular-replication-architecture' into mongodb-alpha
stevensJourney Oct 7, 2024
9683172
[MongoDB] Schema Endpoint Fix (#97)
stevensJourney Oct 7, 2024
94c87aa
Merge remote-tracking branch 'origin/feat/modular-replication-archite…
rkistner Oct 14, 2024
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
6 changes: 6 additions & 0 deletions .changeset/green-peas-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@powersync/service-module-mongodb': minor
'@powersync/service-image': minor
---

Add MongoDB support (Alpha)
1 change: 1 addition & 0 deletions modules/module-mongodb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @powersync/service-module-mongodb
67 changes: 67 additions & 0 deletions modules/module-mongodb/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Functional Source License, Version 1.1, Apache 2.0 Future License

## Abbreviation

FSL-1.1-Apache-2.0

## Notice

Copyright 2023-2024 Journey Mobile, Inc.

## Terms and Conditions

### Licensor ("We")

The party offering the Software under these Terms and Conditions.

### The Software

The "Software" is each version of the software that we make available under these Terms and Conditions, as indicated by our inclusion of these Terms and Conditions with the Software.

### License Grant

Subject to your compliance with this License Grant and the Patents, Redistribution and Trademark clauses below, we hereby grant you the right to use, copy, modify, create derivative works, publicly perform, publicly display and redistribute the Software for any Permitted Purpose identified below.

### Permitted Purpose

A Permitted Purpose is any purpose other than a Competing Use. A Competing Use means making the Software available to others in a commercial product or service that:

1. substitutes for the Software;
2. substitutes for any other product or service we offer using the Software that exists as of the date we make the Software available; or
3. offers the same or substantially similar functionality as the Software.

Permitted Purposes specifically include using the Software:

1. for your internal use and access;
2. for non-commercial education;
3. for non-commercial research; and
4. in connection with professional services that you provide to a licensee using the Software in accordance with these Terms and Conditions.

### Patents

To the extent your use for a Permitted Purpose would necessarily infringe our patents, the license grant above includes a license under our patents. If you make a claim against any party that the Software infringes or contributes to the infringement of any patent, then your patent license to the Software ends immediately.

### Redistribution

The Terms and Conditions apply to all copies, modifications and derivatives of the Software.
If you redistribute any copies, modifications or derivatives of the Software, you must include a copy of or a link to these Terms and Conditions and not remove any copyright notices provided in or with the Software.

### Disclaimer

THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.

### Trademarks

Except for displaying the License Details and identifying us as the origin of the Software, you have no right under these Terms and Conditions to use our trademarks, trade names, service marks or product names.

## Grant of Future License

We hereby irrevocably grant you an additional license to use the Software under the Apache License, Version 2.0 that is effective on the second anniversary of the date we make the Software available. On or after that date, you may use the Software under the Apache License, Version 2.0, in which case the following will apply:

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
3 changes: 3 additions & 0 deletions modules/module-mongodb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PowerSync Service Module MongoDB

MongoDB replication module for PowerSync
47 changes: 47 additions & 0 deletions modules/module-mongodb/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@powersync/service-module-mongodb",
"repository": "https://github.com/powersync-ja/powersync-service",
"types": "dist/index.d.ts",
"version": "0.0.1",
"main": "dist/index.js",
"license": "FSL-1.1-Apache-2.0",
"type": "module",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc -b",
"build:tests": "tsc -b test/tsconfig.json",
"clean": "rm -rf ./lib && tsc -b --clean",
"test": "vitest --no-threads"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"./types": {
"import": "./dist/types/types.js",
"require": "./dist/types/types.js",
"default": "./dist/types/types.js"
}
},
"dependencies": {
"@powersync/lib-services-framework": "workspace:*",
"@powersync/service-core": "workspace:*",
"@powersync/service-jsonbig": "workspace:*",
"@powersync/service-sync-rules": "workspace:*",
"@powersync/service-types": "workspace:*",
"mongodb": "^6.7.0",
"ts-codec": "^1.2.2",
"uuid": "^9.0.1",
"uri-js": "^4.4.1"
},
"devDependencies": {
"@types/uuid": "^9.0.4",
"typescript": "^5.2.2",
"vitest": "^0.34.6",
"vite-tsconfig-paths": "^4.3.2"
}
}
Loading
Loading