postgresql2 0.5.8

Dart native
Flutter Android iOS

A temporary fork of Greg's PostgreSQL driver (xxgreg/postgresql) using conserved substitution respecting strings and @@ operators. also optimizing the pool implementation aggressivly.

3
likes
65 / 110
pub points
71 %
popularity

We analyzed this package on Oct 27, 2020, and awarded it 65 pub points (of a possible 110):

Follow Dart file conventions
5 / 20

0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:18:5

   ╷
18 │ <li><a href="http://www.dartdocs.org/documentation/postgresql2/0.5.8">API Reference</a></li>
   │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

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

  • 82 out of 198 API elements (41.4 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:postgresql2/constants.dart that imports:
  • package:postgresql2/pool.dart that imports:
  • package:postgresql2/src/pool_settings_impl.dart that imports:
  • package:postgresql2/postgresql.dart that imports:
  • package:postgresql2/src/postgresql_impl/postgresql_impl.dart that imports:
  • dart:io
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 436 issues. Showing the first 2:

INFO: Unnecessary new keyword.

lib/pool.dart:29:10

   ╷
29 │         => new PoolImpl(new PoolSettingsImpl.withDefaults(
   │ ┌──────────^
30 │ │               databaseUri: databaseUri,
31 │ │               poolName: poolName,
32 │ │               minConnections: minConnections,
33 │ │               maxConnections: maxConnections,
34 │ │               startTimeout: startTimeout,
35 │ │               stopTimeout: stopTimeout,
36 │ │               establishTimeout: establishTimeout,
37 │ │               connectionTimeout: connectionTimeout,
38 │ │               idleTimeout: idleTimeout,
39 │ │               maxLifetime: maxLifetime,
40 │ │               leakDetectionThreshold: leakDetectionThreshold,
41 │ │               testConnections: testConnections,
42 │ │               restartIfAllConnectionsLeaked: restartIfAllConnectionsLeaked,
43 │ │               applicationName: applicationName,
44 │ │               timeZone: timeZone),
45 │ │             typeConverter);
   │ └──────────────────────────^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/pool.dart

INFO: Unnecessary new keyword.

lib/pool.dart:29:23

   ╷
29 │         => new PoolImpl(new PoolSettingsImpl.withDefaults(
   │ ┌───────────────────────^
30 │ │               databaseUri: databaseUri,
31 │ │               poolName: poolName,
32 │ │               minConnections: minConnections,
33 │ │               maxConnections: maxConnections,
34 │ │               startTimeout: startTimeout,
35 │ │               stopTimeout: stopTimeout,
36 │ │               establishTimeout: establishTimeout,
37 │ │               connectionTimeout: connectionTimeout,
38 │ │               idleTimeout: idleTimeout,
39 │ │               maxLifetime: maxLifetime,
40 │ │               leakDetectionThreshold: leakDetectionThreshold,
41 │ │               testConnections: testConnections,
42 │ │               restartIfAllConnectionsLeaked: restartIfAllConnectionsLeaked,
43 │ │               applicationName: applicationName,
44 │ │               timeZone: timeZone),
   │ └─────────────────────────────────^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/pool.dart

Support up-to-date dependencies
20 / 20

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

PackageConstraintCompatibleLatest
convert>=1.0.02.1.12.1.1
crypto>=2.0.02.1.52.1.5
Transitive dependencies
PackageConstraintCompatibleLatest
charcode-1.1.31.1.3
collection-1.14.131.14.13
typed_data-1.2.01.2.0

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

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

3
likes
65
pub points
71%
popularity

A temporary fork of Greg's PostgreSQL driver (xxgreg/postgresql) using conserved substitution respecting strings and @@ operators. also optimizing the pool implementation aggressivly.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

tomyeh@rikulo.org

License

BSD (LICENSE)

Dependencies

convert, crypto

More

Packages that depend on postgresql2