mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
plist version of sql-insert
This commit is contained in:
parent
52cdb8cf20
commit
dafb77bc12
2 changed files with 15 additions and 3 deletions
|
|
@ -189,6 +189,17 @@ character '?'."
|
|||
(sql-field-list field-list)
|
||||
(sql-value-list value-list)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;
|
||||
;; sql-insert* ;;
|
||||
;;;;;;;;;;;;;;;;;
|
||||
|
||||
(defun sql-insert* (table plist)
|
||||
"Build basic sql insert statement using a plist"
|
||||
(loop for (key value) on plist by #'cddr while value
|
||||
collect key into fields
|
||||
collect value into values
|
||||
finally (return (sql-insert table fields values))))
|
||||
|
||||
;;;;;;;;;;;;;;;;
|
||||
;; sql-update ;;
|
||||
;;;;;;;;;;;;;;;;
|
||||
|
|
|
|||
|
|
@ -534,6 +534,7 @@ embedded in a native template application.)"
|
|||
(sql-update-list function)
|
||||
(sql-select function)
|
||||
(sql-insert function)
|
||||
(sql-insert* function)
|
||||
(sql-update function))
|
||||
|
||||
(defsection @clog-panels (:title "CLOG Panels")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue