module Laspatule::Repositories::Recipes

Direct including types

Defined in:

laspatule/repositories/recipes.cr

Instance Method Summary

Instance Method Detail

abstract def create(recipe : Models::CreateRecipe, user_id : Int32) : Int32 #

Creates a new recipe and returns its id.


[View source]
abstract def get_all(page_size : Int32, next_page previous_page : String | Nil = nil) : Models::Page(Models::Recipe) #

Gets all recipes ordered by name,

This is a paginated query, see Models::Page for the pagination instructions.


[View source]
abstract def get_by_id(id : Int32) : Models::Recipe #

Gets a recipe by id.


[View source]