angel3_orm_test 8.1.1 copy "angel3_orm_test: ^8.1.1" to clipboard
angel3_orm_test: ^8.1.1 copied to clipboard

Common tests for Angel3 ORM. Reference implmentation of the generated ORM files.

example/main.dart

import 'dart:async';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_orm/angel3_orm.dart';
import 'package:angel3_orm_test/src/models/car.dart';

@Expose('/api/cars')
class CarController extends Controller {
  @Expose('/luxury')
  Future<List<Car>> getLuxuryCars(QueryExecutor connection) {
    var query = CarQuery();
    query.where
      ?..familyFriendly.equals(false)
      ..createdAt.year.greaterThanOrEqualTo(2014)
      ..make.isIn(['Ferrari', 'Lamborghini', 'Mustang', 'Lexus']);
    return query.get(connection);
  }
}
0
likes
120
pub points
0%
popularity

Publisher

verified publisherdukefirehawk.com

Common tests for Angel3 ORM. Reference implmentation of the generated ORM files.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

angel3_migration, angel3_model, angel3_orm, angel3_serialize, collection, io, optional, test

More

Packages that depend on angel3_orm_test