owl 0.4.0

Owl client libraries #

Client libraries (annotations and utilities) for the owl source code generator. It supports JSON serialization, HTTP APIs and SQL CRUD.

Usage #

A simple usage example can be found in the example project.

Warning: pre-1.0 API is subject to change. Please contact the contributors if you need migration path for early versions.

Changelog #

0.4.0 #

  • Upgraded to Dart 2 only.
  • Breaking change: package:postgresql is replaced by package:postgres.

0.2.3 #

  • Updated to Dart 2.

0.2.2 #

  • Fixed analysis_options.yaml and dependency.

Use this package as a library

1. Depend on it

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


dependencies:
  owl: ^0.4.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:owl/annotation/http.dart';
import 'package:owl/annotation/json.dart';
import 'package:owl/annotation/sql.dart';
import 'package:owl/util/http/webapp.dart';
import 'package:owl/util/json/core.dart';
import 'package:owl/util/sql/postgresql.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
25
Health:
Code health derived from static analysis. [more]
94
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
57
Learn more about scoring.

We analyzed this package on Jul 10, 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: web

Platform components identified in package: html, io.

Health suggestions

Fix lib/util/sql/postgresql.dart. (-3.45 points)

Analysis of lib/util/sql/postgresql.dart reported 7 hints, including:

line 21 col 19: Use = to separate a named parameter from its default value.

line 89 col 23: Use = to separate a named parameter from its default value.

line 119 col 17: Use = to separate a named parameter from its default value.

line 120 col 21: Use = to separate a named parameter from its default value.

line 142 col 19: Use = to separate a named parameter from its default value.

Fix lib/annotation/json.dart. (-1 points)

Analysis of lib/annotation/json.dart reported 2 hints:

line 12 col 32: Use = to separate a named parameter from its default value.

line 25 col 41: Use = to separate a named parameter from its default value.

Fix lib/annotation/sql.dart. (-1 points)

Analysis of lib/annotation/sql.dart reported 2 hints:

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

line 40 col 22: Use = to separate a named parameter from its default value.

Fix lib/util/json/core.dart. (-0.50 points)

Analysis of lib/util/json/core.dart reported 1 hint:

line 11 col 27: Use = to separate a named parameter from its default value.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (postgres).

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 owl.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
postgres ^1.0.0 1.0.2 2.0.0-dev1.0
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
typed_data 1.1.6

Admin