postgres_utils 1.0.0 copy "postgres_utils: ^1.0.0" to clipboard
postgres_utils: ^1.0.0 copied to clipboard

A few utils for working with postgresql databases.

110/ 160
pub points
58
downloads

We analyzed this package 23 hours ago, and awarded it 110 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

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

3 out of 82 API elements (3.7 %) 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: postgres_utils.CustomBind, postgres_utils.CustomBind.CustomBind.new, postgres_utils.CustomBind.formatString, postgres_utils.CustomBind.type, postgres_utils.CustomBind.value.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 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:postgres_utils/postgres_utils.dart that imports:
  • package:postgres_utils/src/tables/base_tables.dart that imports:
  • package:postgres/postgres.dart that imports:
  • package:postgres/src/substituter.dart that imports:
  • package:postgres/src/query.dart that imports:
  • package:postgres/src/execution_context.dart that imports:
  • package:postgres/src/connection.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:postgres_utils/postgres_utils.dart that imports:
  • package:postgres_utils/src/tables/base_tables.dart that imports:
  • package:postgres/postgres.dart that imports:
  • package:postgres/src/substituter.dart that imports:
  • package:postgres/src/query.dart that imports:
  • package:postgres/src/execution_context.dart that imports:
  • package:postgres/src/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.cn/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

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

Found 3 issues. Showing the first 2:

INFO: 'Optional' is deprecated and shouldn't be used. Generally, migrate to a nullable type.

lib/src/database_access.dart:97:57

   ╷
97 │     assert(!setContainsOptional || set.values.whereType<Optional>().isEmpty);
   │                                                         ^^^^^^^^
   ╵

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

INFO: 'Optional' is deprecated and shouldn't be used. Generally, migrate to a nullable type.

lib/src/database_access.dart:122:12

    ╷
122 │   /// all [Optional] values with their actual value.
    │            ^^^^^^^^
    ╵

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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
clock ^1.1.0 1.1.2 1.1.2
json_annotation ^4.0.1 4.9.0 4.9.0
logging ^1.0.0 1.3.0 1.3.0
meta ^1.3.0 1.17.0 1.17.0
postgres ^2.3.0 2.6.4 3.5.7
quiver ^3.0.0 3.2.2 3.2.2
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
buffer - 1.2.3 1.2.3
charcode - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
crypto - 3.0.6 3.0.6
matcher - 0.12.17 0.12.17
path - 1.9.1 1.9.1
pool - 1.5.2 1.5.2
sasl_scram - 0.1.1 0.1.1
saslprep - 1.0.3 1.0.3
source_span - 1.10.1 1.10.1
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.7 0.7.7
typed_data - 1.4.0 1.4.0
unorm_dart - 0.3.2 0.3.2

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

The constraint `^2.3.0` on postgres does not support the stable version `3.0.0`.

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

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_FUNCTION - lib/src/config.g.dart:9:54 - The function '$checkedCreate' isn't defined.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.23, Dart 3.9.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
110
points
58
downloads

Publisher

verified publishercodeux.design

Weekly Downloads

A few utils for working with postgresql databases.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

clock, json_annotation, logging, meta, postgres, quiver

More

Packages that depend on postgres_utils