Open() private method

private Open ( [ filename, IntPtr &db ) : Result
filename [
db IntPtr
return Result
        public Result Open(byte[] filename, out IDbHandle db, int flags, IntPtr zvfs)
        {
            Sqlite3DatabaseHandle internalDbHandle;
            var ret = (Result)SQLite3.Open(filename, out internalDbHandle, flags, zvfs);

            db = new DbHandle(internalDbHandle);
            return(ret);
        }
Example #2
0
        public Result Open(byte[] filename, out IDbHandle db, int flags, IntPtr zvfs)
        {
            string dbFileName = Encoding.UTF8.GetString(filename, 0, filename.Length);
            Sqlite3DatabaseHandle internalDbHandle;
            var ret = (Result)SQLite3.Open(dbFileName, out internalDbHandle, flags, zvfs);

            db = new DbHandle(internalDbHandle);
            return(ret);
        }
Example #3
0
        public Result Open(byte[] filename, out IDbHandle db, int flags, IntPtr zvfs)
        {
            Sqlite3DatabaseHandle internalDbHandle;
            Result ret;

            if (_useWinSqlite)
            {
                ret = (Result)WinSQLite3.Open(filename, out internalDbHandle, flags, zvfs);
            }
            else
            {
                ret = (Result)SQLite3.Open(filename, out internalDbHandle, flags, zvfs);
            }

            db = new DbHandle(internalDbHandle);
            return(ret);
        }