queries

package
v0.0.0-...-5841338 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADD                        = "add"
	ADDDELETEDMESSAGE          = "addDeletedMessage"
	CREATEDELETEDMESSAGESTABLE = "createDeletedMessages"
	CREATENOTESTABLE           = "createNotes"
	REMOVE                     = "remove"
	SHOW                       = "show"
	SHOWDELETEDMESSAGES        = "showDeletedMessages"
)

Variables

View Source
var Q = map[string]string{
	"add":                   "insert into notes (note) values ($1)",
	"addDeletedMessage":     "insert into deletedMessages (author, timestamp, message) values ($1, $2, $3)",
	"createDeletedMessages": "create table deletedMessages(id int not null identity(1,1),author varchar(50) not null,timestamp datetime not null,message varchar(255) not null)",
	"createNotes":           "create table notes(id int not null identity(1,1),note varchar(255) not null)",
	"remove":                "delete from notes where id = $1",
	"show":                  "select * from notes",
	"showDeletedMessages":   "select * from deletedMessages",
}

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
JackTT - Gopher 🇻🇳