set method

  1. @override
Future<void> set(
  1. String table,
  2. DateTime timestamp
)
override

Save the sync time for a table.

Implementation

@override
Future<void> set(String table, DateTime timestamp) async {
  await _db.customStatement(
    'INSERT OR REPLACE INTO dynos_sync_timestamps (table_name, last_synced_at) VALUES (?, ?)',
    [table, timestamp.toUtc().millisecondsSinceEpoch],
  );
}