started mongo stuff, but it's a PITA. fuck mongo

This commit is contained in:
Pablo Martin 2025-06-02 17:24:23 +02:00
parent 4cd36ea3fc
commit 0f1bc5dff3
937 changed files with 205043 additions and 0 deletions

View file

@ -0,0 +1,14 @@
/*!
* Module dependencies.
*/
'use strict';
const Binary = require('bson').Binary;
/*!
* Module exports.
*/
module.exports = exports = Binary;

View file

@ -0,0 +1,7 @@
/*!
* ignore
*/
'use strict';
module.exports = require('bson').Decimal128;

View file

@ -0,0 +1,13 @@
/*!
* Module exports.
*/
'use strict';
exports.Collection = function() {
throw new Error('Cannot create a collection from browser library');
};
exports.Connection = function() {
throw new Error('Cannot create a connection from browser library');
};
exports.BulkWriteResult = function() {};

View file

@ -0,0 +1,29 @@
/*!
* [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId
* @constructor NodeMongoDbObjectId
* @see ObjectId
*/
'use strict';
const ObjectId = require('bson').ObjectID;
/**
* Getter for convenience with populate, see gh-6115
* @api private
*/
Object.defineProperty(ObjectId.prototype, '_id', {
enumerable: false,
configurable: true,
get: function() {
return this;
}
});
/*!
* ignore
*/
module.exports = exports = ObjectId;