stmt

package
v0.0.0-...-453d458 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const AllFilesInBucket = `` /* 351-byte string literal not displayed */
View Source
const AllPicsInBucket = `` /* 380-byte string literal not displayed */
View Source
const BucketCountFiles = `SELECT count(*) FROM file
	INNER JOIN bucket ON file.bucket_name = bucket.name
	WHERE bucket.id=?;`
View Source
const BucketTotalSize = `SELECT COALESCE(sum(size),0) as totalsize FROM file
	INNER JOIN bucket ON file.bucket_name = bucket.name
	WHERE bucket.id=?;`
View Source
const CheckFile = `UPDATE file SET checked=?, damaged=? WHERE id=?;`
View Source
const CountAllFiles = `SELECT count(*) FROM file;`
View Source
const CountDamagedFiles = `SELECT count(*) FROM file WHERE damaged=TRUE;`
View Source
const CountFilesInBucket = `SELECT count(*) FROM file WHERE bucket_name=?;`
View Source
const CountFilesNeedCheck = `SELECT count(*) FROM file WHERE checked<?;`
View Source
const CreateTables = `` /* 1448-byte string literal not displayed */
View Source
const DeleteBucket = `DELETE FROM bucket WHERE id=?;`
View Source
const DeleteFile = `DELETE FROM file WHERE id=?;`
View Source
const GetAllBuckets = `SELECT * FROM bucket ORDER BY encrypted;`
View Source
const GetAllFiles = `SELECT * FROM file;`
View Source
const GetAllFilesLimit = `` /* 332-byte string literal not displayed */

Bug: 有注入風險, 但这是單用戶系統, 因此風險可控.

View Source
const GetAllKeywords = `SELECT file.keywords FROM file
	GROUP BY file.keywords
	ORDER BY file.keywords;`
View Source
const GetAllPicsLimit = `` /* 364-byte string literal not displayed */
View Source
const GetBucket = `SELECT * FROM bucket WHERE id=?;`
View Source
const GetBucketByName = `SELECT * FROM bucket WHERE name=?;`
View Source
const GetDamagedFiles = `` /* 329-byte string literal not displayed */
View Source
const GetFileByChecksum = `SELECT * FROM file WHERE checksum=?;`
View Source
const GetFileByID = `SELECT * FROM file WHERE id=?;`
View Source
const GetFileByName = `SELECT * FROM file WHERE name=?;`
View Source
const GetFilePlus = `` /* 301-byte string literal not displayed */
View Source
const GetFilePlusByName = `` /* 303-byte string literal not displayed */
View Source
const GetFilesNeedCheck = `SELECT * FROM file WHERE checked<?;`
View Source
const GetPublicBuckets = `SELECT * FROM bucket WHERE encrypted=FALSE;`
View Source
const GetPublicFilesLimit = `` /* 359-byte string literal not displayed */

Bug: 有注入風險, 但这是單用戶系統, 因此風險可控.

View Source
const GetPublicKeywords = `` /* 162-byte string literal not displayed */
View Source
const GetPublicPicsLimit = `` /* 396-byte string literal not displayed */
View Source
const InsertBucket = `INSERT INTO bucket (
	name, title, subtitle, encrypted
) VALUES (?, ?, ?, ?);`
View Source
const InsertBucketWithID = `INSERT INTO bucket (
	id, name, title, subtitle, encrypted
) VALUES (?, ?, ?, ?, ?);`
View Source
const InsertFile = `` /* 190-byte string literal not displayed */
View Source
const InsertFileWithID = `` /* 197-byte string literal not displayed */
View Source
const MoveFileToBucket = `UPDATE file SET bucket_name=? WHERE id=?;`
View Source
const PublicFilesInBucket = `` /* 383-byte string literal not displayed */
View Source
const PublicPicsInBucket = `` /* 412-byte string literal not displayed */
View Source
const SearchAllFiles = `` /* 387-byte string literal not displayed */
View Source
const SearchAllPics = `` /* 421-byte string literal not displayed */
View Source
const SearchPublicFiles = `` /* 419-byte string literal not displayed */
View Source
const SearchPublicPics = `` /* 448-byte string literal not displayed */
View Source
const TotalSize = `SELECT COALESCE(sum(size),0) as totalsize FROM file;`
View Source
const UpdateBackupFileInfo = `` /* 149-byte string literal not displayed */
View Source
const UpdateBucketInfo = `UPDATE bucket SET name=?, title=?, subtitle=?
	WHERE id=?;`
View Source
const UpdateBucketName = `UPDATE bucket SET name=? WHERE id=?;`
View Source
const UpdateBucketTitle = `UPDATE bucket SET title=?, subtitle=? WHERE id=?;`
View Source
const UpdateChecksumAndBucket = `UPDATE file
	SET checksum=?, bucket_name=? WHERE id=?;`
View Source
const UpdateFileContent = `UPDATE file
	SET checksum=?, size=?, utime=?, damaged=FALSE WHERE id=?;`
View Source
const UpdateFileInfo = `UPDATE file SET name=?, notes=?,
	keywords=?, type=?, like=?, ctime=?, utime=? WHERE id=?;`

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