simplex-chat-6.5.0.7
Safe HaskellNone
LanguageHaskell2010

Simplex.Chat.Store

Synopsis

Documentation

data DBStore #

data StoreError Source #

Constructors

SEDuplicateName 
SEUserNotFound 

Fields

SEUserNotFoundByName 
SEUserNotFoundByContactId 

Fields

SEUserNotFoundByGroupId 

Fields

SEUserNotFoundByFileId 
SEUserNotFoundByContactRequestId 

Fields

SEContactNotFound 

Fields

SEContactNotFoundByName 
SEContactNotFoundByMemberId 
SEContactNotReady 
SEDuplicateContactLink 
SEUserContactLinkNotFound 
SEContactRequestNotFound 

Fields

SEContactRequestNotFoundByName 
SEInvalidContactRequestEntity 

Fields

SEInvalidBusinessChatContactRequest 
SEGroupNotFound 

Fields

SEGroupNotFoundByName 

Fields

SEGroupMemberNameNotFound 
SEGroupMemberNotFound 
SEGroupMemberNotFoundByIndex 

Fields

SEMemberRelationsVectorNotFound 
SEGroupHostMemberNotFound 

Fields

SEGroupMemberNotFoundByMemberId 

Fields

SEMemberContactGroupMemberNotFound 

Fields

SEInvalidMemberRelationUpdate 
SEGroupWithoutUser 
SEDuplicateGroupMember 
SEGroupAlreadyJoined 
SEGroupInvitationNotFound 
SENoteFolderAlreadyExists 
SENoteFolderNotFound 
SEUserNoteFolderNotFound 
SESndFileNotFound 
SESndFileInvalid 
SERcvFileNotFound 
SERcvFileDescrNotFound 
SEFileNotFound 
SERcvFileInvalid 
SERcvFileInvalidDescrPart 
SELocalFileNoTransfer 
SESharedMsgIdNotFoundByFileId 
SEFileIdNotFoundBySharedMsgId 
SESndFileNotFoundXFTP 
SERcvFileNotFoundXFTP 
SEConnectionNotFound 
SEConnectionNotFoundById 

Fields

SEConnectionNotFoundByMemberId 
SEPendingConnectionNotFound 

Fields

SEUniqueID 
SELargeMsg 
SEInternalError 

Fields

SEDBException 

Fields

SEDBBusyError 

Fields

SEBadChatItem 

Fields

SEChatItemNotFound 

Fields

SEChatItemNotFoundByText 

Fields

SEChatItemSharedMsgIdNotFound 
SEChatItemNotFoundByFileId 
SEChatItemNotFoundByContactId 

Fields

SEChatItemNotFoundByGroupId 

Fields

SEProfileNotFound 

Fields

SEDuplicateGroupLink 

Fields

SEGroupLinkNotFound 

Fields

SEHostMemberIdNotFound 

Fields

SEContactNotFoundByFileId 
SENoGroupSndStatus 
SEDuplicateGroupMessage 
SERemoteHostNotFound 
SERemoteHostUnknown 
SERemoteHostDuplicateCA 
SERemoteCtrlNotFound 
SERemoteCtrlDuplicateCA 
SEProhibitedDeleteUser 

Fields

SEOperatorNotFound 

Fields

SEUsageConditionsNotFound 
SEInvalidQuote 
SEInvalidMention 
SEInvalidDeliveryTask 

Fields

SEDeliveryTaskNotFound 

Fields

SEInvalidDeliveryJob 

Fields

SEDeliveryJobNotFound 

Fields

SEWorkItemError

Error when reading work item that suspends worker - do not use!

Fields

Instances

Instances details
FromJSON StoreError Source # 
Instance details

Defined in Simplex.Chat.Store.Shared

Methods

parseJSON :: Value -> Parser StoreError

parseJSONList :: Value -> Parser [StoreError]

omittedField :: Maybe StoreError

ToJSON StoreError Source # 
Instance details

Defined in Simplex.Chat.Store.Shared

Methods

toJSON :: StoreError -> Value

toEncoding :: StoreError -> Encoding

toJSONList :: [StoreError] -> Value

toEncodingList :: [StoreError] -> Encoding

omitField :: StoreError -> Bool

Exception StoreError Source # 
Instance details

Defined in Simplex.Chat.Store.Shared

Methods

toException :: StoreError -> SomeException

fromException :: SomeException -> Maybe StoreError

displayException :: StoreError -> String

Show StoreError Source # 
Instance details

Defined in Simplex.Chat.Store.Shared

Methods

showsPrec :: Int -> StoreError -> ShowS

show :: StoreError -> String

showList :: [StoreError] -> ShowS

AnyStoreError StoreError Source # 
Instance details

Defined in Simplex.Chat.Store.Shared

AnyError StoreError Source # 
Instance details

Defined in Simplex.Chat.Store.Shared

Methods

fromSomeException :: SomeException -> StoreError

data UserMsgReceiptSettings Source #

Constructors

UserMsgReceiptSettings 

Fields

Instances

Instances details
Show UserMsgReceiptSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

data UserContactLink Source #

Instances

data GroupLinkInfo Source #

Instances

Instances details
Show GroupLinkInfo Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

showsPrec :: Int -> GroupLinkInfo -> ShowS

show :: GroupLinkInfo -> String

showList :: [GroupLinkInfo] -> ShowS

data AddressSettings Source #

Constructors

AddressSettings 

Fields

Instances

Instances details
FromJSON AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

parseJSON :: Value -> Parser AddressSettings

parseJSONList :: Value -> Parser [AddressSettings]

omittedField :: Maybe AddressSettings

ToJSON AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Show AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

showsPrec :: Int -> AddressSettings -> ShowS

show :: AddressSettings -> String

showList :: [AddressSettings] -> ShowS

Eq AddressSettings Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

data AutoAccept Source #

Instances

Instances details
FromJSON AutoAccept Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

parseJSON :: Value -> Parser AutoAccept

parseJSONList :: Value -> Parser [AutoAccept]

omittedField :: Maybe AutoAccept

ToJSON AutoAccept Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

toJSON :: AutoAccept -> Value

toEncoding :: AutoAccept -> Encoding

toJSONList :: [AutoAccept] -> Value

toEncodingList :: [AutoAccept] -> Encoding

omitField :: AutoAccept -> Bool

Show AutoAccept Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

showsPrec :: Int -> AutoAccept -> ShowS

show :: AutoAccept -> String

showList :: [AutoAccept] -> ShowS

Eq AutoAccept Source # 
Instance details

Defined in Simplex.Chat.Store.Profiles

Methods

(==) :: AutoAccept -> AutoAccept -> Bool

(/=) :: AutoAccept -> AutoAccept -> Bool

createChatStore :: DBOpts -> MigrationConfig -> IO (Either MigrationError DBStore) Source #

migrations :: [Migration] Source #

The list of migrations in ascending order by date

withTransaction :: DBStore -> (Connection -> IO a) -> IO a #