MCPcopy Create free account
hub / github.com/ShipSecAI/studio / create

Method create

backend/src/storage/files.repository.ts:21–29  ·  view source on GitHub ↗
(data: NewFile)

Source from the content-addressed store, hash-verified

19 ) {}
20
21 async create(data: NewFile): Promise<File> {
22 const [file] = await this.db
23 .insert(files)
24 .values({
25 ...data,
26 })
27 .returning();
28 return file;
29 }
30
31 async findById(id: string, options: FileQueryOptions = {}): Promise<File | null> {
32 const conditions: SQL[] = [eq(files.id, id)];

Callers 9

handleSubmitFunction · 0.45
handleSaveFunction · 0.45
apiKeyStore.tsFile · 0.45
secretStore.tsFile · 0.45
bootstrapFunction · 0.45
createScheduleMethod · 0.45
uploadFileMethod · 0.45
generateOpenApiFunction · 0.45

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected