Skip to main content

Class: StorageEnginePrismaPostgres

storage-engine-prisma-postgres.StorageEnginePrismaPostgres

Implements

Constructors

constructor

new StorageEnginePrismaPostgres(dbUrl)

Parameters

NameType
dbUrlstring

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:4

Methods

createConversation

createConversation(conversation): Promise<IConversation>

Parameters

NameType
conversationPartial<IConversation>

Returns

Promise<IConversation>

Implementation of

IStorageEngine.createConversation

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:10


createMessage

createMessage(message): Promise<IMessage>

Parameters

NameType
messagePartial<IMessage>

Returns

Promise<IMessage>

Implementation of

IStorageEngine.createMessage

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:15


createUser

createUser(user): Promise<IUser>

Parameters

NameType
userPartial<IUser>

Returns

Promise<IUser>

Implementation of

IStorageEngine.createUser

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:6


deleteConversation

deleteConversation(id): Promise<void>

Parameters

NameType
idstring

Returns

Promise<void>

Implementation of

IStorageEngine.deleteConversation

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:14


deleteMessage

deleteMessage(id): Promise<void>

Parameters

NameType
idstring

Returns

Promise<void>

Implementation of

IStorageEngine.deleteMessage

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:19


deleteUser

deleteUser(id): Promise<void>

Parameters

NameType
idstring

Returns

Promise<void>

Implementation of

IStorageEngine.deleteUser

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:9


findConversation

findConversation(filter): Promise<IConversation>

Parameters

NameType
filterIConversationFilter

Returns

Promise<IConversation>

Implementation of

IStorageEngine.findConversation

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:12


findConversations

findConversations(filter?, orderBy?, skip?, take?): Promise<IConversation[]>

Parameters

NameType
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-postgres/dist/index.d.ts:13


findMessage

findMessage(filter): Promise<IMessage>

Parameters

NameType
filterIMessageFilter

Returns

Promise<IMessage>

Implementation of

IStorageEngine.findMessage

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:17


findMessages

findMessages(filter?, orderBy?, skip?, take?): Promise<IMessage[]>

Parameters

NameType
filter?IMessageFilter
orderBy?Partial<Record<keyof IMessage, "asc" | "desc">>
skip?number
take?number

Returns

Promise<IMessage[]>

Implementation of

IStorageEngine.findMessages

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:18


findUser

findUser(filter): Promise<IUser>

Parameters

NameType
filterIUserFilter

Returns

Promise<IUser>

Implementation of

IStorageEngine.findUser

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:8


init

init(): Promise<void>

Returns

Promise<void>

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:5


updateConversation

updateConversation(id, data): Promise<IConversation>

Parameters

NameType
idstring
dataPartial<IConversation>

Returns

Promise<IConversation>

Implementation of

IStorageEngine.updateConversation

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:11


updateMessage

updateMessage(id, data): Promise<IMessage>

Parameters

NameType
idstring
dataPartial<IMessage>

Returns

Promise<IMessage>

Implementation of

IStorageEngine.updateMessage

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:16


updateUser

updateUser(id, data): Promise<IUser>

Parameters

NameType
idstring
dataPartial<IUser>

Returns

Promise<IUser>

Implementation of

IStorageEngine.updateUser

Defined in

packages/convostack-storage-engine-prisma-postgres/dist/index.d.ts:7