Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated docs for version number #323

Merged
merged 3 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Changelog 1.33.9
Fixed bug in thread handling when using binary parameters
# Changelog 1.33.8

Dollar Quoted tags are allowed in files. Prior to Postmodern version 1.33.8 only
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A Common Lisp PostgreSQL programming interface

---

Version 1.33.8
Version 1.33.9

Postmodern is a Common Lisp library for interacting with [PostgreSQL](http://www.postgresql.org) databases. It is under active development. Features are:

Expand Down
22 changes: 11 additions & 11 deletions doc/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/index.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#+HTML_HEAD: <style>pre.src{background:#343131;color:white;} </style>
#+OPTIONS: ^:nil

Version 1.33.7
Version 1.33.9

Postmodern is a Common Lisp library for interacting with [[https://postgresql.org][PostgreSQL databases]].
Features are:
Expand Down
44 changes: 23 additions & 21 deletions postmodern/table.lisp
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
;;;; -*- Mode: LISP; Syntax: Ansi-Common-Lisp; Base: 10; Package: POSTMODERN; -*-
(in-package :postmodern)

(defparameter *direct-column-slot* nil
"This is used to communicate the fact that a slot is a column to
effective-slot-definition-class.")

(defclass effective-column-slot (standard-effective-slot-definition)
((direct-slot :initform *direct-column-slot* :reader slot-column)))

(defclass direct-column-slot (standard-direct-slot-definition)
((col-type :initarg :col-type :reader column-type)
(col-default :initarg :col-default :reader column-default)
(col-identity :initarg :col-identity :reader column-identity)
(col-unique :initarg :col-unique :reader column-unique)
(col-collate :initarg :col-collate :reader column-collate)
(col-primary-key :initarg :col-primary-key :reader column-primary-key)
(col-interval :initarg :col-interval :reader column-interval)
(col-check :initarg :col-check :reader column-check)
(col-references :initarg :col-references :reader column-references)
(col-export :initarg :col-export :initform nil :reader column-export)
(col-import :initarg :col-import :initform nil :reader column-import)
(ghost :initform nil :initarg :ghost :reader ghost)
(sql-name :reader slot-sql-name))
(:documentation "Type of slots that refer to database columns."))

(defclass dao-class (standard-class)
((direct-keys :initarg :keys :initform nil :reader direct-keys)
(effective-keys :reader dao-keys)
Expand Down Expand Up @@ -216,21 +239,6 @@ such a class)."
(list (find-primary-key-column class))))
(build-dao-methods class))

(defclass direct-column-slot (standard-direct-slot-definition)
((col-type :initarg :col-type :reader column-type)
(col-default :initarg :col-default :reader column-default)
(col-identity :initarg :col-identity :reader column-identity)
(col-unique :initarg :col-unique :reader column-unique)
(col-collate :initarg :col-collate :reader column-collate)
(col-primary-key :initarg :col-primary-key :reader column-primary-key)
(col-interval :initarg :col-interval :reader column-interval)
(col-check :initarg :col-check :reader column-check)
(col-references :initarg :col-references :reader column-references)
(col-export :initarg :col-export :initform nil :reader column-export)
(col-import :initarg :col-import :initform nil :reader column-import)
(ghost :initform nil :initarg :ghost :reader ghost)
(sql-name :reader slot-sql-name))
(:documentation "Type of slots that refer to database columns."))

(defmethod shared-initialize :after ((slot direct-column-slot) slot-names
&key col-type col-default
Expand All @@ -253,12 +261,6 @@ such a class)."
(find-class 'direct-column-slot)
(call-next-method)))

(defparameter *direct-column-slot* nil
"This is used to communicate the fact that a slot is a column to
effective-slot-definition-class.")

(defclass effective-column-slot (standard-effective-slot-definition)
((direct-slot :initform *direct-column-slot* :reader slot-column)))

(defmethod compute-effective-slot-definition ((class dao-class)
name
Expand Down