Der folgende Pseudocode zeigt die verfügbaren Ereignisse und veranschaulicht den Punkt, an dem jedes einzelne Ereignis im Synchronisationsprozess aufgerufen wird. Zum Beispiel ist sp_hook_dbmlsync_abort der zuerst zu aktivierende Ereignis-Hook.
sp_hook_dbmlsync_abort //not called when Dbmlsync API or the SQL SYNCHRONIZE STATEMENT is used sp_hook_dbmlsync_set_extended_options loop until return codes direct otherwise ( sp_hook_dbmlsync_abort sp_hook_dbmlsync_delay ) sp_hook_dbmlsync_abort // start synchronization sp_hook_dbmlsync_begin // upload events for each upload segment // a normal synchronization has one upload segment // a transactional upload has one segment per transaction // an incremental upload has one segment per upload piece sp_hook_dbmlsync_logscan_begin //not called for scripted upload sp_hook_dbmlsync_logscan_end //not called for scripted upload sp_hook_dbmlsync_set_ml_connect_info //only called during first upload sp_hook_dbmlsync_upload_begin sp_hook_dbmlsync_set_upload_end_progress //only called for scripted upload sp_hook_dbmlsync_upload_end next upload segment // download events sp_hook_dbmlsync_validate_download_file (only called when -ba option is used) sp_hook_dbmlsync_download_begin for each table sp_hook_dbmlsync_download_table_begin sp_hook_dbmlsync_download_table_end next table sp_hook_dbmlsync_download_end sp_hook_dbmlsync_schema_upgrade // end synchronization sp_hook_dbmlsync_end sp_hook_dbmlsync_process_exit_code sp_hook_dbmlsync_log_rescan |
![]() |
Kommentieren Sie diese Seite in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |