(m 'get table-name #:columns '(*) #:functions '() #:ret 'all #:group-by #f #:order-by #f)
#:column
is the list of columns to get.
#:functions
is a function to call, e.g:
#:functions '((count Persons.Lastname))
#:ret
specifies how to return the result, there are three options:
#:group-by
used in conjunction with the aggregate functions to group the result-set by one or more columns.
#:order-by
used to sort the result-set by one or more columns.
For example, to get Lastname and City column, and return the first result.
(m 'get 'Persons #:columns '(Lastname City) #:ret 'top)