alias Marten::DB::Query::Set::Any

Overview

Creates an alias Any representing the query sets of all existing models.

For example, if you have the models User and Post, then this macro will generate:

alias Any = Set(User) | Set(Post)

That means anywhere in your code where you accept Any, you accept any Set(M) specialized to these models.

Alias Definition

Marten::DB::Query::Set(Marten::DB::Management::Migrations::Record)

Defined in:

marten/db/query/set.cr