Ejemplo n.º 1
0
        public IDbBackupHandle BackupInit(IDbHandle destHandle, string destName, IDbHandle srcHandle, string srcName)
        {
            var internalDestDb = (DbHandle)destHandle;
            var internalSrcDb  = (DbHandle)srcHandle;

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

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