Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the postmodernity Reference Manual, version 0.0.2, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 17:26:22 2021 GMT+0.
• Introduction | What postmodernity is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
Postmodernity is a utility library for the Common Lisp Postmodern library.
Postmodernity provides the DEFPGSTRUCT
macro to define a Common Lisp
structure and corresponding Postmodern row reader. DEFPGSTRUCT
is
not intended to provide a structure-based alternative to Postmodern's
data access objects but, rather, an alternative to list and alist row
readers.
Based on the structure name, DEFPGSTRUCT
also creates keyword symbols
and adds them to POSTMODERN::*RESULT-STYLES*
so that they can be used
as result format arguments to POSTMODERN:QUERY
, POSTMODERN:PREPARE
,
POSTMODERN:DEFPREPARED
, and POSTMODERN:DEFPREPARED-WITH-NAMES
. Note
that, in doing so, DEFPGSTRUCT
accesses unexported symbols from the
POSTMODERN package.
Postmodernity depends on Postmodern and Alexandria. Postmodernity is being developed with SBCL, CCL, and LispWorks on OS X. Postmodernity is being deployed with SBCL on Linux/AMD64.
(ql:quickload "postmodernity")
(postmodernity:defpgstruct site
no
name
address
(age #'(lambda (string)
(ignore-errors (parse-integer string
:junk-allowed t)))))
(postmodern:defprepared-with-names select-site (no)
((:select 'no 'name 'address 'age :from 'site :where (:= 'no '$1))
no)
:site)
(postmodern:defprepared-with-names select-site! (no)
((:select 'no 'name 'address 'age :from 'site :where (:= 'no '$1))
no)
:site!)
(postmodern:defprepared select-all-sites
(:select 'no 'name 'address 'age :from 'site)
:sites)
Postmodernity is distributed under the MIT license. See LICENSE.
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The postmodernity system |
Michael J. Forster <mike@forsterfamily.ca>
MIT
Utility library for the Common Lisp Postmodern library
0.0.2
postmodernity.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The postmodernity.asd file | ||
• The postmodernity/package.lisp file | ||
• The postmodernity/postmodernity.lisp file |
Next: The postmodernity/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
postmodernity.asd
postmodernity (system)
Next: The postmodernity/postmodernity․lisp file, Previous: The postmodernity․asd file, Up: Lisp files [Contents][Index]
postmodernity (system)
package.lisp
Previous: The postmodernity/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
postmodernity (system)
postmodernity.lisp
defpgstruct (macro)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The postmodernity package |
package.lisp (file)
common-lisp
defpgstruct (macro)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported macros |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Defines a structured type, named /structure-type/, with named slots
as specified by /slot-specs/ and defines a Postmodern row reader named
/structure-name/-ROW-READER.
DEFPGSTRUCT creates and adds to POSTMODERN::*RESULT-STYLES* the
keywords named structure-name and by concatenating with S and !. Those
keywords can be used as result format arguments to POSTMODERN:QUERY,
POSTMODERN:PREPARE, POSTMODERN:DEFPREPARED, and
POSTMODERN:DEFPREPARED-WITH-NAMES. Note that, in doing so, DEFPGSTRUCT
accesses unexported symbols from the POSTMODERN package.
/structure-name/ must be a symbol, like a Common Lisp structure /structure-name/ rather than a Common Lisp structure /name-and-options/.
Each /slot-spec/ must be either a symbol specifying the slot name or a list of a symbol specifying the slot name and a desginator for a function to read and convert the PostgreSQL string value when initializing the slot value. If /slot-spec/ is a symbol, the slot value will be initialized to the PostgreSQL string value.
postmodernity.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
postmodernity.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L P |
---|
Jump to: | F L P |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | A D F M S |
---|
Jump to: | A D F M S |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | P S |
---|
Jump to: | P S |
---|