Loading tutorials
WHERE, ORDER BY and LIMIT, and that you know basic Apex classes, strings and collections. It covers how Apex runs a query that you build as a string, and the errors that come with it.3 min readDatabase.query runs a query string at run time. The previous chapter showed how a quote in user input can rewrite a concatenated query. Here you fix it.3 min readDatabase.queryWithBinds takes its values from a map instead of f3 min readDatabase.query. It covers what to do when the user's input is not text.3 min readWHERE and LIMIT. It also assumes you know what a bind variable is and have seen Database.queryWithBinds. Here you will handle one case that bind variables do not fully cover: LIKE searches.3 min readSet and Map, and have read the previous chapter on bind variables.2 min readDatabase.query runs a query string, and have seen a bind variable such as :name. Earlier chapters showed that bind variables are the main defense against SOQL injection. This chapter covers the fallback for cases where a bind variable is no2 min read@IsTest, insert test records, and use the Assert class. It also assumes you know the AccountSearch methods from the earlier chapters: findByName, searchByName, listAccounts and resolveAccountField.2 min read