mongo_db_driver 0.1.0-1.3.dev copy "mongo_db_driver: ^0.1.0-1.3.dev" to clipboard
mongo_db_driver: ^0.1.0-1.3.dev copied to clipboard

MongoDB driver, implemented in pure Dart. All CRUD operations, aggregation pipeline and more!

8
likes
140/ 160
pub points
42%
popularity

We analyzed this package 9 days ago, and awarded it 140 pub points (of a possible 160):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

1150 out of 3146 API elements (36.6 %) have documentation comments.

Some symbols that are missing documentation: mongo_db_driver, mongo_db_driver.$addFields.$addFields.raw, mongo_db_driver.$bucket.$bucket.raw, mongo_db_driver.$bucketAuto.$bucketAuto.raw, mongo_db_driver.$changeStream.$changeStream.raw.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:mongo_db_driver/mongo_db_driver.dart that imports:
  • package:mongo_db_driver/src/session/session_exp.dart that imports:
  • package:mongo_db_driver/src/session/transaction_info.dart that imports:
  • package:mongo_db_driver/src/session/transaction_options.dart that imports:
  • package:mongo_db_driver/src/topology/abstract/topology.dart that imports:
  • package:mongo_db_driver/src/topology/server.dart that imports:
  • package:mongo_db_driver/src/core/network/connection_pool.dart that imports:
  • package:mongo_db_driver/src/core/network/abstract/connection_base.dart that imports:
  • package:mongo_db_driver/src/core/network/secure_connection.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:mongo_db_driver/mongo_db_driver.dart that imports:
  • package:mongo_db_driver/src/session/session_exp.dart that imports:
  • package:mongo_db_driver/src/session/transaction_info.dart that imports:
  • package:mongo_db_driver/src/session/transaction_options.dart that imports:
  • package:mongo_db_driver/src/topology/abstract/topology.dart that imports:
  • package:mongo_db_driver/src/topology/server.dart that imports:
  • package:mongo_db_driver/src/core/network/connection_pool.dart that imports:
  • package:mongo_db_driver/src/core/network/abstract/connection_base.dart that imports:
  • package:mongo_db_driver/src/core/network/secure_connection.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 8 issues. Showing the first 2:

INFO: 'waitQueueMultiple' is deprecated and shouldn't be used. See specs.

lib/src/core/network/connection_pool.dart:42:45

   ╷
42 │   int get waitQueueMultiple => poolSettings.waitQueueMultiple;
   │                                             ^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/core/network/connection_pool.dart

INFO: 'waitQueueMultiple' is deprecated and shouldn't be used. See specs.

lib/src/utils/decode_url_parameters.dart:119:42

    ╷
119 │           options.connectionPoolSettings.waitQueueMultiple = intValue;
    │                                          ^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/utils/decode_url_parameters.dart

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
basic_utils ^5.2.0 5.7.0 5.7.0
bson ^5.0.0 5.0.4 5.0.5
collection ^1.15.0 1.19.0 1.19.0
crypto ^3.0.0 3.0.5 3.0.5
decimal ^2.3.3 2.3.3 3.0.2
fixnum ^1.0.1 1.1.0 1.1.0
logging ^1.0.0 1.2.0 1.2.0
meta ^1.8.0 1.16.0 1.16.0
mongo_db_query ^0.1.0-1.6.beta 0.1.0-1.6.beta 0.1.0
path ^1.8.0 1.9.0 1.9.0
pool ^1.5.0 1.5.1 1.5.1
sasl_scram ^0.1.0 0.1.1 0.1.1
type_utils ^0.2.0 0.2.0 0.2.0
uuid ^4.1.0 4.5.1 4.5.1
vy_string_utils ^0.4.0 0.4.6 0.4.6
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
buffer - 1.2.3 1.2.3
convert - 3.1.1 3.1.1
http - 1.2.2 1.2.2
http_parser - 4.1.0 4.1.0
js - 0.7.1 0.7.1
json_annotation - 4.9.0 4.9.0
packages_extensions - 0.1.0 0.1.1
pointycastle - 3.9.1 3.9.1
power_extensions - 0.2.3 0.2.3
rational - 2.2.3 2.2.3
saslprep - 1.0.3 1.0.3
source_span - 1.10.0 1.10.0
sprintf - 7.0.0 7.0.0
stack_trace - 1.12.0 1.12.0
string_scanner - 1.3.0 1.3.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
unorm_dart - 0.3.0 0.3.0
web - 1.1.0 1.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^2.3.3` on decimal does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions decimal to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.12, Dart 3.5.3.

Check the analysis log for details.

8
likes
140
pub points
42%
popularity

Publisher

unverified uploader

MongoDB driver, implemented in pure Dart. All CRUD operations, aggregation pipeline and more!

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

www.paypal.com

License

BSD-3-Clause (license)

Dependencies

basic_utils, bson, collection, crypto, decimal, fixnum, logging, meta, mongo_db_query, path, pool, sasl_scram, type_utils, uuid, vy_string_utils

More

Packages that depend on mongo_db_driver