Example #1
0
File: db.go Project: keep94/vsafe
func (s Store) UpdateUser(
	t db.Transaction, user *vsafe.User) error {
	return sqlite_db.ToDoer(s.db, t).Do(func(conn *sqlite.Conn) error {
		return sqlite_db.UpdateRow(conn, &rawUser{}, user, kSQLUpdateUser)
	})
}
Example #2
0
File: db.go Project: keep94/vsafe
func (s Store) UpdateEntry(t db.Transaction, entry *vsafe.Entry) error {
	return sqlite_db.ToDoer(s.db, t).Do(func(conn *sqlite.Conn) error {
		return sqlite_db.UpdateRow(conn, &rawEntry{}, entry, kSQLUpdateEntry)
	})
}