drift_postgres 0.1.0 copy "drift_postgres: ^0.1.0" to clipboard
drift_postgres: ^0.1.0 copied to clipboard

Postgres implementation and APIs for the drift database package.

14
likes
120/ 160
pub points
86%
popularity

We analyzed this package 9 hours ago, and awarded it 120 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: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

41 out of 64 API elements (64.1 %) have documentation comments.

Some symbols that are missing documentation: drift.postgres.PgDatabase.impl, drift.postgres.PgDatabase.isSequential, drift.postgres.PgDatabase.logStatements, drift.postgres.PgDate.day, drift.postgres.PgDate.PgDate.fromDateTime.

10/10 points: Package has an example

OK
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:drift_postgres/drift_postgres.dart that imports:
  • package:drift_postgres/src/pg_database.dart that imports:
  • package:postgres/postgres_v3_experimental.dart that imports:
  • package:postgres/src/v3/protocol.dart that imports:
  • package:postgres/src/shared_messages.dart that imports:
  • package:postgres/src/server_messages.dart that imports:
  • package:postgres/src/query.dart that imports:
  • package:postgres/src/text_codec.dart that imports:
  • package:postgres/postgres.dart that imports:
  • package:postgres/src/execution_context.dart that imports:
  • package:postgres/src/connection.dart that imports:
  • dart:io
partial
Pass static analysis
40 / 50trigger folding of the section

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

INFO: 'UuidValue.new' is deprecated and shouldn't be used. Use UuidValue.fromString() instead. If you need to define a const UuidValue you can use UuidValue.raw(), but making sure the value is lowercase.

lib/src/types.dart:46:12

   ╷
46 │     return UuidValue(fromSql as String);
   │            ^^^^^^^^^
   ╵

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

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

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

Package Constraint Compatible Latest
collection ^1.16.0 1.19.0 1.19.0
drift ^2.0.0 2.18.0 2.18.0
meta ^1.8.0 1.15.0 1.15.0
postgres ^2.6.3 2.6.4 3.2.1
uuid ^4.1.0 4.4.0 4.4.0
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
buffer - 1.2.3 1.2.3
charcode - 1.3.1 1.3.1
convert - 3.1.1 3.1.1
crypto - 3.0.3 3.0.3
ffi - 2.1.2 2.1.2
fixnum - 1.1.0 1.1.0
js - 0.7.1 0.7.1
path - 1.9.0 1.9.0
pool - 1.5.1 1.5.1
sasl_scram - 0.1.1 0.1.1
saslprep - 1.0.3 1.0.3
sprintf - 7.0.0 7.0.0
sqlite3 - 2.4.4 2.4.4
stack_trace - 1.11.1 1.11.1
stream_channel - 2.1.2 2.1.2
typed_data - 1.3.2 1.3.2
unorm_dart - 0.3.0 0.3.0
web - 0.5.1 0.5.1

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

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

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 8 errors:

  • UNDEFINED_CLASS - lib/drift_postgres.dart:40:16 - Undefined class 'CustomSqlType'.
  • UNDEFINED_CLASS - lib/drift_postgres.dart:43:16 - Undefined class 'CustomSqlType'.
  • UNDEFINED_CLASS - lib/drift_postgres.dart:46:16 - Undefined class 'CustomSqlType'.

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.7, Dart 3.4.4.

Check the analysis log for details.

14
likes
120
pub points
86%
popularity

Publisher

verified publishersimonbinder.eu

Postgres implementation and APIs for the drift database package.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection, drift, meta, postgres, uuid

More

Packages that depend on drift_postgres