public string ErrorMessage() { if (_Encoding == Encoding.UTF8) { return(SQLiteString.FromSQLite(this, errmsg(_Handle), _Encoding)); } else { return(SQLiteString.FromSQLite(this, errmsg16(_Handle), _Encoding)); } }
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)); } }
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)); } }
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(); } }
public string SQliteVersion() { return(SQLiteString.FromSQLite(this, libversion(), _Encoding)); }