db_lib 0.0.1 copy "db_lib: ^0.0.1" to clipboard
db_lib: ^0.0.1 copied to clipboard

This library will be giving you the singleton direct instance of database which you can use in project directly (compatibility with mobile and web).

1
likes
120/ 160
pub points
29
downloads

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

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Homepage URL doesn't exist.

At the time of the analysis https://gitlab.com/m9328/db_lib.git was unreachable. Make sure that the website is reachable via HEAD requests.

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: db_lib,
    • contains a version property, and,
    • does not contain a publish_to property.

Unable to access git repository: Failed to run remote show origin.

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: AGPL-3.0.

failed
Provide documentation
0 / 20trigger folding of the section

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

0 out of 23 API elements (0.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: db_lib, db_lib.CreateTableModel, db_lib.CreateTableModel.CreateTableModel, db_lib.CreateTableModel.columns, db_lib.CreateTableModel.primaryKey.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

  • ✓ Web

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:db_lib/db_lib.dart that imports:
  • package:db_lib/mobile_db_connector.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:db_lib/db_lib.dart that imports:
  • package:db_lib/mobile_db_connector.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.

0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional 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

INFO: The import of 'package:idb_shim/idb.dart' is unnecessary because all of the used elements are also provided by the import of 'package:idb_shim/idb_browser.dart'.

lib/web_db_connector.dart:2:8

  ╷
2 │ import 'package:idb_shim/idb.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/web_db_connector.dart

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

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

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
idb_shim ^2.0.1 2.6.1+7 2.6.1+7
path ^1.8.1 1.9.1 1.9.1
sqflite ^2.0.2 2.4.1 2.4.1
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.4.0
collection - 1.19.0 1.19.1
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
sembast - 3.8.0+1 3.8.0+1
sky_engine - 0.0.0 0.0.0
sqflite_android - 2.4.0 2.4.0
sqflite_common - 2.5.4+6 2.5.4+6
sqflite_darwin - 2.4.1 2.4.1
sqflite_platform_interface - 2.4.0 2.4.0
synchronized - 3.3.0+3 3.3.0+3
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0

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

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.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

1
likes
120
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

This library will be giving you the singleton direct instance of database which you can use in project directly (compatibility with mobile and web).

Repository (GitLab)
View/report issues

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

flutter, idb_shim, path, sqflite

More

Packages that depend on db_lib