API for clj-fluiddb
by
Hugo Duncan
Usage:
(ns your-namespace
(:require clj-fluiddb))
Overview
clj-fluiddb is a client library for accessing FluidDb from Clojure.
See also:
Source code
FluidDb
cl-fluiddb
Public Variables and Functions
*host*
var
Host to use for accessing FluidDB.
Source
*user-agent*
var
User Agent to use in HTTP requests.
Source
delete-object-tag
function
Usage: (delete-object-tag id tag)
Delete a tag from an object.
Source
get-namespace
function
Usage: (get-namespace ns & options)
Return namespace information. Specify :return-description :return-namespace :return-tags as arguments
Source
get-object
function
Usage: (get-object id & options)
Get the specified object
Source
get-object-tag-value
function
Usage: (get-object-tag-value id tag)
(get-object-tag-value id tag accept)
Get a tag value for an object. Defaults to json format for the reply.
Source
get-user
function
Usage: (get-user name)
Get information on the specified user
Source
send-request
function
Usage: (send-request method path)
(send-request method path path-options)
(send-request method path path-options body-data)
(send-request method path path-options body-data options)
Send a request to FluidDB.
We inspect the return data and convert it to a lisp data structure if it is json
Source
set-object-tag-value
function
Usage: (set-object-tag-value id tag value)
(set-object-tag-value id tag value value-type)
(set-object-tag-value id tag value value-type value-encoding)
Set the value for a tag on an object.
Source
set-object-tag-value-base64
function
Usage: (set-object-tag-value-base64 id tag content)
(set-object-tag-value-base64 id tag content value-type)
Set the value for a tag on an object. base64 encode the value
Source
with-fluiddb
macro
Usage: (with-fluiddb fdb & body)
Specify connection parameters. Wrap all request methods with this.
Source