syncUpdate<T extends Table, D> method
SyncUpdateStatement<T, D>
syncUpdate<T extends Table, D>(
- TableInfo<
T, D> table
The replacement method for Moor's update(). Use this method to ensure compatibility with the synchronization process.
Please read the Client Side Moor Code Adaptation
in the netcoresync_moor
documentation for more details.
Implementation
SyncUpdateStatement<T, D> syncUpdate<T extends Table, D>(
TableInfo<T, D> table,
) {
if (!netCoreSyncInitialized) throw NetCoreSyncNotInitializedException();
TableInfo<T, D> normalizedTable = table;
if (table is SyncBaseTable<T, D>) {
normalizedTable =
dataAccess.engine.tables[D]!.tableInfo as TableInfo<T, D>;
}
return SyncUpdateStatement<T, D>(
dataAccess,
normalizedTable,
);
}