Skip to main content

Interface: SiteRepositoryTransactionAdapter

Defined in: electron/services/database/SiteRepository.ts:104

Operations available within a site repository transaction context.

Remarks

Instances of this adapter are scoped to a single transaction and should not be retained beyond the transaction boundary.

Properties

bulkInsert

bulkInsert: (sites: SiteRow[]) => void

Defined in: electron/services/database/SiteRepository.ts:106

Bulk insert sites within the active transaction.

Parameters

sites

SiteRow[]

Returns

void


delete

delete: (identifier: string) => boolean

Defined in: electron/services/database/SiteRepository.ts:108

Delete a site by identifier within the active transaction.

Parameters

identifier

string

Returns

boolean


deleteAll

deleteAll: () => void

Defined in: electron/services/database/SiteRepository.ts:110

Delete all sites within the active transaction.

Returns

void


upsert

upsert: (site: Pick<SiteRow, SiteRowUpsertFields>) => void

Defined in: electron/services/database/SiteRepository.ts:112

Upsert a site record within the active transaction.

Parameters

site

Pick<SiteRow, SiteRowUpsertFields>

Returns

void