sqlite3_backup_init() private méthode

private sqlite3_backup_init ( IntPtr destDB, [ destName, IntPtr srcDB, [ srcName ) : IntPtr
destDB IntPtr
destName [
srcDB IntPtr
srcName [
Résultat IntPtr
Exemple #1
0
        public IDbBackupHandle BackupInit(IDbHandle destHandle, string destName, IDbHandle srcHandle, string srcName)
        {
            var    internalDestDb = (DbHandle)destHandle;
            var    internalSrcDb  = (DbHandle)srcHandle;
            IntPtr p;

            if (_useWinSqlite)
            {
                p = WinSQLite3.sqlite3_backup_init(internalDestDb.InternalDbHandle,
                                                   destName,
                                                   internalSrcDb.InternalDbHandle,
                                                   srcName);
            }
            else
            {
                p = SQLite3.sqlite3_backup_init(internalDestDb.InternalDbHandle,
                                                destName,
                                                internalSrcDb.InternalDbHandle,
                                                srcName);
            }

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