MCPcopy Create free account
hub / github.com/9d8dev/directory / getAllCategories

Function getAllCategories

lib/data.ts:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20export async function getAllCategories(): Promise<Category[]> {
21 return await db.select().from(categories);
22}
23
24export async function getBookmarkById(id: number): Promise<(Bookmark & { category: Category | null }) | null> {
25 const results = await db

Callers 2

HomeFunction · 0.90
AdminPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected