Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cqlcl Reference Manual, version 0.0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 13:12:01 2020 GMT+0.
• Introduction | What cqlcl 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 |
A Common Lisp client to Cassandra using the native protocol (V2)
QuickLisp is probably the most sane way to install CL libraries. Ensure you have this set up and working.
cd $QUICKLISP_HOME/local-projects
git clone https://github.com/AeroNotix/cqlcl.git
sbcl --eval "(ql:quickload :cqlcl)"
This will install all required dependencies.
(defparameter *cxn* (cqlcl:make-connection))
(let ((create-keyspace "CREATE KEYSPACE cqlcl
WITH replication = {
'class': 'SimpleStrategy', 'replication_factor': '1'
}"))
(query *cxn* create-keyspace))
;; T
;; "CREATED: cqlcl."
(let ((create-table "CREATE TABLE cqlcl.readme (
id uuid PRIMARY KEY,
name text,
value int
)"))
(query *cxn* create-table))
;; T
;; "CREATED: cqlcl.readme
(query *cxn* "SELECT * FROM cqlcl.readme")
;; NIL
(prepare *cxn* "INSERT INTO cqlcl.readme (id, name, value) VALUES(?, ?, ?)")
;; No value
(execute *cxn* "INSERT INTO cqlcl.readme (id, name, value) VALUES(?, ?, ?)"
(uuid:make-v4-uuid) "HELLO" 123)
;; No value
(execute *cxn* "INSERT INTO cqlcl.readme (id, name, value) VALUES(?, ?, ?)"
(uuid:make-v4-uuid) "HELLO" 123)
;; No value
(execute *cxn* "INSERT INTO cqlcl.readme (id, name, value) VALUES(?, ?, ?)"
(uuid:make-v4-uuid) "HELLO" 123)
;; No value
(query *cxn* "SELECT * FROM cqlcl.readme")
((B16805B2-FDA8-4DF5-811B-77F46FFE2BBB "HELLO" 123)
(DF0922E4-BB82-4C59-A32C-CBFD859CC3AD "HELLO" 123)
(43B0683F-8372-4BFC-B2CB-93706360A2D7 "HELLO" 123))
| Cassandra type | CL type | |:--------------------- |:------- | | ascii | string | | bigint | integer | | blob | byte-vector | | boolean | boolean | | counter | not implemented | | decimal | float | | double | float | | float | float | | inet | cqlcl:ip | | int | integer | | timestamp | integer | | timeuuid | uuid:uuid | | uuid | uuid:uuid | | varchar/text | string | | varint | not implemented | | list | list | | set | list | | map | hashtbale | | custom | not implemented |
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The cqlcl system |
Aaron France
BSD
CQLv2 binary protocol
0.0.1
fiveam
cqlcl.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
Next: The cqlcl/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
cqlcl.asd
cqlcl (system)
Next: The cqlcl/util․lisp file, Previous: The cqlcl․asd file, Up: Lisp files [Contents][Index]
Next: The cqlcl/constants․lisp file, Previous: The cqlcl/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
cqlcl (system)
util.lisp
make-stream-from-byte-vector (function)
Next: The cqlcl/types․lisp file, Previous: The cqlcl/util․lisp file, Up: Lisp files [Contents][Index]
util.lisp (file)
cqlcl (system)
constants.lisp
Next: The cqlcl/headers․lisp file, Previous: The cqlcl/constants․lisp file, Up: Lisp files [Contents][Index]
constants.lisp (file)
cqlcl (system)
types.lisp
Next: The cqlcl/protocol․lisp file, Previous: The cqlcl/types․lisp file, Up: Lisp files [Contents][Index]
types.lisp (file)
cqlcl (system)
headers.lisp
Next: The cqlcl/conn․lisp file, Previous: The cqlcl/headers․lisp file, Up: Lisp files [Contents][Index]
headers.lisp (file)
cqlcl (system)
protocol.lisp
Previous: The cqlcl/protocol․lisp file, Up: Lisp files [Contents][Index]
protocol.lisp (file)
cqlcl (system)
conn.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The cqlcl package |
package.lisp (file)
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 special variables | ||
• Exported macros | ||
• Exported functions | ||
• Exported generic functions |
Next: Exported macros, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
constants.lisp (file)
constants.lisp (file)
Next: Exported functions, Previous: Exported special variables, Up: Exported definitions [Contents][Index]
Next: Exported generic functions, Previous: Exported macros, Up: Exported definitions [Contents][Index]
types.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
types.lisp (file)
types.lisp (file)
Previous: Exported functions, Up: Exported definitions [Contents][Index]
Encodes a value into the CQL wire format.
protocol.lisp (file)
Executes a prepared statement with bound values.
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
Returns the next available stream id for a connection.
Sends an option request.
Prepares a statement.
Executes a query with no bound values.
Reads a single CQL reply packet from a CQL connection.
Returns a stream id to the pool of ids.
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal macros | ||
• Internal functions | ||
• Internal generic functions | ||
• Internal classes |
Next: Internal macros, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
protocol.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
constants.lisp (file)
Next: Internal functions, Previous: Internal special variables, Up: Internal definitions [Contents][Index]
protocol.lisp (file)
types.lisp (file)
Next: Internal generic functions, Previous: Internal macros, Up: Internal definitions [Contents][Index]
protocol.lisp (file)
protocol.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
protocol.lisp (file)
types.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
types.lisp (file)
protocol.lisp (file)
headers.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
types.lisp (file)
protocol.lisp (file)
headers.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
headers.lisp (file)
protocol.lisp (file)
protocol.lisp (file)
headers.lisp (file)
protocol.lisp (file)
headers.lisp (file)
protocol.lisp (file)
headers.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
types.lisp (file)
headers.lisp (file)
types.lisp (file)
types.lisp (file)
protocol.lisp (file)
types.lisp (file)
types.lisp (file)
Next: Internal classes, Previous: Internal functions, Up: Internal definitions [Contents][Index]
automatically generated reader method
types.lisp (file)
automatically generated writer method
types.lisp (file)
automatically generated reader method
types.lisp (file)
automatically generated writer method
types.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
Returns a byte array representing an IP Address.
types.lisp (file)
Encodes an integer into an integer
types.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
Sends a startup request.
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
types.lisp (file)
automatically generated writer method
types.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
automatically generated reader method
headers.lisp (file)
automatically generated writer method
headers.lisp (file)
Previous: Internal generic functions, Up: Internal definitions [Contents][Index]
types.lisp (file)
standard-object (class)
:val
0
val (generic function)
(setf val) (generic function)
conn.lisp (file)
connection (class)
used-streams (generic function)
(setf used-streams) (generic function)
(make-hash-table :test (function equal))
pending-queries (generic function)
(setf pending-queries) (generic function)
(bordeaux-threads:make-lock)
mutex (generic function)
(setf mutex) (generic function)
types.lisp (file)
anumber (class)
encode-value (method)
conn.lisp (file)
standard-object (class)
async-connection (class)
:conn
conn (generic function)
(setf conn) (generic function)
(make-hash-table :test (function equal))
pqs (generic function)
(setf pqs) (generic function)
:options
conn-options (generic function)
(setf conn-options) (generic function)
headers.lisp (file)
standard-object (class)
:code
code (generic function)
(setf code) (generic function)
:msg
msg (generic function)
(setf msg) (generic function)
:extra
extra (generic function)
(setf extra) (generic function)
headers.lisp (file)
header (class)
:qid
(error "prepared query id required.")
qid (generic function)
(setf qid) (generic function)
:vals
(error "values required.")
vals (generic function)
(setf vals) (generic function)
headers.lisp (file)
standard-object (class)
:ptype
cqlcl::+request+
ptype (generic function)
(setf ptype) (generic function)
:vsn
cqlcl::+default-version+
vsn (generic function)
(setf vsn) (generic function)
:cql-vsn
"3.0.0"
cql-vsn (generic function)
(setf cql-vsn) (generic function)
:compression
compression (generic function)
(setf compression) (generic function)
:consistency
:quorum
consistency (generic function)
(setf consistency) (generic function)
:tracing
tracing (generic function)
(setf tracing) (generic function)
:body
body (generic function)
(setf body) (generic function)
types.lisp (file)
standard-object (class)
types.lisp (file)
ip (class)
:addr
"0.0.0.0"
addr (generic function)
(setf addr) (generic function)
types.lisp (file)
ip (class)
:addr
"0:0:0:0:0:0:0:0"
addr (generic function)
(setf addr) (generic function)
headers.lisp (file)
header (class)
encode-value (method)
headers.lisp (file)
header (class)
headers.lisp (file)
standard-object (class)
:qid
qid (generic function)
(setf qid) (generic function)
headers.lisp (file)
header (class)
headers.lisp (file)
header (class)
:opts
opts (generic function)
(setf opts) (generic function)
types.lisp (file)
anumber (class)
encode-value (method)
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: | C F L |
---|
Jump to: | C F L |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
A B C D E F G I J M N O P Q R S T U V W |
---|
Jump to: | (
A B C D E F G I J M N O P Q R S T U V W |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
+
A B C E M O P Q S T U V |
---|
Jump to: | *
+
A B C E M O P Q S T U V |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | A B C E H I O P Q S V |
---|
Jump to: | A B C E H I O P Q S V |
---|