English
Appearance
basalt / comments-sqlite/src / SqliteCommentStore
Defined in: comments-sqlite/src/index.ts:86
CommentStore
> new SqliteCommentStore(db): SqliteCommentStore
db
SqliteCommentStore
Defined in: comments-sqlite/src/index.ts:87
DatabaseSync
> create(comment): Promise<void>
comment
Promise
void
Defined in: comments-sqlite/src/index.ts:89
Comment
Promise<void>
CommentStore.create
create
> delete(tenantId, id): Promise<void>
tenantId
id
Defined in: comments-sqlite/src/index.ts:160
string
CommentStore.delete
delete
> find(tenantId, id): Promise<Comment | null>
null
Defined in: comments-sqlite/src/index.ts:112
Promise<Comment | null>
CommentStore.find
find
> list(tenantId, resourceType, resourceId): Promise<Comment[]>
resourceType
resourceId
Defined in: comments-sqlite/src/index.ts:119
Every comment on a resource (the whole thread), oldest first.
Promise<Comment[]>
CommentStore.list
list
> update(tenantId, id, patch): Promise<Comment | null>
patch
Defined in: comments-sqlite/src/index.ts:128
CommentPatch
CommentStore.update
update
basalt / comments-sqlite/src / SqliteCommentStore
Class: SqliteCommentStore
Defined in: comments-sqlite/src/index.ts:86
Implements
CommentStoreConstructors
Constructor
> new SqliteCommentStore(
db):SqliteCommentStoreDefined in: comments-sqlite/src/index.ts:87
Parameters
db
DatabaseSyncReturns
SqliteCommentStoreMethods
create()
> create(
comment):Promise<void>Defined in: comments-sqlite/src/index.ts:89
Parameters
comment
CommentReturns
Promise<void>Implementation of
CommentStore.createdelete()
> delete(
tenantId,id):Promise<void>Defined in: comments-sqlite/src/index.ts:160
Parameters
tenantId
stringid
stringReturns
Promise<void>Implementation of
CommentStore.deletefind()
> find(
tenantId,id):Promise<Comment|null>Defined in: comments-sqlite/src/index.ts:112
Parameters
tenantId
stringid
stringReturns
Promise<Comment|null>Implementation of
CommentStore.findlist()
> list(
tenantId,resourceType,resourceId):Promise<Comment[]>Defined in: comments-sqlite/src/index.ts:119
Every comment on a resource (the whole thread), oldest first.
Parameters
tenantId
stringresourceType
stringresourceId
stringReturns
Promise<Comment[]>Implementation of
CommentStore.listupdate()
> update(
tenantId,id,patch):Promise<Comment|null>Defined in: comments-sqlite/src/index.ts:128
Parameters
tenantId
stringid
stringpatch
CommentPatchReturns
Promise<Comment|null>Implementation of
CommentStore.update