mirror of
https://github.com/donl/slouch.git
synced 2026-06-30 06:11:57 -06:00
* doc(docs) * doc(api): reference * docs(wiki): to md files * doc(readme): link to md files
99 lines
2.7 KiB
Markdown
99 lines
2.7 KiB
Markdown
## API Reference
|
|
|
|
* attachment
|
|
* get(dbName, docId, attachmentName)
|
|
* destroy(dbName, docId, attachmentName, rev)
|
|
* config
|
|
* get(path)
|
|
* set(path)
|
|
* setCompactionRule(dbName, rule)
|
|
* setCouchDBMaxDBsOpen(maxDBsOpen)
|
|
* setCouchHttpdAuthTimeout(timeoutSecs)
|
|
* setCouchHttpdAuthAllowPersistentCookies(allow)
|
|
* setLogLevel(level)
|
|
* setHttpdMaxConnections(maxConnections)
|
|
* unset(path)
|
|
* unsetIgnoreMissing(path)
|
|
* db
|
|
* all()
|
|
* changes(dbName, params)
|
|
* changesArray(dbName, params)
|
|
* copy(fromDBName, toDBName)
|
|
* create(dbName)
|
|
* destroy(dbName)
|
|
* exists(dbName)
|
|
* replicate(params)
|
|
* get(dbName)
|
|
* view(dbName, viewDocId, view, params)
|
|
* viewArray(dbName, viewDocId, view, params)
|
|
* doc
|
|
* all(dbName, params)
|
|
* allArray(dbName, params)
|
|
* bulkCreateOrUpdate(dbName, docs)
|
|
* create(dbName, doc)
|
|
* createAndIgnoreConflict(dbName, doc)
|
|
* createOrUpdate(dbName, doc)
|
|
* createOrUpdateIgnoreConflict(dbName, doc)
|
|
* destroy(dbName, docId, docRev)
|
|
* destroyAll(dbName, keepDesignDocs)
|
|
* destroyAllNonDesign(dbName)
|
|
* destroyIgnoreConflict(dbName, docId, docRev)
|
|
* exists(dbName, id)
|
|
* doc.find(dbName, body, params)
|
|
* get(dbName, docId)
|
|
* getAndDestroy(dbName, docId)
|
|
* getIgnoreMissing(dbName, id)
|
|
* getMergeCreateOrUpdate(dbName, doc)
|
|
* getMergeUpdate(dbName, doc)
|
|
* getMergeUpdateIgnoreConflict(dbName, doc)
|
|
* getMergeUpsert(dbName, doc)
|
|
* getModifyUpsert(dbName, docId, onGetPromiseFactory)
|
|
* ignoreConflict(promiseFactory)
|
|
* ignoreMissing(promiseFactory)
|
|
* isConflictError(err)
|
|
* isMissingError(err)
|
|
* markAsDestroyed(dbName, docId)
|
|
* setDestroyed(doc)
|
|
* update(dbName, doc)
|
|
* updateIgnoreConflict(dbName, doc)
|
|
* upsert(dbName, doc)
|
|
* ExcludeDesignDocIterator
|
|
* membership
|
|
* get()
|
|
* NotAuthenticatedError
|
|
* NotAuthorizedError
|
|
* security
|
|
* get(dbName)
|
|
* onlyAdminCanView(dbName)
|
|
* onlyRoleCanView(dbName, role)
|
|
* set(dbName, security)
|
|
* system
|
|
* get()
|
|
* isCouchDB1()
|
|
* reset(exceptDBNames)
|
|
* updates(params)
|
|
* updatesNoHistory(params)
|
|
* updatesViaGlobalChanges(params)
|
|
* user
|
|
* addRole(username, role)
|
|
* authenticate(username, password)
|
|
* authenticateAndGetSession(username, password)
|
|
* authenticated(cookie)
|
|
* create(username, password, roles, metadata)
|
|
* createSession(doc)
|
|
* destroy(username)
|
|
* destroySession([cookie])
|
|
* downsertRole(username, role)
|
|
* get(username)
|
|
* getSession([cookie], [url])
|
|
* logIn(username, password)
|
|
* logOut()
|
|
* removeRole(username, role)
|
|
* resolveConflicts(username)
|
|
* setCookie(cookie)
|
|
* setPassword(username, password)
|
|
* setMetadata(username, metadata)
|
|
* toUserId(username)
|
|
* toUsername(userId)
|
|
* upsertRole(username, role)
|
|
|