Liking cljdoc? Tell your friends :D

sails-forth.client


build-atomic-cacheclj

(build-atomic-cache)

build-http-clientclj

(build-http-client config)

build-memory-clientclj

(build-memory-client schema)
(build-memory-client schema take-action-map)

Cachecljprotocol

get!clj

(get! _ key)

put!clj

(put! _ key value)

Clientcljprotocol

take-action!clj

(take-action! _ action inputs)

Submits a request to perform the given action

Submits a request to perform the given action

limits!clj

(limits! _)

Returns the current limits

Returns the current limits

create!clj

(create! _ type attrs)

Creates an object of the given type and attrs using the given salesforce client. If salesforce responds successfully, this returns the object's id, otherwise this raises an exception.

Creates an object of the given type and attrs using the given salesforce
client. If salesforce responds successfully, this returns the object's id,
otherwise this raises an exception.

list-actions!clj

(list-actions! _ path)

Gets a list of actions that can be performed

Gets a list of actions that can be performed

objects!clj

(objects! _)

Lists all objects

Lists all objects

list!clj

(list! _ type)

Lists all objets of the given type

Lists all objets of the given type

describe-action!clj

(describe-action! _ action)

Describes an action

Describes an action

cacheclj

(cache _)

Returns a persistent cache

Returns a persistent cache

describe!clj

(describe! _ type)

Describes the given type

Describes the given type

delete!clj

(delete! _ type id)

Deletes the object of the given type with the given id. This returns true if it succeeds and raises an exception otherwise.

Deletes the object of the given type with the given id. This returns true
if it succeeds and raises an exception otherwise.

import!clj

(import! _ type records)

Imports the given records into the given type

Imports the given records into the given type

update!clj

(update! _ type id attrs)

Updates the object of the given type with the given id. This returns true if it succeeds and raises an exception otherwise.

Updates the object of the given type with the given id. This returns true
if it succeeds and raises an exception otherwise.

query!clj

(query! _ query)

Executes the given query and returns all results, eagerly fetching if there is pagination

Executes the given query and returns all results, eagerly fetching if there
is pagination

count!clj

(count! _ query)

Returns the number of results from the given query

Returns the number of results from the given query

client?clj

(client? x)

get-attrs-for-labelclj

(get-attrs-for-label client type label)

Returns the set of attributes on the given type that have the given label

Returns the set of attributes on the given type that have the given label
raw docstring

get-field-descriptionclj

(get-field-description client type attr)

Obtains the description for the given field on a type by its attribute

Obtains the description for the given field on a type by its attribute
raw docstring

get-fieldsclj

(get-fields client type)

Obtains a map of descriptions by field for the given type

Obtains a map of descriptions by field for the given type
raw docstring

get-type-descriptionclj

(get-type-description client type)

Obtains the description for a given type and builds some custom indexes into it. This will only fetch the type once for a given client.

Obtains the description for a given type and builds some custom indexes
into it. This will only fetch the type once for a given client.
raw docstring

get-typesclj

(get-types client)

Obtains a map of descriptions by type

Obtains a map of descriptions by type
raw docstring

resolve-attr-pathclj

(resolve-attr-path client type attr-path)

Resolves a path of attrs against a given type, returning a path of fields. All but the last attr in a path must resolve to a reference type.

Resolves a path of attrs against a given type, returning a path of fields.
All but the last attr in a path must resolve to a reference type.
raw docstring

resolve-field-pathclj

(resolve-field-path field-path)

Derives a seq of record keys for the given seq of fields, suitable for applying to the result of the underlying query! fn

Derives a seq of record keys for the given seq of fields, suitable for
applying to the result of the underlying query! fn
raw docstring

schemaclj

(schema client types)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close