16 lines
311 B
TypeScript
16 lines
311 B
TypeScript
import { Database } from "@pkg/db";
|
|
|
|
export class ProductRepository {
|
|
private db: Database;
|
|
|
|
constructor(db: Database) {
|
|
this.db = db;
|
|
}
|
|
|
|
// TODO: compelte the crud method implementation
|
|
async listAllProducts() {}
|
|
async createProduct() {}
|
|
async updateProduct() {}
|
|
async deleteProduct() {}
|
|
}
|