Function: closql--resolve-slots

closql--resolve-slots is a byte-compiled function defined in closql.el.

Signature

(closql--resolve-slots ARG &rest ARGS)

Implementations

(closql--resolve-slots (OBJ closql-object)) in `closql.el'.

Undocumented

Source Code

;; Defined in ~/.emacs.d/elpa/closql-20260101.1828/closql.el
(cl-defmethod closql--resolve-slots ((obj closql-object))
  (dolist (slot (eieio-class-slots (eieio--object-class obj)))
    (setq  slot (cl--slot-descriptor-name slot))
    (when (and (not (slot-boundp obj slot))
               (let ((props (closql--slot-properties obj slot)))
                 (or (alist-get :closql-class props)
                     (alist-get :closql-table props))))
      (closql--oset obj slot (closql-oref obj slot)))))