From 48f84bec50c78292501df91ae2f845d0e5172c51 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Tue, 15 Nov 2011 10:54:24 -0500 Subject: [PATCH] added some more documentation on command-object --- sql/command-object.lisp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sql/command-object.lisp b/sql/command-object.lisp index 3b752ef..d931bac 100644 --- a/sql/command-object.lisp +++ b/sql/command-object.lisp @@ -23,13 +23,16 @@ (in-package #:clsql-sys) (defclass command-object () - ((expression :accessor expression :initarg :expression :initform nil) - (parameters :accessor parameters :initarg :parameters :initform nil) + ((expression :accessor expression :initarg :expression :initform nil + :documentation "query that refers to parameters using \"$1\", \"$2\", \"$n\". + These match positions in the parameters list.") + (parameters :accessor parameters :initarg :parameters :initform nil + :documentation "list of parameters") (prepared-name :accessor prepared-name :initarg :prepared-name :initform "" :documentation "If we want this to be a prepared statement, give it a name to identify it to this session") (has-been-prepared :accessor has-been-prepared :initarg :has-been-prepared :initform nil - :documentation "Have we already prepared this command object") + :documentation "Have we already prepared this command object?") )) (defmethod initialize-instance :after ((o command-object) &key &allow-other-keys ) -- 2.34.1