sdk/src/sync/operations.js
function getOperationForInsertingLog(tableName, action, item) {
        return api.getMetadata(tableName, action, item).then(function(metadata) {
            return {
                tableName: operationTableName,
                action: 'upsert',
                data: {
                    id: ++maxId,
                    tableName: tableName,
                    action: action,
                    itemId: item[idPropertyName],
                    metadata: metadata
                }
            };
        });
    }
function getOperationForInsertingLog(tableName, action, item) {
        return api.getMetadata(tableName, action, item).then(function(metadata) {
            return {
                tableName: operationTableName,
                action: 'upsert',
                data: {
                    id: ++maxId,
                    tableName: tableName,
                    action: action,
                    itemId: item[idPropertyName],
                    metadata: metadata
                }
            };
        });
    }
function getOperationForInsertingLog ( tableName , action , item ) { return api . getMetadata ( tableName , action , item ) . then ( function ( metadata ) { return { tableName : operationTableName , action : 'upsert' , data : { id : ++ maxId , tableName : tableName , action : action , itemId : item [ idPropertyName ] , metadata : metadata } } ; } ) ; }
Gets the operation that will insert a new record in the operation table.
Gets the operation that will insert a new record in the operation table .