database

package
v0.0.0-...-3124325 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

func GetMessages

func GetMessages() ([]map[string]interface{}, error)

GetMessages retrieves all messages from the database

func GetUserProfile

func GetUserProfile(userID string) (*model.User, error)

GetUserProfile retrieves the user's profile data based on user ID

func InitDB

func InitDB()

InitDB installs the neccessary drivers and environment required to run the database.

func InsertMessage

func InsertMessage(content string, sender string) error

InsertMessage inserts a new message into 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