Skip to main content

Interface: SiteRepositoryTransactionAdapter

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

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

Bulk insert sites within the active transaction.

Parameters

sites

SiteRow[]

Returns

void


delete

delete: (identifier: string) => boolean;

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

Delete a site by identifier within the active transaction.

Parameters

identifier

string

Returns

boolean


deleteAll

deleteAll: () => void;

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

Delete all sites within the active transaction.

Returns

void


findAll

findAll: () => SiteRow[];

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

Read all site rows within the active transaction.

Returns

SiteRow[]


findByIdentifier

findByIdentifier: (identifier: string) =>
| SiteRow
| undefined;

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

Read one site row within the active transaction.

Parameters

identifier

string

Returns

| SiteRow | undefined


upsert

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

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

Upsert a site record within the active transaction.

Parameters

site

Pick<SiteRow, SiteRowUpsertFields>

Returns

void