示例#1
0
        public IDbBackupHandle BackupInit(IDbHandle destHandle, string destName, IDbHandle srcHandle, string srcName)
        {
            var internalDestDb = (DbHandle)destHandle;
            var internalSrcDb  = (DbHandle)srcHandle;

            IntPtr p = SQLiteApiWin32Internal.sqlite3_backup_init(internalDestDb.DbPtr,
                                                                  destName,
                                                                  internalSrcDb.DbPtr,
                                                                  srcName);

            if (p == IntPtr.Zero)
            {
                return(null);
            }
            else
            {
                return(new DbBackupHandle(p));
            }
        }