'Get a serialized copy of the sync table.
:param incoming: if True, get the last incoming sync, otherwise get
the last outgoing sync
:returns: list of {\'remote_id\', \'sync_point\'}'

def get_syncs(self, incoming=True):

    with self.get() as conn:
        curs = conn.execute(('\n                                                                SELECT    remote_id,    sync_point    FROM    %s_sync\n                                                ' % ('incoming' if incoming else 'outgoing')))
        result = []
        for row in curs:
            result.append({'remote_id': row[0], 'sync_point': row[1]})
        return result
