embla_trestle 0.3.0

  • README.md
  • Installing
  • Versions
  • 40

Trestle bootstrapper for Embla

Usage

import 'package:embla/http.dart';
import 'package:embla_trestle/embla_trestle.dart';

export 'package:embla/bootstrap.dart';

get embla => [
  new DatabaseBootstrapper(
    // You can choose between multiple drivers. Check out the Trestle readme.
    driver: new MySqlDriver(database: 'my_database')
  ),

  new HttpBootstrapper(pipeline: pipe(
    handler((Repository<Post> posts) {
      return posts.where((post) => post.id > 10);
    })
  ))
];

class Post extends Model {
  @field String title;
  @field String body;
}

1. Depend on it

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


dependencies:
  embla_trestle: "^0.3.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:embla_trestle/embla_trestle.dart';
        
Version Uploaded Documentation Archive
0.3.0 Sep 16, 2016 Go to the documentation of embla_trestle 0.3.0 Download embla_trestle 0.3.0 archive
0.2.0 Mar 10, 2016 Go to the documentation of embla_trestle 0.2.0 Download embla_trestle 0.2.0 archive
0.1.2 Mar 10, 2016 Go to the documentation of embla_trestle 0.1.2 Download embla_trestle 0.1.2 archive
0.1.1 Mar 4, 2016 Go to the documentation of embla_trestle 0.1.1 Download embla_trestle 0.1.1 archive
0.1.0 Mar 4, 2016 Go to the documentation of embla_trestle 0.1.0 Download embla_trestle 0.1.0 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
10 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
32 / 100
Overall score:
Weighted score of the above. [more]
40
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:embla_trestle/embla_trestle.dart.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use embla_trestle.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/embla_trestle.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.12.0 <2.0.0
embla ^0.2.3 0.2.3
trestle ^0.10.0 0.10.0 0.11.1
Transitive dependencies
args 0.13.7 1.4.2
async 1.13.3 2.0.6
charcode 1.1.1
collection 1.14.9
convert 1.1.1 2.0.1
crypto 0.9.2+1 2.0.2+1
http 0.11.3+16
http_parser 3.1.1
logging 0.11.3+1
mime 0.9.6
options_file 0.11.0
path 1.5.1
postgresql 0.3.4+1
shelf 0.6.8 0.7.2
shelf_static 0.2.7
source_span 1.4.0
sqlite 0.4.2
sqljocky 0.14.1
stack_trace 1.9.2
stream_channel 1.6.5
string_scanner 1.0.2
typed_data 1.1.5
watcher 0.9.7+7
yaml 2.1.13