(build-batch views)Built messages copied into one buffer, so they go out in one write.
Built messages copied into one buffer, so they go out in one write.
(build-bind params)Binds params, each a string or nil for NULL, to the unnamed portal.
Binds params, each a string or nil for NULL, to the unnamed portal.
(build-execute max-rows)Runs the unnamed portal for up to max-rows rows, or all of them for 0.
Runs the unnamed portal for up to max-rows rows, or all of them for 0.
(build-parse sql)Parses sql into the unnamed statement, leaving the server to infer every parameter's type.
Parses sql into the unnamed statement, leaving the server to infer every parameter's type.
(build-ssl-request)Asks the server, before the StartupMessage, whether it will talk TLS. It answers with one byte, S or N, which isn't a message.
Asks the server, before the StartupMessage, whether it will talk TLS. It answers with one byte, S or N, which isn't a message.
(build-startup user database)Asks for UTF8 as the client encoding, since clunk encodes and decodes all text as UTF-8. The server converts to and from the database's encoding, and rejects text that encoding can't hold.
Asks for UTF8 as the client encoding, since clunk encodes and decodes all text as UTF-8. The server converts to and from the database's encoding, and rejects text that encoding can't hold.
(handle-data-row bs)Leaves the columns undecoded: the query that asked for them knows their types, and decodes them straight from the view (see clunk.core).
Leaves the columns undecoded: the query that asked for them knows their types, and decodes them straight from the view (see clunk.core).
(handle-error bs)(handle-error bs type)(handle-error bs type errs fields)Each field is a type byte and a string; S is severity, C the SQLSTATE code, and M the message. A NoticeResponse has the same fields.
Each field is a type byte and a string; S is severity, C the SQLSTATE code, and M the message. A NoticeResponse has the same fields.
(handle-notification bs)A NOTIFY on a channel this connection listens on: the notifying backend's pid, the channel and the payload.
A NOTIFY on a channel this connection listens on: the notifying backend's pid, the channel and the payload.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |