Fulib v0.1.11 Fulib.Ecto.SoftDelete.Query View Source

functions for querying data that is (or is not) soft deleted

Link to this section Summary

Functions

Returns a query that searches only for deleted items

query = from(u in User, select: u)
|> with_deleted
results = Repo.all(query)

Returns a query that searches only for undeleted items

query = from(u in User, select: u)
|> with_undeleted
results = Repo.all(query)

Link to this section Functions

Returns a query that searches only for deleted items

query = from(u in User, select: u)
|> with_deleted
results = Repo.all(query)
Link to this function

with_undeleted(query) View Source
with_undeleted(Ecto.Queryable.t()) :: Ecto.Queryable.t()

Returns a query that searches only for undeleted items

query = from(u in User, select: u)
|> with_undeleted
results = Repo.all(query)