func (r *Repo) lastSyncTime(ctx context.Context) (rev string, lastSync time.Time, err error) {
	u, err := r.CurrentUser()
	if err != nil {
		return "", time.Time{}, err
	}
	db, err := r.local.DB(ctx, "user-"+u)
	if err != nil {
		return "", time.Time{}, err
	}
	row, err := db.Get(ctx, lastSyncTimestampDocID)
	if err != nil {
		return "", time.Time{}, err
	}
	var doc lastSyncTimestampDoc
	if e := row.ScanDoc(&doc); e != nil {
		return "", time.Time{}, e
	}
	return doc.Rev, doc.LastSync, nil
}
// lastSyncTime returns the last time the database was synced.
lastSyncTime returns the last time the database was synced.
// lastSyncTime returns the last time the database was synced .
func (r *Repo) lastSyncTime(ctx context.Context) (rev string, lastSync time.Time, err error) {
	u, err := r.CurrentUser()
	if err != nil {
		return "", time.Time{}, err
	}
	db, err := r.local.DB(ctx, "user-"+u)
	if err != nil {
		return "", time.Time{}, err
	}
	row, err := db.Get(ctx, lastSyncTimestampDocID)
	if err != nil {
		return "", time.Time{}, err
	}
	var doc lastSyncTimestampDoc
	if e := row.ScanDoc(&doc); e != nil {
		return "", time.Time{}, e
	}
	return doc.Rev, doc.LastSync, nil
}
func ( r * Repo ) lastSyncTime ( ctx context . Context ) ( rev string , lastSync time . Time , err error ) { u , err := r . CurrentUser ( ) if err != nil { return " " , time . Time { } , err } db , err := r . local . DB ( ctx , " " + u ) if err != nil { return " " , time . Time { } , err } row , err := db . Get ( ctx , lastSyncTimestampDocID ) if err != nil { return " " , time . Time { } , err } var doc lastSyncTimestampDoc if e := row . ScanDoc ( & doc ) ; e != nil { return " " , time . Time { } , e } return doc . Rev , doc . LastSync , nil }
lastSyncTime returns the last time the database was synced.
lastSyncTime returns the last time the database was synced .