Example #1
0
 public SqliteStatementPreparer(SqliteDatabaseHandle database, string commandText)
 {
     m_database         = database;
     m_commandTextBytes = SQLiteConnection.ToUtf8(commandText);
     m_statements       = new List <SqliteStatementHandle>();
     m_refCount         = 1;
 }
 private void BindText(int ordinal, string text)
 {
     byte[] bytes = SQLiteConnection.ToUtf8(text);
     ThrowOnError(NativeMethods.sqlite3_bind_text(m_currentStatement, ordinal, bytes, bytes.Length, s_sqliteTransient));
 }