本文整理汇总了C#中IDbStatement类的典型用法代码示例。如果您正苦于以下问题:C# IDbStatement类的具体用法?C# IDbStatement怎么用?C# IDbStatement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IDbStatement类属于命名空间,在下文中一共展示了IDbStatement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ColumnBlob
public byte[] ColumnBlob(IDbStatement stmt, int index)
{
var dbStatement = (DbStatement)stmt;
int length = ColumnBytes(stmt, index);
byte[] result = new byte[length];
if (length > 0)
Marshal.Copy(SQLite3.ColumnBlob(dbStatement.InternalStmt, index), result, 0, length);
return result;
}
示例2: BindInt
public int BindInt(IDbStatement stmt, int index, int val)
{
var dbStatement = (DbStatement)stmt;
if (_useWinSqlite)
{
return WinSQLite3.BindInt(dbStatement.InternalStmt, index, val);
}
else
{
return SQLite3.BindInt(dbStatement.InternalStmt, index, val);
}
}
示例3: BindBlob
public int BindBlob(IDbStatement stmt, int index, byte[] val, int n, IntPtr free)
{
var dbStatement = (DbStatement)stmt;
if (_useWinSqlite)
{
return WinSQLite3.BindBlob(dbStatement.InternalStmt, index, val, n, free);
}
else
{
return SQLite3.BindBlob(dbStatement.InternalStmt, index, val, n, free);
}
}
示例4: ColumnByteArray
public byte[] ColumnByteArray(IDbStatement stmt, int index)
{
return ColumnBlob(stmt, index);
}
示例5: BindParameterIndex
public int BindParameterIndex(IDbStatement stmt, string name)
{
var dbStatement = (DbStatement)stmt;
return SQLite3.BindParameterIndex(dbStatement.InternalStmt, name);
}
示例6: BindInt64
public int BindInt64(IDbStatement stmt, int index, long val)
{
var dbStatement = (DbStatement)stmt;
return SQLite3.BindInt64(dbStatement.InternalStmt, index, val);
}
示例7: Step
public Result Step(IDbStatement stmt)
{
var dbStatement = (DbStatement)stmt;
return (Result)SQLite3.Step(dbStatement.InternalStmt);
}
示例8: Finalize
public Result Finalize(IDbStatement stmt)
{
var dbStatement = (DbStatement)stmt;
Sqlite3Statement internalStmt = dbStatement.InternalStmt;
return (Result)SQLite3.Finalize(internalStmt);
}
示例9: ColumnText16
public string ColumnText16(IDbStatement stmt, int index)
{
var dbStatement = (DbStatement)stmt;
return Marshal.PtrToStringUni(SQLite3.ColumnText16(dbStatement.InternalStmt, index));
}
示例10: ColumnByteArray
public byte[] ColumnByteArray(IDbStatement stmt, int index)
{
var internalStmt = (DbStatement) stmt;
return SQLiteApiWin32Internal.ColumnByteArray(internalStmt.StmtPtr, index);
}
示例11: ColumnBytes
public int ColumnBytes(IDbStatement stmt, int index)
{
var internalStmt = (DbStatement) stmt;
return SQLiteApiWin32Internal.sqlite3_column_bytes(internalStmt.StmtPtr, index);
}
示例12: ColumnText16
public string ColumnText16(IDbStatement stmt, int index)
{
var internalStmt = (DbStatement) stmt;
return Marshal.PtrToStringUni(SQLiteApiWin32Internal.sqlite3_column_text16(internalStmt.StmtPtr, index));
}
示例13: ColumnDouble
public double ColumnDouble(IDbStatement stmt, int index)
{
var internalStmt = (DbStatement) stmt;
return SQLiteApiWin32Internal.sqlite3_column_double(internalStmt.StmtPtr, index);
}
示例14: ColumnInt64
public long ColumnInt64(IDbStatement stmt, int index)
{
var dbStatement = (DbStatement)stmt;
return SQLite3.ColumnInt64(dbStatement.InternalStmt, index);
}
示例15: ColumnName16
public string ColumnName16(IDbStatement stmt, int index)
{
var dbStatement = (DbStatement)stmt;
return SQLite3.ColumnName16(dbStatement.InternalStmt, index);
}