generate SQL files
1 file changed, 7 insertions(+), 3 deletions(-)
changed files
M internal/storage/sqlite/db/query.sql.go → internal/storage/sqlite/db/query.sql.go
@@ -27,7 +27,7 @@ } const getFile = `-- name: GetFile :many SELECT - file.file_id, file.url_id, file.content_type, file.last_modified, file.title, file.etag, file.style_hash, + file.file_id, file.url_id, file.content_type, file.last_modified, file.title, file.etag, file.style_hash, file.headers, content.content_id, content.file_id, content.encoding, content.body FROM url INNER JOIN file@@ -60,6 +60,7 @@ &i.File.LastModified, &i.File.Title, &i.File.Etag, &i.File.StyleHash, + &i.File.Headers, &i.Content.ContentID, &i.Content.FileID, &i.Content.Encoding,@@ -95,14 +96,15 @@ return err } const insertFile = `-- name: InsertFile :execlastid -INSERT INTO file (url_id, content_type, last_modified, etag, style_hash, title) +INSERT INTO file (url_id, content_type, last_modified, etag, style_hash, title, headers) VALUES ( ?1, ?2, ?3, ?4, ?5, - ?6 + ?6, + ?7 ) `@@ -113,6 +115,7 @@ LastModified int64 Etag string StyleHash string Title string + Headers []byte } func (q *Queries) InsertFile(ctx context.Context, arg InsertFileParams) (int64, error) {@@ -123,6 +126,7 @@ arg.LastModified, arg.Etag, arg.StyleHash, arg.Title, + arg.Headers, ) if err != nil { return 0, err