MCPcopy Index your code
hub / github.com/Xyntopia/taskyon / createTaskyonDatabase

Function createTaskyonDatabase

src/modules/rxdb.ts:136–151  ·  view source on GitHub ↗
(
  name: string
)

Source from the content-addressed store, hash-verified

134
135// Function to create the database
136export async function createTaskyonDatabase(
137 name: string
138): Promise<TaskyonDatabase> {
139 const db: TaskyonDatabase =
140 await createRxDatabase<TaskyonDatabaseCollections>({
141 name,
142 storage: getRxStorageDexie(),
143 });
144
145 await db.addCollections({
146 llmtasks: { schema: llmTaskSchema },
147 filemappings: { schema: fileMappingSchema },
148 });
149
150 return db;
151}
152
153/*async function main() {
154 const db = await createDatabase("")

Callers 1

getTaskyonDBFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected