func (s Store) UserByName( t db.Transaction, name string, user *vsafe.User) error { return sqlite_db.ToDoer(s.db, t).Do(func(conn *sqlite.Conn) error { return sqlite_db.ReadSingle( conn, &rawUser{}, vsafedb.ErrNoSuchId, user, kSQLUserByName, name) }) }
func (s Store) EntryByIdWithEtag( t db.Transaction, id int64, entry *vsafe.EntryWithEtag) error { return sqlite_db.ToDoer(s.db, t).Do(func(conn *sqlite.Conn) error { return sqlite_db.ReadSingle( conn, &rawEntry{}, vsafedb.ErrNoSuchId, entry, kSQLEntryById, id) }) }