galileo_orm_service

Last updated:

0 purchases

galileo_orm_service Image
galileo_orm_service Images
Add to Cart

Description:

galileo orm service

galileo_orm_service #


Service implementation that wraps over galileo ORM Query classes.
Installation #
In your pubspec.yaml:
dependencies:
galileo_orm_service: ^1.0.0
copied to clipboard
Usage #
Brief snippet (check example/main.dart for setup, etc.):
// Create an ORM-backed service.
var todoService = OrmService<int, Todo, TodoQuery>(
executor, () => TodoQuery(),
readData: (req, res) => todoSerializer.decode(req.bodyAsMap));

// Because we provided `readData`, the todoService can face the Web.
// **IMPORTANT: Providing the type arguments is an ABSOLUTE MUST, if your
// model has `int` ID's (this is the case when using `galileo_orm_generator` and `Model`).
// **
app.use<int, Todo, OrmService<int, Todo, TodoQuery>>(
'/api/todos', todoService);
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.