本文整理匯總了C#中Microsoft.Data.Sqlite.Interop.Sqlite3StmtHandle類的典型用法代碼示例。如果您正苦於以下問題:C# Sqlite3StmtHandle類的具體用法?C# Sqlite3StmtHandle怎麽用?C# Sqlite3StmtHandle使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Sqlite3StmtHandle類屬於Microsoft.Data.Sqlite.Interop命名空間,在下文中一共展示了Sqlite3StmtHandle類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: sqlite3_bind_parameter_index
public static int sqlite3_bind_parameter_index(Sqlite3StmtHandle pStmt, string zName)
{
var ptr = MarshalEx.StringToHGlobalUTF8(zName);
try
{
return sqlite3_bind_parameter_index(pStmt, ptr);
}
finally
{
if (ptr != IntPtr.Zero)
{
Marshal.FreeHGlobal(ptr);
}
}
}
示例2: sqlite3_bind_text
public static int sqlite3_bind_text(Sqlite3StmtHandle pStmt, int i, string data, IntPtr xDel)
{
int nLen;
var zData = MarshalEx.StringToHGlobalUTF8(data, out nLen);
try
{
return Sqlite3.bind_text(pStmt, i, zData, nLen, xDel);
}
finally
{
if (zData != IntPtr.Zero)
{
Marshal.FreeHGlobal(zData);
}
}
}
示例3: sqlite3_bind_blob
public static extern int sqlite3_bind_blob(Sqlite3StmtHandle pStmt, int i, byte[] zData, int nData, IntPtr xDel);
示例4: sqlite3_bind_text
private static extern int sqlite3_bind_text(Sqlite3StmtHandle pStmt, int i, IntPtr zData, int n, IntPtr xDel);
示例5: sqlite3_stmt_readonly
public static extern int sqlite3_stmt_readonly(Sqlite3StmtHandle pStmt);
示例6: sqlite3_bind_parameter_name
public static string sqlite3_bind_parameter_name(Sqlite3StmtHandle stmt, int i)
=> MarshalEx.PtrToStringUTF8(sqlite3_bind_parameter_name_raw(stmt, i));
示例7: sqlite3_column_bytes
private static extern int sqlite3_column_bytes(Sqlite3StmtHandle pStmt, int iCol);
示例8: sqlite3_bind_null
public static extern int sqlite3_bind_null(Sqlite3StmtHandle pStmt, int i);
示例9: sqlite3_column_text
public static string sqlite3_column_text(Sqlite3StmtHandle stmt, int iCol) => MarshalEx.PtrToStringUTF8(sqlite3_column_text_raw(stmt, iCol));
示例10: sqlite3_column_type
public static extern int sqlite3_column_type(Sqlite3StmtHandle stmt, int iCol);
示例11: sqlite3_column_int64
public static extern long sqlite3_column_int64(Sqlite3StmtHandle stmt, int iCol);
示例12: sqlite3_column_text_raw
private static extern IntPtr sqlite3_column_text_raw(Sqlite3StmtHandle stmt, int iCol);
示例13: sqlite3_column_double
public static extern double sqlite3_column_double(Sqlite3StmtHandle stmt, int iCol);
示例14: sqlite3_column_decltype_raw
public static extern IntPtr sqlite3_column_decltype_raw(Sqlite3StmtHandle stmt, int iCol);
示例15: sqlite3_column_count
public static extern int sqlite3_column_count(Sqlite3StmtHandle stmt);