|
|
|
@ -1303,7 +1303,7 @@ func serve() {
|
|
|
|
|
|
|
|
|
|
var stmtHonkers, stmtDubbers, stmtSaveHonker, stmtUpdateFlavor, stmtUpdateCombos *sql.Stmt
|
|
|
|
|
var stmtOneXonk, stmtPublicHonks, stmtUserHonks, stmtHonksByCombo, stmtHonksByConvoy *sql.Stmt
|
|
|
|
|
var stmtHonksForUser, stmtHonksForMe, stmtDeleteHonk, stmtSaveDub *sql.Stmt
|
|
|
|
|
var stmtHonksForUser, stmtHonksForMe, stmtSaveDub *sql.Stmt
|
|
|
|
|
var stmtHonksByHonker, stmtSaveHonk, stmtFileData, stmtWhatAbout *sql.Stmt
|
|
|
|
|
var stmtFindXonk, stmtSaveDonk, stmtFindFile, stmtSaveFile *sql.Stmt
|
|
|
|
|
var stmtAddDoover, stmtGetDoovers, stmtLoadDoover, stmtZapDoover *sql.Stmt
|
|
|
|
@ -1342,7 +1342,6 @@ func prepareStatements(db *sql.DB) {
|
|
|
|
|
stmtFileData = preparetodie(db, "select media, content from files where xid = ?")
|
|
|
|
|
stmtFindXonk = preparetodie(db, "select honkid from honks where userid = ? and xid = ?")
|
|
|
|
|
stmtSaveDonk = preparetodie(db, "insert into donks (honkid, fileid) values (?, ?)")
|
|
|
|
|
stmtDeleteHonk = preparetodie(db, "delete from honks where xid = ? and honker = ? and userid = ?")
|
|
|
|
|
stmtZonkIt = preparetodie(db, "delete from honks where userid = ? and xid = ?")
|
|
|
|
|
stmtFindFile = preparetodie(db, "select fileid from files where url = ?")
|
|
|
|
|
stmtSaveFile = preparetodie(db, "insert into files (xid, name, url, media, content) values (?, ?, ?, ?, ?)")
|
|
|
|
|