model

package
v0.0.0-...-ba0247b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCounter

func GetCounter(db *sqlx.DB) (int, error)

func InitCounterTable

func InitCounterTable(db *sqlx.DB) error

func UpdateCounterValue

func UpdateCounterValue(db *sqlx.DB, value int) error

Types

type Counter

type Counter struct {
	ID    int `db:"id"`
	Value int `db:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL