예제 #1
0
 /// <summary> Sqlite 3 backup step. </summary>
 /// <exception cref="ArgumentNullException"> Thrown when one or more required arguments are null. </exception>
 /// <param name="backup"> The backup. </param>
 /// <param name="nPage"> The page. </param>
 /// <returns> A SqliteResultCode. </returns>
 internal SqliteResultCode sqlite3_backup_step(SqliteBackupHandle backup, int nPage)
 {
     if (backup == null)
     {
         throw new ArgumentNullException(nameof(backup));
     }
     backup.CheckMaintenanceMode();
     return((SqliteResultCode)DbProviderOperations.sqlite3_backup_step(backup.Backup, nPage));
 }
예제 #2
0
 /// <summary> Sqlite 3 backup pagecount. </summary>
 /// <exception cref="ArgumentNullException"> Thrown when one or more required arguments are null. </exception>
 /// <param name="backup"> The backup. </param>
 /// <returns> An int. </returns>
 internal int sqlite3_backup_pagecount(SqliteBackupHandle backup)
 {
     if (backup == null)
     {
         throw new ArgumentNullException(nameof(backup));
     }
     backup.CheckMaintenanceMode();
     return(DbProviderOperations.sqlite3_backup_remaining(backup.Backup));
 }