initial commit

This commit is contained in:
2023-03-19 22:13:49 -04:00
commit 717c9e08d6
12 changed files with 367 additions and 0 deletions

14
sql/photos.go Normal file
View File

@@ -0,0 +1,14 @@
package sql
func (dbClient *SqlDb) GetPhoto(id uint) string {
var photo string
row := dbClient.db.QueryRow("SELECT photo from photos where id = ?", id)
err := row.Scan(&photo)
if err != nil {
panic(err)
}
return photo
}