database

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

DB is the database connection

Functions

func AddStep

func AddStep(content, status string) error

AddStep adds a new step to the database

func GetSteps

func GetSteps() ([]models.Step, []models.Step, []models.Step, error)

GetSteps retrieves all steps from the database grouped by status

func GetStreamInfo

func GetStreamInfo() (models.StreamInfo, error)

GetStreamInfo retrieves the stream information from the database

func InitDB

func InitDB(filepath string) error

InitDB initializes the SQLite database

func UpdateStepStatus

func UpdateStepStatus(id int, status string) error

UpdateStepStatus updates the status of a step

func UpdateStreamInfo

func UpdateStreamInfo(info models.StreamInfo) error

UpdateStreamInfo updates the stream information in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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