Exemplo n.º 1
0
        public static Result Open16(string filename, out IDbHandle db)
        {
            IntPtr dbPtr;
            var    r = Sqlite3Native.Open(filename, out dbPtr);

            db = new Sqlite3DatabaseInternal(dbPtr);
            return(r);
        }
Exemplo n.º 2
0
        public static Result Open(byte[] filename, out IDbHandle db, int flags, IntPtr zvfs)
        {
            IntPtr dbPtr;
            var    r = Sqlite3Native.Open(filename, out dbPtr, flags, zvfs);

            db = new Sqlite3DatabaseInternal(dbPtr);
            return(r);
        }
Exemplo n.º 3
0
        public static Result Prepare2(IDbHandle db, string sql, int numBytes, out IDbStatement stmt, IntPtr pzTail)
        {
            var    internalDbHandle = (Sqlite3DatabaseInternal)db;
            IntPtr stmtPtr;
            var    r = Sqlite3Native.Prepare2(internalDbHandle.Handle, sql, numBytes, out stmtPtr, pzTail);

            stmt = new Sqlite3StatementInternal(stmtPtr);
            return(r);
        }
Exemplo n.º 4
0
        public static int BindBlob(IDbStatement stmt, int index, byte[] val, int n, IntPtr free)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.BindBlob(internalStmt.Handle, index, val, n, free));
        }
Exemplo n.º 5
0
        public static int BindInt64(IDbStatement stmt, int index, long val)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.BindInt64(internalStmt.Handle, index, val));
        }
Exemplo n.º 6
0
        public static int BindDouble(IDbStatement stmt, int index, double val)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.BindDouble(internalStmt.Handle, index, val));
        }
Exemplo n.º 7
0
        public static int BindParameterIndex(IDbStatement stmt, string name)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.BindParameterIndex(internalStmt.Handle, name));
        }
Exemplo n.º 8
0
        public static int BindNull(IDbStatement stmt, int index)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.BindNull(internalStmt.Handle, index));
        }
Exemplo n.º 9
0
        public static IntPtr ColumnText16(IDbStatement stmt, int index)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.ColumnText16(internalStmt.Handle, index));
        }
Exemplo n.º 10
0
        public static Result EnableLoadExtension(IDbHandle db, int onoff)
        {
            var internalDbHandle = (Sqlite3DatabaseInternal)db;

            return(Sqlite3Native.EnableLoadExtension(internalDbHandle.Handle, onoff));
        }
Exemplo n.º 11
0
        public static int ColumnCount(IDbStatement stmt)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.ColumnCount(internalStmt.Handle));
        }
Exemplo n.º 12
0
        public static long ColumnInt64(IDbStatement stmt, int index)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.ColumnInt64(internalStmt.Handle, index));
        }
Exemplo n.º 13
0
        public static int Changes(IDbHandle db)
        {
            var internalDbHandle = (Sqlite3DatabaseInternal)db;

            return(Sqlite3Native.Changes(internalDbHandle.Handle));
        }
Exemplo n.º 14
0
        public static Result BusyTimeout(IDbHandle db, int milliseconds)
        {
            var internalDbHandle = (Sqlite3DatabaseInternal)db;

            return(Sqlite3Native.BusyTimeout(internalDbHandle.Handle, milliseconds));
        }
Exemplo n.º 15
0
 public static int SetDirectory(uint directoryType, string directoryPath)
 {
     return(Sqlite3Native.SetDirectory(directoryType, directoryPath));
 }
Exemplo n.º 16
0
 public static Result Config(ConfigOption option)
 {
     return(Sqlite3Native.Config(option));
 }
Exemplo n.º 17
0
        public static Result Close(IDbHandle db)
        {
            var internalDbHandle = (Sqlite3DatabaseInternal)db;

            return(Sqlite3Native.Close(internalDbHandle.Handle));
        }
Exemplo n.º 18
0
        static IntPtr ColumnName16Internal(IDbStatement stmt, int index)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.ColumnName16Internal(internalStmt.Handle, index));
        }
Exemplo n.º 19
0
        public static Result Finalize(IDbStatement stmt)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.Finalize(internalStmt.Handle));
        }
Exemplo n.º 20
0
        public static double ColumnDouble(IDbStatement stmt, int index)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.ColumnDouble(internalStmt.Handle, index));
        }
Exemplo n.º 21
0
        public static long LastInsertRowid(IDbHandle db)
        {
            var internalDbHandle = (Sqlite3DatabaseInternal)db;

            return(Sqlite3Native.LastInsertRowid(internalDbHandle.Handle));
        }
Exemplo n.º 22
0
        public static int ColumnBytes(IDbStatement stmt, int index)
        {
            var internalStmt = (Sqlite3StatementInternal)stmt;

            return(Sqlite3Native.ColumnBytes(internalStmt.Handle, index));
        }
Exemplo n.º 23
0
        public static IntPtr Errmsg(IDbHandle db)
        {
            var internalDbHandle = (Sqlite3DatabaseInternal)db;

            return(Sqlite3Native.Errmsg(internalDbHandle.Handle));
        }