Home > borogove > persistence > Sqlite

persistence.Sqlite class

Signature:

export class borogove_persistence_Sqlite implements borogove_persistence_KeyValueStore, borogove_Persistence 

Implements: borogove_persistence_KeyValueStore, borogove_Persistence

Constructors

Constructor Modifiers Description
(constructor)(dbfile, media) Create a basic persistence layer based on sqlite

Methods

Method Modifiers Description
clearMemberPresence(accountId, chatId)
findServicesWithFeature(accountId, feature)
get(k)
getCaps(ver)
getChats(accountId)
getChatsUnreadDetails(accountId, chats)
getLogin(accountId)
getMemberDetails(accountId, chat, ids)
getMembers(accountId, chat, forModerator)
getMessage(accountId, chatId, serverId, localId) Get a single message
getMessagesAfter(accountId, chatId, after)
getMessagesAround(accountId, around)
getMessagesBefore(accountId, chatId, before)
getStreamManagement(accountId)
hasMedia(hashAlgorithm, hash)
listAccounts() List all known accounts
removeAccount(accountId, completely) Remove an account from storage
removeMedia(hashAlgorithm, hash)
searchMessages(accountId, chatId, q)
set(k, v)
storeCaps(caps)
storeChats(accountId, chats)
storeLogin(accountId, clientId, displayName, token)
storeMedia(mime, bd)
storeMembers(accountId, chatId, membersArg)
storeMemberUpdates(accountId, chat, updates, isFullList)
storeMessages(accountId, messages)
storeReaction(accountId, update)
storeService(accountId, serviceId, name, node, caps)
storeStreamManagement(accountId, sm, sortId)
syncPoint(accountId, chatId)
updateMessage(accountId, message)
updateMessageStatus(accountId, localId, status, statusText)