sqlite

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandTableQuery = `` /* 161-byte string literal not displayed */

	ParametersTableQuery = `` /* 273-byte string literal not displayed */

	SearchTableQuery = `
	CREATE VIRTUAL TABLE IF NOT EXISTS commands_fts
	USING fts5(id UNINDEXED, name, command, description);
	`

	NotebookTableQuery = `` /* 195-byte string literal not displayed */

)

table creation

View Source
const (
	InsertCommandFtsTrigger = `` /* 215-byte string literal not displayed */

	UpdateCommandFtsTrigger = `` /* 224-byte string literal not displayed */

	DeleteCommandFtsTrigger = `` /* 140-byte string literal not displayed */

)

triggers

View Source
const (
	UpsertCommandQuery = `` /* 244-byte string literal not displayed */

	UpsertParameterPartialQuery = `` /* 240-byte string literal not displayed */

	GetAllCommandsQuery = `
	SELECT id, name, description, command 
	FROM commands`

	GetCommandbyIDQuery = `
	SELECT 
		id, name, description, command 
	FROM commands
	WHERE id = ?`

	GetParametersByCommandID = `
	SELECT 
		id, name, description, value 
	FROM parameters
	WHERE command = ?`

	SearchCommandQuery = `` /* 186-byte string literal not displayed */

	DeleteCommandQuery = `DELETE FROM commands WHERE id = ?`

	DeleteParametersQuery = `DELETE FROM parameters WHERE id IN (?)`

	UpsertExplanationQuery = `` /* 187-byte string literal not displayed */

	GetExplanationByCommandID = `
	SELECT 
		command, explanation
	FROM notebook
	WHERE command = ?`

	DeleteExplanationQuery = `DELETE FROM notebook WHERE command = ?`
)

queries

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