MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / insertReview

Function insertReview

app/src/sqlite/review.ts:54–57  ·  view source on GitHub ↗
(review: Review)

Source from the content-addressed store, hash-verified

52
53export const reviewCollectionMethods = {
54 async insertReview(review: Review) {
55 const entity = toEntity(review)
56 await ky.insertInto('review').values(entity).execute()
57 },
58 async bulkUploadReview(reviews: Review[]) {
59 const entities = reviews.map(toEntity)
60 const batches = chunk(entities, 1000)

Callers

nothing calls this directly

Calls 1

toEntityFunction · 0.85

Tested by

no test coverage detected