- Added AuthRepository for user and settings management with CRUD operations. - Introduced CertificateRepository to handle domains, certificates, and requirements. - Created MetricsRepository for managing metrics and logs. - Developed PlatformRepository for platform services and resources management. - Established RegistryRepository for registry and token operations. - Implemented ServiceRepository for CRUD operations on services. - Defined types and interfaces in types.ts for database interactions.
14 lines
271 B
TypeScript
14 lines
271 B
TypeScript
/**
|
|
* Base repository class with common query methods
|
|
*/
|
|
|
|
import type { TBindValue, TQueryFunction } from './types.ts';
|
|
|
|
export abstract class BaseRepository {
|
|
protected query: TQueryFunction;
|
|
|
|
constructor(queryFn: TQueryFunction) {
|
|
this.query = queryFn;
|
|
}
|
|
}
|