Define an insert query that returns the database generated identifier.
Define an insert query that returns the database generated identifier.
a mapped model
the database generated identifier.
Extracts the model Id of a arbitrary model.
Extracts the model Id of a arbitrary model.
a Some[I] if Id is filled, None otherwise
Try to delete the model.
Try to delete the model.
A Success[Unit] is case of success, Failure otherwise.
Try to save the model.
Try to save the model.
A Success[M] is case of success, Failure otherwise.
Try to update the model.
Try to update the model.
A Success[M] is case of success, Failure otherwise.
an id, usually generate by the database
a model M with an assigned id.