syncInto<T extends Table, D> method
SyncInsertStatement<T, D>
syncInto<T extends Table, D>(
- TableInfo<
T, D> table
The replacement method for Moor's into(). 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
SyncInsertStatement<T, D> syncInto<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 SyncInsertStatement<T, D>(
dataAccess,
normalizedTable,
);
}