本文整理汇总了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);