Feat: finish object storage

This commit is contained in:
2025-12-07 21:24:33 +08:00
parent b609421a6e
commit 203a787063
16 changed files with 232 additions and 48 deletions

View File

@@ -184,3 +184,13 @@ func (self *BunDatabase) UpdateAliases(
return nil
})
}
func (self *BunDatabase) InsertImage(
ctx context.Context,
image *models.Image,
) error {
_, err := self.db.NewInsert().
Model(image).
Exec(ctx)
return err
}