access 1.1.0+1

Access #

A simple database utility for the entity library.

Build Status

Use #

access((access) async {
  await for (final row in access.query('select ...')) {
    ...
  }
  ...
  await access.execute('update...');
})
//transactions ends here; roll back if an uncaught exception is thrown
.catchError((ex, st) {
  ...
});

Who Uses #

  • Quire - a simple, collaborative, multi-level task management tool.
  • Keikai - a sophisticated spreadsheet for big data

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  access: ^1.1.0+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:access/access.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
58
Health:
Code health derived from static analysis. [more]
56
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
56
Learn more about scoring.

We analyzed this package on Aug 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, other

Primary library: package:access/access.dart with components: io.

Health suggestions

Fix lib/access.dart. (-24.85 points)

Analysis of lib/access.dart reported 57 hints, including:

line 61 col 13: Don't type annotate initializing formals.

line 77 col 1: Prefer using /// for doc comments.

line 119 col 7: DO use curly braces for all flow control structures.

line 137 col 1: Prefer using /// for doc comments.

line 149 col 3: Prefer using /// for doc comments.

Fix lib/dbtool.dart. (-19.39 points)

Analysis of lib/dbtool.dart reported 43 hints, including:

line 21 col 1: Prefer using /// for doc comments.

line 33 col 50: Use = to separate a named parameter from its default value.

line 42 col 57: Use = to separate a named parameter from its default value.

line 43 col 39: Use = to separate a named parameter from its default value.

line 74 col 12: Don't type annotate initializing formals.

Fix lib/src/dbtool/dbtool_create.dart. (-7.24 points)

Analysis of lib/src/dbtool/dbtool_create.dart reported 15 hints, including:

line 14 col 5: DO use curly braces for all flow control structures.

line 16 col 5: DO use curly braces for all flow control structures.

line 19 col 5: DO use curly braces for all flow control structures.

line 21 col 5: DO use curly braces for all flow control structures.

line 63 col 16: DO use curly braces for all flow control structures.

Fix lib/src/dbtool/dbtool_purge.dart. (-1 points)

Analysis of lib/src/dbtool/dbtool_purge.dart reported 2 hints:

line 21 col 7: DO use curly braces for all flow control structures.

line 47 col 9: DO use curly braces for all flow control structures.

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 2 dependencies without version constraints. Specify version ranges for the following dependencies: entity, postgresql2.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and access.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
entity >=0.7.0 1.5.0
logging >=0.11.0 <2.0.0 0.11.3+2
postgresql2 >=0.5.0 0.5.1+1
rikulo_commons >=3.0.0 <4.0.0 3.2.1
Transitive dependencies
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.1+1
mime 0.9.6+3
typed_data 1.1.6
Dev dependencies
test any