diff --git a/doc/clog-manual.html b/doc/clog-manual.html index 73f1de4..5de2bf9 100644 --- a/doc/clog-manual.html +++ b/doc/clog-manual.html @@ -54,7 +54,7 @@
  • 17 CLOG Auth Objects
  • 18 CLOG GUI Objects
  • 19 CLOG Web Objects
  • -
  • 20 CLOG Web DBI - dbi based website
  • +
  • 20 CLOG Web DBI
  • 21 CLOG Web Site Themes
  • 22 CLOG Body Objects
  • 23 CLOG Window Objects
  • @@ -3952,8 +3952,48 @@ slot-name does not exist it is left out of returned plist. If keyword package.

    +

    SQL Timestamp by Engine

    + +

    +

    + + + +

    +

    + + + +

    +

    + + +

    SQL Writing Helpers

    +

    +

    + + +

    @@ -3972,10 +4012,8 @@ stringified first. If :QUOTE-ALL t then all fields are in quotes.
  • [function] SQL-VALUE-LIST VALUE-LIST

    -

    Given list of values returns a string for use in a SQL insert value -list. If a value is a string it is quoted with single quotes -(and single quotes qutoed by doubling) unless is the single -character '?'.

  • +

    Given list of values each passed to SQL-QUOTE returns a string for +use in a SQL insert value list.

    @@ -3984,10 +4022,9 @@ character '?'.

    @@ -6158,7 +6195,7 @@ is nil unbind the event.

    CLOG-AUTH - Authorization

    @@ -6178,7 +6215,7 @@ is nil unbind the event.

    @@ -6687,7 +6724,7 @@ machine, upon close ON-FILE-NAME called with filename or nil if fai

    -

    +

    19 CLOG Web Objects

    @@ -7444,9 +7481,9 @@ and no-script body information for search engines with DESCRIPTION.

    -

    +

    -

    20 CLOG Web DBI - dbi based website

    +

    20 CLOG Web DBI

    [in package CLOG-WEB-DBI]
    @@ -7456,7 +7493,7 @@ and no-script body information for search engines with DESCRIPTION.

    +

    +

    + + +

    -

    +

    21 CLOG Web Site Themes

    [in package CLOG-WEB]
    +

    Theme helpers

    + +

    +

    + + + +

    +

    + + +

    Built in themes

    diff --git a/source/clog-data.lisp b/source/clog-data.lisp index e334704..4508b89 100644 --- a/source/clog-data.lisp +++ b/source/clog-data.lisp @@ -124,9 +124,12 @@ keyword package." ;; Implementation - simple sql writers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defparameter *mysql-timestamp* "unix_timestamp()") -(defparameter *sqlite-timestamp* "strftime('%s')") -(defparameter *postgresql-timestamp* "extract(epoch from now())") +(defparameter *mysql-timestamp* "unix_timestamp()" + "Function used by mysql to retrieve the time from the epoch") +(defparameter *sqlite-timestamp* "strftime('%s')" + "Function used by sqlite to retrieve the time from the epoch") +(defparameter *postgresql-timestamp* "extract(epoch from now())" + "Function used by postgresql to retrieve the time from the epoch") ;;;;;;;;;;;;;;;;;;;; ;; sql-field-list ;; diff --git a/source/clog-web-dbi.lisp b/source/clog-web-dbi.lisp index 87a7dba..e1e0cd4 100644 --- a/source/clog-web-dbi.lisp +++ b/source/clog-web-dbi.lisp @@ -190,20 +190,20 @@ optional WHERE and ORDER-BY sql." (defun clog-web-content (sql-connection &key - (page "main") - (table "content") - (base-url "/content") - (follow-url-page t) + (page "main") + (table "content") + (base-url "/content") + (follow-url-page t) comment-table on-content on-comment on-new on-edit on-delete - (can-admin :content-admin) - (can-comment :content-comment) - (can-show-comments :content-show-comments) - (can-edit :content-edit) + (can-admin :content-admin) + (can-comment :content-comment) + (can-show-comments :content-show-comments) + (can-edit :content-edit) (sql-timestamp-func *sqlite-timestamp*)) "Create content for CLOG-WEB:CREATE-WEB-PAGE based on dbi TABLE value where key=PAGE or if FOLLOW-URL-PAGE is true PAGE is default diff --git a/source/clog.lisp b/source/clog.lisp index 934b901..3e75414 100644 --- a/source/clog.lisp +++ b/source/clog.lisp @@ -535,9 +535,9 @@ embedded in a native template application.)" (data-write-plist function) "SQL Timestamp by Engine" - (*mysql-timestamp* constant) - (*sqlite-timestamp* constant) - (*postgresql-timestamp* constant) + (*mysql-timestamp* variable) + (*sqlite-timestamp* variable) + (*postgresql-timestamp* variable) "SQL Writing Helpers" (sql-quote function)