Skip to main content

Interface: SiteRepositoryTransactionAdapter

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

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:91

Bulk insert sites within the active transaction.

Parameters

sites

SiteRow[]

Returns

void


delete()

delete: (identifier: string) => boolean

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

Delete a site by identifier within the active transaction.

Parameters

identifier

string

Returns

boolean


deleteAll()

deleteAll: () => void

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

Delete all sites within the active transaction.

Returns

void


upsert()

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

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

Upsert a site record within the active transaction.

Parameters

site

Pick<SiteRow, SiteRowUpsertFields>

Returns

void