Documentation ¶
Overview ¶
Package pqkeydb is a simple key-value database on top of postgres
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBSchemas = []string{
`
CREATE TABLE IF NOT EXISTS keydb (
guild_id BIGINT NOT NULL,
key TEXT NOT NULL,
new BOOLEAN NOT NULl,
value TEXT NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
PRIMARY KEY (guild_id, key)
)
`,
}
DBSchemas is a slice of commands that should be ran to initialize the database
View Source
var ErrKeyNotFound = errors.NewPlain("Key not found")
ErrKeyNotFound is returned when the key is not found
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB represents a database
Click to show internal directories.
Click to hide internal directories.