angel_orm_postgres 1.0.0

angel_orm_postgres #

PostgreSQL support for Angel's ORM.

For documentation about the ORM, head to the main project repo:

1.0.0 #

  • Bump to 1.0.0. This package has actually been stable for several months.

1.0.0-dev.4 #

  • Port tests to use angel_orm_test.

1.0.0-dev.3 #

  • Support for tableName.

1.0.0-dev.2 #

  • Add optional logging.

1.0.0-dev.1 #

  • Changes to work with package:angel_orm@2.0.0-dev.15.

1.0.0-dev #

  • First version.


import 'dart:io';
import 'package:angel_orm_postgres/angel_orm_postgres.dart';
import 'package:postgres/postgres.dart';

main() async {
  var executor = new PostgreSqlExecutorPool(Platform.numberOfProcessors, () {
    return new PostgreSQLConnection('localhost', 5432, 'angel_orm_test');

  var rows = await executor.query('users', 'SELECT * FROM users', {});

Use this package as a library

1. Depend on it

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

  angel_orm_postgres: ^1.0.0

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:angel_orm_postgres/angel_orm_postgres.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health suggestions

Fix lib/angel_orm_postgres.dart. (-2.96 points)

Analysis of lib/angel_orm_postgres.dart reported 6 hints, including:

line 87 col 34: Unnecessary new keyword.

line 90 col 17: Unnecessary new keyword.

line 96 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 97 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 103 col 45: Unnecessary new keyword.

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).


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.1.2 <3.0.0
angel_orm ^2.0.0-dev 2.0.2 2.1.0-beta.3
logging ^0.11.0 0.11.4
pool ^1.0.0 1.4.0
postgres ^1.0.0 1.0.2 2.1.0
Transitive dependencies
async 2.4.0
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
intl 0.15.8 0.16.1
meta 1.1.8
path 1.6.4
source_span 1.6.0
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
test ^1.0.0