vania_mongodb 1.0.0
vania_mongodb: ^1.0.0 copied to clipboard
MongoDB document query builder and service provider for Vania.
1.0.0 #
First release on the shared driver contract. MongoDB now goes through the same
DatabaseConnectionFactory as the SQL drivers instead of its own singleton.
- Requires
vania2.0.0. registerMongoDbDriver()registers aMongoConnector;Model, relations, andPaginatedResultcome frompackage:vania/database.dart.- Migrations now work on MongoDB. Core's
MongoAdapterrenders collection commands andMongoConnectordispatches them tomongo_dart, so the same migration file runs on MySQL, PostgreSQL, SQLite, and MongoDB. MongoQueryBuilderImpland its local contract stay in this package on purpose: BSON selectors and aggregation pipelines do not map onto the SQL query builder.- Mongo-specific settings live in
MongoConfighere, not in core's sharedDBConfig. - Contract-compliance tests assert this package exposes the same symbols, under the same names, as the MySQL and PostgreSQL drivers.