Delete form middleware for Datalevin database adapter.
Delete form middleware for Datalevin database adapter.
(delete-entity! {:com.fulcrologic.rad.attributes/keys [key->attribute] :as env}
params)Delete the entity identified by the delete params.
Resolves the entity id with d/entid from the identity key: the raw id for
native-id attributes, otherwise the [pk id] lookup ref — so no extra query
is needed. Deleting a non-existent entity is an idempotent no-op. Transaction
failures are propagated via ex-info rather than swallowed.
Delete the entity identified by the delete `params`. Resolves the entity id with `d/entid` from the identity key: the raw id for native-id attributes, otherwise the `[pk id]` lookup ref — so no extra query is needed. Deleting a non-existent entity is an idempotent no-op. Transaction failures are propagated via `ex-info` rather than swallowed.
(wrap-datalevin-delete)(wrap-datalevin-delete handler)Form delete middleware to accomplish datalevin deletes.
Form delete middleware to accomplish datalevin deletes.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |