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: https://github.com/angel-dart/orm

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.

example/main.dart

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', {});
  print(rows);
}

Use this package as a library

1. Depend on it

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


dependencies:
  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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
68
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
82
Learn more about scoring.

We analyzed this package on Jul 22, 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:angel_orm_postgres/angel_orm_postgres.dart with components: io.

Health suggestions

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

Analysis of lib/angel_orm_postgres.dart reported 2 hints:

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.

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

Dependencies

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.1
logging ^0.11.0 0.11.3+2
pool ^1.0.0 1.4.0
postgres ^1.0.0 1.0.2 2.0.0-dev1.0
Transitive dependencies
async 2.3.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
intl 0.15.8
meta 1.1.7
path 1.6.2
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
angel_orm_test
test ^1.0.0

Admin