M shared/storage/sqlite/db/query.sql.go →
shared/storage/sqlite/db/query.sql.go
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.headers,
+ file.file_id, file.url_id, file.content_type, file.last_modified, file.title, file.etag, file.headers,
content.content_id, content.file_id, content.encoding, content.body
FROM url
INNER JOIN file
&i.File.LastModified,
&i.File.Title,
&i.File.Etag,
- &i.File.StyleHash,
&i.File.Headers,
&i.Content.ContentID,
&i.Content.FileID,
const insertFile = `-- name: InsertFile :execlastid
INSERT INTO file (
- url_id, content_type, last_modified, etag, style_hash, title, headers
+ url_id, content_type, last_modified, etag, title, headers
)
VALUES (
?1,
?3,
?4,
?5,
- ?6,
- ?7
+ ?6
)
`
ContentType string
LastModified int64
Etag string
- StyleHash string
Title string
Headers []byte
}
arg.ContentType,
arg.LastModified,
arg.Etag,
- arg.StyleHash,
arg.Title,
arg.Headers,
)