// readAuthItem selects and reads an auth DB entry
readAuthItem selects and reads an auth DB entry
// readAuthItem selects and reads an auth DB entry
func readAuthItem(db *sql.DB, name string) (string, error) {
	sql_readAuthItem := `SELECT password FROM auth WHERE name = ?;`
	stmt, err := db.Prepare(sql_readAuthItem)
	if err != nil {
		return "", err
	}
	defer stmt.Close()
	rows, err := stmt.Query(name)
	if err != nil {
		return "", err
	}
	var r string
	for rows.Next() {
		err = rows.Scan(&r)
	}
	return r, nil
}
func readAuthItem ( db * sql . DB , name string ) ( string , error ) { sql_readAuthItem := `SELECT password FROM auth WHERE name = ?;` stmt , err := db . Prepare ( sql_readAuthItem ) if err != nil { return " " , err } defer stmt . Close ( ) rows , err := stmt . Query ( name ) if err != nil { return " " , err } var r string for rows . Next ( ) { err = rows . Scan ( & r ) } return r , nil }
readAuthItem selects and reads an auth DB entry
readAuthItem selects and reads an auth DB entry