sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/Driver/SqliteConnection.cs
/// <summary>
/// Prepares a SQL statement for use.
/// </summary>
/// <param name="sqlStatement">The SQL statement to prepare.</param>
/// <returns>A <see cref="SqliteStatement"/>.</returns>
Prepares a SQL statement for use.
Prepares a SQL statement for use .
public SqliteStatement PrepareStatement(string sqlStatement)
        {
            Arguments.IsNotNullOrWhitespace(sqlStatement, nameof(sqlStatement));
            int rc = raw.sqlite3_prepare_v2(connection, sqlStatement, out sqlite3_stmt stmt);
            if (rc != raw.SQLITE_OK)
            {
                throw new SQLiteException($"Cannot prepare statement for '{sqlStatement}'", rc, connection);
            }
            return new SqliteStatement(connection, stmt);
        }
public SqliteStatement PrepareStatement ( string sqlStatement ) { Arguments . IsNotNullOrWhitespace ( sqlStatement , nameof ( sqlStatement ) ) ; int rc = raw . sqlite3_prepare_v2 ( connection , sqlStatement , out sqlite3_stmt stmt ) ; if ( rc != raw . SQLITE_OK ) { throw new SQLiteException ( $" Cannot prepare statement for ' { sqlStatement } ' " , rc , connection ) ; } return new SqliteStatement ( connection , stmt ) ; }
Prepares a SQL statement for use.
Prepares a SQL statement for use .
None
sqlStatement
string
The SQL statement to prepare.
The SQL statement to prepare .