embla_trestle 0.3.0 copy "embla_trestle: ^0.3.0" to clipboard
embla_trestle: ^0.3.0 copied to clipboard

Dart 1 only

Trestle integration with Embla

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;
}
0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Trestle integration with Embla

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

embla, trestle

More

Packages that depend on embla_trestle