示例#1
0
 public string ErrorMessage()
 {
     if (_Encoding == Encoding.UTF8)
     {
         return(SQLiteString.FromSQLite(this, errmsg(_Handle), _Encoding));
     }
     else
     {
         return(SQLiteString.FromSQLite(this, errmsg16(_Handle), _Encoding));
     }
 }
示例#2
0
 public string ColumnText(IntPtr pStmt, int iCol)
 {
     if (_Encoding == Encoding.UTF8)
     {
         return(SQLiteString.FromSQLite(this, column_text(pStmt, iCol), _Encoding));
     }
     else
     {
         return(SQLiteString.FromSQLite(this, column_text16(pStmt, iCol), _Encoding));
     }
 }
示例#3
0
 public string ColumnDeclarationType(IntPtr pStmt, int i)
 {
     if (_Encoding == Encoding.UTF8)
     {
         return(SQLiteString.FromSQLite(this, column_decltype(pStmt, i), _Encoding));
     }
     else
     {
         return(SQLiteString.FromSQLite(this, column_decltype16(pStmt, i), _Encoding));
     }
 }
示例#4
0
        public int exec(string sql, IntPtr callback, IntPtr arg, out string errmsg)
        {
            SQLiteString nativeStr = new SQLiteString(this, _Encoding, sql);

            try
            {
                IntPtr errMsg = IntPtr.Zero;
                int    rval   = exec(_Handle, nativeStr.ToSQLite(), callback, arg, out errMsg);
                errmsg = SQLiteString.FromSQLite(this, errMsg, _Encoding);

                return(rval);
            }
            finally
            {
                nativeStr.Dispose();
            }
        }
示例#5
0
 public string SQliteVersion()
 {
     return(SQLiteString.FromSQLite(this, libversion(), _Encoding));
 }