thibaudk / crudpp

GNU General Public License v3.0
0 stars 0 forks source link

on_create, on_update, on_delete ... functions #4

Open thibaudk opened 11 months ago

thibaudk commented 11 months ago

functions to run on either the server or the client side, when creating, updating, deleting or reading.

Should there be pre_create, pre_update ... and post_create, post_update ....

The parameter list in the former should be objects as they are read from the client request, and in the later, as they are read from the database.

A pre_read function should should probably return a tuple of member pointers, as they ought to be retried fro the database, ie. to execute a specific "SELECT <>" statement instead of "SELECT *"