Laspatule::Repositories::DB::Recipes
Inherits Laspatule::Repositories::Recipes < Reference < Object
Constructors
new(db : ::DB::Database)
SourceInstance methods
create(recipe : Models::CreateRecipe, user_id : Int32) : Int32
Creates a new recipe and returns its id.
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.