Comments (2)
Sorry, I don't think this one is realistic to implement since migration scripts mutate data. Closing this.
from migrate-mongo.
This is called a Transaction.
The only way of doing this is with new support for ACID transactions inside MongoDB. Where you startTransaction
and then commit
when the transaction and all conditions are met. The only implementation at the moment for older Databases is that it Touches
the database and simulate transaction behaviour but indeed it will mutate data and then revert it on API level. So this is not something you cannot deal with...
What you suggest is really cool but it depends on the situation and it is a developer choice weather to do it or not.
This is issue is also related with #48
from migrate-mongo.
Related Issues (20)
- Close client rather than use process.exit in cli HOT 1
- SyntaxError: Unexpected token 'export' HOT 3
- Storing Migration results and ability to view them HOT 1
- migrate down Specifies the sequence of js files rollback
- Multi dotted migration file extension
- insertMany is not adding timestamps to the Collection using migration script HOT 1
- Add support for Client side field level encryption
- PR for v6
- Snyk issues for [email protected]
- TypeError: db.runCommand is not a function HOT 5
- ESM mode not compatible with migrationFileExtension in TS HOT 1
- Release 10.0.0 HOT 2
- Support custom config file
- Assigning an `_id` field with a valid mongodb ObjectID value gives a BSON version error HOT 4
- [BUG] Upgrade to v10.0.0 and cannot check migrate mongo version HOT 1
- Issue with -f/--file option: CLI looks for migration directory path in current directory instead of configuration relative
- Typescript & mongoose support HOT 1
- v7 support HOT 1
- ESM configuration module does not work under tsx
- Timestamp is updated for those scripts which are not executed properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from migrate-mongo.