-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from sabracrolleton/master
New ability to pass parameters in binary (per connection basis)
- Loading branch information
Showing
68 changed files
with
9,453 additions
and
6,145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
:author "Marijn Haverbeke <[email protected]>" | ||
:maintainer "Sabra Crolleton <[email protected]>" | ||
:license "zlib" | ||
:version "1.32.9" | ||
:version "1.33.0" | ||
:depends-on ("md5" "split-sequence" "ironclad" "cl-base64" "uax-15" | ||
(:feature (:or :sbcl :allegro :ccl :clisp :genera | ||
:armedbear :cmucl :lispworks) | ||
|
@@ -26,28 +26,30 @@ | |
((:module "cl-postgres" | ||
:components ((:file "package") | ||
(:file "features") | ||
(:file "config") | ||
(:file "errors" :depends-on ("package")) | ||
(:file "sql-string" :depends-on ("package")) | ||
(:file "trivial-utf-8" :depends-on ("package")) | ||
(:file "data-types" :depends-on ("package" "config")) | ||
(:file "sql-string" :depends-on ("package" "config" "data-types")) | ||
(:file "trivial-utf-8" :depends-on ("package" "config")) | ||
(:file #.*string-file* | ||
:depends-on ("package" "trivial-utf-8")) | ||
:depends-on ("package" "trivial-utf-8" "config")) | ||
(:file "communicate" | ||
:depends-on (#.*string-file* "sql-string")) | ||
(:file "messages" :depends-on ("communicate")) | ||
(:file "oid" :depends-on ("package")) | ||
(:file "ieee-floats") | ||
:depends-on (#.*string-file* "sql-string" "config")) | ||
(:file "messages" :depends-on ("communicate" "config")) | ||
(:file "oid" :depends-on ("package" "config")) | ||
(:file "ieee-floats" :depends-on ("config")) | ||
(:file "interpret" | ||
:depends-on ("oid" "communicate" "ieee-floats")) | ||
(:file "saslprep") | ||
:depends-on ("oid" "communicate" "ieee-floats" "config")) | ||
(:file "saslprep" :depends-on ("package" "config")) | ||
(:file "scram" | ||
:depends-on ("messages" "errors" "saslprep" | ||
"trivial-utf-8")) | ||
:depends-on ("package" "messages" "errors" "saslprep" | ||
"trivial-utf-8" "config")) | ||
(:file "protocol" | ||
:depends-on ("interpret" "messages" "errors" "scram" | ||
"saslprep" "trivial-utf-8")) | ||
(:file "public" :depends-on ("protocol" "features")) | ||
:depends-on ("package" "interpret" "messages" "errors" "scram" | ||
"saslprep" "trivial-utf-8" "config")) | ||
(:file "public" :depends-on ("package" "protocol" "features" "config")) | ||
(:file "bulk-copy" | ||
:depends-on ("public" "trivial-utf-8"))))) | ||
:depends-on ("package" "public" "trivial-utf-8"))))) | ||
:in-order-to ((test-op (test-op "cl-postgres/tests") | ||
(test-op "cl-postgres/simple-date-tests")))) | ||
|
||
|
@@ -56,13 +58,20 @@ | |
:components | ||
((:module "cl-postgres/tests" | ||
:components ((:file "test-package") | ||
(:file "tests") | ||
(:file "tests-scram" :depends-on ("test-package" "tests"))))) | ||
(:file "tests" :depends-on ("test-package")) | ||
(:file "test-binary-parameters" :depends-on ("test-package" "tests")) | ||
(:file "test-oids" :depends-on ("test-package" "tests")) | ||
(:file "test-ieee-float" :depends-on ("test-package" "tests")) | ||
(:file "test-clp-utf8" :depends-on ("test-package" "tests")) | ||
(:file "test-data-types" :depends-on ("test-package" "tests")) | ||
(:file "test-communicate" :depends-on ("test-package" "tests")) | ||
(:file "tests-scram" :depends-on ("test-package" "tests")) | ||
(:file "tests-saslprep" :depends-on ("test-package"))))) | ||
|
||
:perform (test-op (o c) | ||
(uiop:symbol-call :cl-postgres-tests '#:prompt-connection) | ||
(uiop:symbol-call :fiveam '#:run! :cl-postgres))) | ||
|
||
|
||
(defsystem "cl-postgres/simple-date-tests" | ||
:depends-on ("cl-postgres" "cl-postgres/tests" "fiveam" "simple-date" | ||
"simple-date/postgres-glue") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
;;;; -*- Mode: LISP; Syntax: Ansi-Common-Lisp; Base: 10; Package: CL-POSTGRES; -*- | ||
(in-package :cl-postgres) | ||
|
||
(defparameter *silently-truncate-ratios* t "Given a ratio, a stream and a | ||
digital-length-limit, if *silently-truncate-ratios* is true, | ||
will return a potentially truncated ratio. If false and the digital-length-limit | ||
is reached, it will throw an error noting the loss of precision and offering to | ||
continue or reset *silently-truncate-ratios* to true. Code contributed by | ||
Attila Lendvai.") | ||
|
||
(defparameter *query-log* nil "When debugging, it can be helpful to inspect the | ||
queries that are being sent to the database. Set this variable to an output | ||
stream value (*standard-output*, for example) to have CL-postgres log every | ||
query it makes.") | ||
(defparameter *query-callback* 'log-query "When profiling or debugging, the | ||
*query-log* may not give enough information, or reparsing its output may not be | ||
feasible. This variable may be set to a designator of function taking two | ||
arguments. This function will be then called after every query, and receive | ||
query string and internal time units (as in (CL:GET-INTERNAL-REAL-TIME)) spent | ||
in query as its arguments. | ||
Default value of this variable is 'LOG-QUERY, which takes care of *QUERY-LOG* | ||
processing. If you provide custom query callback and wish to keep *QUERY-LOG* | ||
functionality, you will have to call LOG-QUERY from your callback function") | ||
|
||
(defvar *retry-connect-times* 5 | ||
"How many times do we try to connect again. Borrowed from pgloader") | ||
|
||
(defvar *retry-connect-delay* 0.5 | ||
"How many seconds to wait before trying to connect again. Borrowed from | ||
pgloader") |
Oops, something went wrong.