Class: StorageEnginePrismaMySQL
storage-engine-prisma-mysql.StorageEnginePrismaMySQL
Implements
Constructors
constructor
• new StorageEnginePrismaMySQL(dbUrl
)
Parameters
Name | Type |
---|---|
dbUrl | string |
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:4
Methods
createConversation
▸ createConversation(conversation
): Promise
<IConversation
>
Parameters
Name | Type |
---|---|
conversation | Partial <IConversation > |
Returns
Promise
<IConversation
>
Implementation of
IStorageEngine.createConversation
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:10
createMessage
▸ createMessage(message
): Promise
<IMessage
>
Parameters
Name | Type |
---|---|
message | Partial <IMessage > |
Returns
Promise
<IMessage
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:15
createUser
▸ createUser(user
): Promise
<IUser
>
Parameters
Name | Type |
---|---|
user | Partial <IUser > |
Returns
Promise
<IUser
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:6
deleteConversation
▸ deleteConversation(id
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<void
>
Implementation of
IStorageEngine.deleteConversation
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:14
deleteMessage
▸ deleteMessage(id
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<void
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:19
deleteUser
▸ deleteUser(id
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
Returns
Promise
<void
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:9
findConversation
▸ findConversation(filter
): Promise
<IConversation
>
Parameters
Name | Type |
---|---|
filter | IConversationFilter |
Returns
Promise
<IConversation
>
Implementation of
IStorageEngine.findConversation
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:12
findConversations
▸ findConversations(filter?
, orderBy?
, skip?
, take?
): Promise
<IConversation
[]>
Parameters
Name | Type |
---|---|
filter? | IConversationFilter |
orderBy? | Partial <Record <keyof IConversation , "asc" | "desc" >> |
skip? | number |
take? | number |
Returns
Promise
<IConversation
[]>
Implementation of
IStorageEngine.findConversations
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:13
findMessage
▸ findMessage(filter
): Promise
<IMessage
>
Parameters
Name | Type |
---|---|
filter | IMessageFilter |
Returns
Promise
<IMessage
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:17
findMessages
▸ findMessages(filter?
, orderBy?
, skip?
, take?
): Promise
<IMessage
[]>
Parameters
Name | Type |
---|---|
filter? | IMessageFilter |
orderBy? | Partial <Record <keyof IMessage , "asc" | "desc" >> |
skip? | number |
take? | number |
Returns
Promise
<IMessage
[]>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:18
findUser
▸ findUser(filter
): Promise
<IUser
>
Parameters
Name | Type |
---|---|
filter | IUserFilter |
Returns
Promise
<IUser
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:8
init
▸ init(): Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:5
updateConversation
▸ updateConversation(id
, data
): Promise
<IConversation
>
Parameters
Name | Type |
---|---|
id | string |
data | Partial <IConversation > |
Returns
Promise
<IConversation
>
Implementation of
IStorageEngine.updateConversation
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:11
updateMessage
▸ updateMessage(id
, data
): Promise
<IMessage
>
Parameters
Name | Type |
---|---|
id | string |
data | Partial <IMessage > |
Returns
Promise
<IMessage
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:16
updateUser
▸ updateUser(id
, data
): Promise
<IUser
>
Parameters
Name | Type |
---|---|
id | string |
data | Partial <IUser > |
Returns
Promise
<IUser
>
Implementation of
Defined in
packages/convostack-storage-engine-prisma-mysql/dist/index.d.ts:7