示例#1
0
        public Result BusyTimeout(IDbHandle db, int milliseconds)
        {
            var internalDbHandle = (DbHandle)db;

            return(SQLiteApiGenericInternal.sqlite3_busy_timeout(internalDbHandle.DbPtr, milliseconds));
        }
 public int Sleep(int millis)
 {
     return(SQLiteApiGenericInternal.sqlite3_sleep(millis));
 }
        public Result Close(IDbHandle db)
        {
            var internalDbHandle = (DbHandle)db;

            return(SQLiteApiGenericInternal.sqlite3_close(internalDbHandle.DbPtr));
        }
        public Result BackupFinish(IDbBackupHandle handle)
        {
            var internalBackup = (DbBackupHandle)handle;

            return(SQLiteApiGenericInternal.sqlite3_backup_finish(internalBackup.DbBackupPtr));
        }
        public int BackupPagecount(IDbBackupHandle handle)
        {
            var internalBackup = (DbBackupHandle)handle;

            return(SQLiteApiGenericInternal.sqlite3_backup_pagecount(internalBackup.DbBackupPtr));
        }
        public int ColumnBytes(IDbStatement stmt, int index)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_column_bytes(internalStmt.StmtPtr, index));
        }
 public int LibVersionNumber()
 {
     return(SQLiteApiGenericInternal.sqlite3_libversion_number());
 }
        public int BindNull(IDbStatement stmt, int index)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_bind_null(internalStmt.StmtPtr, index));
        }
        public int BindInt64(IDbStatement stmt, int index, long val)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_bind_int64(internalStmt.StmtPtr, index, val));
        }
        public string Errmsg16(IDbHandle db)
        {
            var internalDbHandle = (DbHandle)db;

            return(Marshal.PtrToStringUni(SQLiteApiGenericInternal.sqlite3_errmsg16(internalDbHandle.DbPtr)));
        }
        public int BindParameterIndex(IDbStatement stmt, string name)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_bind_parameter_index(internalStmt.StmtPtr, name));
        }
        public long LastInsertRowid(IDbHandle db)
        {
            var internalDbHandle = (DbHandle)db;

            return(SQLiteApiGenericInternal.sqlite3_last_insert_rowid(internalDbHandle.DbPtr));
        }
        public Result Finalize(IDbStatement stmt)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_finalize(internalStmt.StmtPtr));
        }
示例#14
0
        public int Changes(IDbHandle db)
        {
            var internalDbHandle = (DbHandle)db;

            return(SQLiteApiGenericInternal.sqlite3_changes(internalDbHandle.DbPtr));
        }
        public ExtendedResult ExtendedErrCode(IDbHandle db)
        {
            var internalDbHandle = (DbHandle)db;

            return(SQLiteApiGenericInternal.sqlite3_extended_errcode(internalDbHandle.DbPtr));
        }
        public int BindDouble(IDbStatement stmt, int index, double val)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_bind_double(internalStmt.StmtPtr, index, val));
        }
        public string ColumnText16(IDbStatement stmt, int index)
        {
            var internalStmt = (DbStatement)stmt;

            return(Marshal.PtrToStringUni(SQLiteApiGenericInternal.sqlite3_column_text16(internalStmt.StmtPtr, index)));
        }
        public int BindText16(IDbStatement stmt, int index, string val, int n, IntPtr free)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_bind_text16(internalStmt.StmtPtr, index, val, n, free));
        }
        public byte[] ColumnByteArray(IDbStatement stmt, int index)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.ColumnByteArray(internalStmt.StmtPtr, index));
        }
        public int BindBlob(IDbStatement stmt, int index, byte[] val, int n, IntPtr free)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_bind_blob(internalStmt.StmtPtr, index, val, n, free));
        }
        public Result BackupStep(IDbBackupHandle handle, int pageCount)
        {
            var internalBackup = (DbBackupHandle)handle;

            return(SQLiteApiGenericInternal.sqlite3_backup_step(internalBackup.DbBackupPtr, pageCount));
        }
        public int ColumnCount(IDbStatement stmt)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_column_count(internalStmt.StmtPtr));
        }
        public int BackupRemaining(IDbBackupHandle handle)
        {
            var internalBackup = (DbBackupHandle)handle;

            return(SQLiteApiGenericInternal.sqlite3_backup_remaining(internalBackup.DbBackupPtr));
        }
        public string ColumnName16(IDbStatement stmt, int index)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.ColumnName16(internalStmt.StmtPtr, index));
        }
 public string SourceID()
 {
     return(Marshal.PtrToStringAnsi(SQLiteApiGenericInternal.sqlite3_sourceid()));
 }
        public long ColumnInt64(IDbStatement stmt, int index)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_column_int64(internalStmt.StmtPtr, index));
        }
        public Result EnableLoadExtension(IDbHandle db, int onoff)
        {
            var internalDbHandle = (DbHandle)db;

            return(SQLiteApiGenericInternal.sqlite3_enable_load_extension(internalDbHandle.DbPtr, onoff));
        }
        public double ColumnDouble(IDbStatement stmt, int index)
        {
            var internalStmt = (DbStatement)stmt;

            return(SQLiteApiGenericInternal.sqlite3_column_double(internalStmt.StmtPtr, index));
        }
 public Result Initialize()
 {
     return(SQLiteApiGenericInternal.sqlite3_initialize());
 }
示例#30
0
 public Result Config(ConfigOption option)
 {
     return(SQLiteApiGenericInternal.sqlite3_config(option));
 }