create file into db

This commit is contained in:
m
2026-07-12 09:15:06 +02:00
parent ab3957040d
commit c2e0c9fce4
9 changed files with 122 additions and 37 deletions
+3 -4
View File
@@ -7,7 +7,6 @@ package db
import (
"context"
"database/sql"
)
const createFile = `-- name: CreateFile :one
@@ -20,9 +19,9 @@ RETURNING id, name, storage_key, checksum, created_at, updated_at, deleted_at
`
type CreateFileParams struct {
Name string `json:"name"`
StorageKey string `json:"storage_key"`
Checksum sql.NullString `json:"checksum"`
Name string `json:"name"`
StorageKey string `json:"storage_key"`
Checksum string `json:"checksum"`
}
func (q *Queries) CreateFile(ctx context.Context, arg CreateFileParams) (File, error) {