stmt

package
v0.0.0-...-2ce84b7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const AllTagGroups = `SELECT * FROM taggroup ORDER BY updated_at;`
View Source
const AllTagsByDate = `` /* 145-byte string literal not displayed */
View Source
const AllTagsByName = `` /* 139-byte string literal not displayed */
View Source
const ChangeNoteType = `UPDATE note SET type=? WHERE id=?;`
View Source
const CountPatches = `SELECT count(*) FROM note_patch WHERE note_id=?;`
View Source
const CreateTables = `` /* 2358-byte string literal not displayed */
View Source
const DeleteNote = `DELETE FROM note 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 note_tag WHERE note_id=? and tag_id=?;`
View Source
const DeleteTagsByNote = `DELETE FROM note_tag WHERE note_id=?;`
View Source
const GetAllNoteIDs = `SELECT id FROM note`
View Source
const GetDeletedNotes = `SELECT * FROM note WHERE deleted>0 ORDER BY updated_at DESC;`
View Source
const GetIntValue = `SELECT int_value FROM metadata WHERE name=?;`
View Source
const GetLastNoteID = `SELECT id FROM note ORDER BY created_at DESC LIMIT 1;`
View Source
const GetNote = `SELECT * FROM note WHERE id=?;`
View Source
const GetNoteSize = `SELECT size FROM note WHERE id=?;`
View Source
const GetNotes = `SELECT * FROM note WHERE deleted=0 ORDER BY updated_at DESC;`
View Source
const GetNotesByTagID = `SELECT note_id FROM note_tag WHERE tag_id=?;`
View Source
const GetNotesByTagName = `` /* 166-byte string literal not displayed */
View Source
const GetPatchesByNote = `` /* 161-byte string literal not displayed */
View Source
const GetReminders = `SELECT * FROM note WHERE deleted=0 and remind_at<>"" ORDER BY remind_at;`
View Source
const GetTag = `SELECT * FROM tag WHERE id=?;`
View Source
const GetTagByName = `SELECT * FROM tag WHERE name=?;`
View Source
const GetTagGroup = `SELECT * FROM taggroup WHERE id=?;`
View Source
const GetTagGroupID = `SELECT id FROM taggroup WHERE tags=?;`
View Source
const GetTagID = `SELECT id FROM tag WHERE name=?;`
View Source
const GetTagsByNote = `` /* 155-byte string literal not displayed */
View Source
const GetTextValue = `SELECT text_value FROM metadata WHERE name=?;`
View Source
const InsertFile = `INSERT INTO file (
    id, name, size, type, checksum, deleted, created_at, updated_at)
    VALUES (?, ?, ?, ?, ?, ?, ?, ?);`
View Source
const InsertIntValue = `INSERT INTO metadata (name, int_value) VALUES (?, ?);`
View Source
const InsertNote = `` /* 126-byte string literal not displayed */
View Source
const InsertNoteFile = `INSERT INTO note_file (note_id, file_id) VALUES (?, ?);`
View Source
const InsertNotePatch = `INSERT INTO note_patch (note_id, patch_id) VALUES (?, ?);`
View Source
const InsertNoteTag = `INSERT INTO note_tag (note_id, tag_id) VALUES (?, ?);`
View Source
const InsertPatch = `INSERT INTO patch (id, diff) VALUES (?, ?);`
View Source
const InsertTag = `INSERT INTO tag (id, name, created_at) VALUES (?, ?, ?);`
View Source
const InsertTagGroup = `INSERT INTO taggroup (
    id, tags, protected, created_at, updated_at)
    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 updated_at LIMIT 1;`
View Source
const RenameTag = `UPDATE tag SET name=? WHERE id=?; `
View Source
const SearchNoteTitle = `SELECT * FROM note WHERE deleted=0 and title LIKE ?`
View Source
const SetNoteDeleted = `UPDATE note SET deleted=? WHERE id=?;`
View Source
const SetReminder = `UPDATE note SET remind_at=? WHERE id=?;`
View Source
const SetTagGroupProtected = `UPDATE taggroup SET protected=? WHERE id=?;`
View Source
const SetTypeTitle = `UPDATE note SET type=?, title=? WHERE id=?;`
View Source
const TagGroupCount = `SELECT count(*) FROM taggroup`
View Source
const UpdateIntValue = `UPDATE metadata SET int_value=? WHERE name=?;`
View Source
const UpdateTagGroupNow = `UPDATE taggroup SET updated_at=? WHERE id=?;`
View Source
const UpdateTextValue = `UPDATE metadata SET text_value=? WHERE name=?;`
View Source
const UpdateTitleSizeNow = `UPDATE note SET title=?, size=?, updated_at=?
    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