Discover Packages
github.com/nevkontakte/pat
db
package
Version:
v0.0.0-...-b672b9b
Opens a new window with list of versions in this module.
Published: Apr 25, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Bootstrap database state.
Apply migrations and seed with initial data if missing. The operation is
idempotent and should do nothing on an already set up database.
Pat records a new pat for the given Cat.
Postgres connects to a PostgreSQL database.
Cat represents a database record about a single cat.
CatByID queries the cat with the given ID from the database.
Mood corresponding to Cat's current state.
CatID is the type for Cat record's primary key and unique identifier.
const SplotchID CatID = "splotch"
SplotchID is the identifier of the OG, Splotch `Pat Junkie` the Cat.
Seed returns the noise seed for the cat, given noise type.
Mood represents Cat's current state of mind.
const (
MoodIdle Mood = "idle"
MoodIdleBlink Mood = "idle_blink"
MoodIdleHappy Mood = "idle_happy"
MoodImpatient Mood = "impatient"
MoodPat Mood = "pat"
MoodSecret Mood = "secret"
)
Source Files
¶
Directories
¶
Package dbtest contains database utilities for use in tests.
Package dbtest contains database utilities for use in tests.
Click to show internal directories.
Click to hide internal directories.