stmt

package
v0.0.0-...-a5018ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const AllFilesByTag = `SELECT file_id FROM file_tag WHERE tag_id=?;`
View Source
const AllTagGroups = `SELECT * FROM taggroup ORDER BY utime;`
View Source
const AllTagsByDate = `` /* 200-byte string literal not displayed */
View Source
const AllTagsByName = `` /* 203-byte string literal not displayed */
View Source
const CountAllFiles = `SELECT count(*) FROM file;`
View Source
const CountDamagedFiles = `SELECT count(*) FROM file WHERE damaged>0;`
View Source
const CountFilesByName = `SELECT count(*) FROM file WHERE name=?;`
View Source
const CountFilesNeedCheck = `SELECT count(*) FROM file WHERE checked<?;`
View Source
const CreateTables = `` /* 1572-byte string literal not displayed */
View Source
const DamagedFileIDs = `SELECT id FROM file WHERE damaged>0;`
View Source
const DamagedFiles = `SELECT * FROM file WHERE damaged>0;`
View Source
const DeleteFile = `DELETE FROM file WHERE id=?;`
View Source
const DeleteTag = `DELETE FROM tag WHERE id=?;`
View Source
const DeleteTagGroup = `DELETE FROM taggroup WHERE id=?;`
View Source
const DeleteTags = `DELETE FROM file_tag WHERE file_id=? and tag_id=?;`
View Source
const GetAllFiles = `SELECT * FROM file;`
View Source
const GetDeletedFiles = `SELECT * FROM file WHERE deleted>0 ORDER BY utime;`
View Source
const GetFile = `SELECT * FROM file WHERE id=?;`
View Source
const GetFileDamaged = `SELECT damaged FROM file WHERE id=?;`
View Source
const GetFileHash = `SELECT hash FROM file WHERE id=?;`
View Source
const GetFileID = `SELECT id FROM file WHERE hash=?;`
View Source
const GetFileIDsByName = `SELECT id FROM file WHERE name=? ORDER BY ctime DESC;`
View Source
const GetFileName = `SELECT name FROM file WHERE id=?`
View Source
const GetFiles = `SELECT * FROM file WHERE deleted=0 ORDER BY ctime DESC LIMIT ?;`
View Source
const GetFilesByTag = `` /* 164-byte string literal not displayed */
View Source
const GetFilesHasThumbByTag = `` /* 210-byte string literal not displayed */
View Source
const GetFilesNeedCheck = `SELECT * FROM file WHERE checked<?;`
View Source
const GetFilesNoThumbByTag = `` /* 210-byte string literal not displayed */
View Source
const GetImages = `
  SELECT * FROM file WHERE deleted=0 and type like "image/%"
  ORDER BY ctime DESC LIMIT ?;`
View Source
const GetImagesByTag = `` /* 193-byte string literal not displayed */
View Source
const GetIntValue = `SELECT int_value FROM metadata WHERE name=?;`
View Source
const GetTag = `SELECT * FROM tag WHERE id=?;`
View Source
const GetTagCTime = `SELECT ctime FROM tag WHERE id=?;`
View Source
const GetTagGroupID = `SELECT id FROM taggroup WHERE tags=?;`
View Source
const GetTagsByFile = `SELECT tag_id FROM file_tag WHERE file_id=?;`
View Source
const GetTextValue = `SELECT text_value FROM metadata WHERE name=?;`
View Source
const InsertFile = `` /* 159-byte string literal not displayed */
View Source
const InsertFileTag = `INSERT INTO file_tag (file_id, tag_id) VALUES (?, ?);`
View Source
const InsertIntValue = `INSERT INTO metadata (name, int_value) VALUES (?, ?);`
View Source
const InsertTag = `INSERT INTO tag (id, ctime) VALUES ( ?, ?);`
View Source
const InsertTagGroup = `INSERT INTO taggroup
    (id, tags, protected, utime) VALUES (?, ?, ?, ?);`
View Source
const InsertTextValue = `INSERT INTO metadata (name, text_value) VALUES (?, ?);`
View Source
const LastTagGroup = `SELECT id FROM taggroup WHERE protected=0
    ORDER BY utime LIMIT 1;`
View Source
const RenameFilesNow = `UPDATE file SET name=?, type=?, utime=? WHERE name=?;`
View Source
const RenameTag = `UPDATE tag SET id=? WHERE id=?; `
View Source
const RenameTag_InFileTag = `UPDATE file_tag SET tag_id=? WHERE tag_id=?;`
View Source
const ReplaceFile = `UPDATE file SET size=?, hash=?, utime=?, checked=0, damaged=0 WHERE id=?;`
View Source
const SearchFileName = `
  SELECT * FROM file WHERE deleted=0 and name LIKE ? ORDER BY ctime DESC;`
View Source
const SearchImageName = `
  SELECT * FROM file WHERE deleted=0 and type like "image/%" and name LIKE ?
  ORDER BY ctime DESC;`
View Source
const SetFileChecked = `UPDATE file SET checked=?, damaged=? WHERE id=?;`
View Source
const SetFileDeletedNow = `UPDATE file SET deleted=?, utime=? WHERE id=?;`
View Source
const SetFilesCount = `UPDATE file SET count=? WHERE name=?;`
View Source
const SetTagGroupProtected = `UPDATE taggroup SET protected=? WHERE id=?;`
View Source
const TagGroupCount = `SELECT count(*) FROM taggroup`
View Source
const TotalSize = `SELECT COALESCE(sum(size),0) as totalsize FROM file;`
View Source
const UpdateIntValue = `UPDATE metadata SET int_value=? WHERE name=?;`
View Source
const UpdateNow = `UPDATE file SET utime=? WHERE id=?;`
View Source
const UpdateTagGroupNow = `UPDATE taggroup SET utime=? WHERE id=?;`
View Source
const UpdateTextValue = `UPDATE metadata SET text_value=? WHERE name=?;`

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL