Table get (GNU Artanis web-framework Manual)

Next: , Up: Model mapping [Contents]

12.3.1 Table get

($article 'get #:columns (columns ...)
 #:functions '() ; put SQL functions here, e.g, '((count Article.name))
 #:ret 'all ; values: top | all | postive-number
 #:group-by '(column-name ...)
 #:order-by '(column-name ... asc) ;; or '(column-name ... desc)
 #:condition "" ; (where #:name "nala")
 #:foreach '() ; #:foreach '(city ("sz" "bj" "sh"))
 #:dump #f ; set #t if you want to check the SQL string
 #:mode 'raw ; raw to return all rows; getter to return a getter function)

AltStyle によって変換されたページ (->オリジナル) /