sql_run_queries.h 624 B

123456789101112131415161718
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include <string>
  5. #include <vector>
  6. #include "third_party/sqlite/sqlite3.h"
  7. namespace sql_fuzzer {
  8. /* Standalone function that wraps the three functions below. */
  9. void RunSqlQueries(std::vector<std::string> queries, bool enable_tracing);
  10. sqlite3* InitConnectionForFuzzing();
  11. void EnableSqliteTracing(sqlite3* db);
  12. void RunSqlQueriesOnConnection(sqlite3* db, std::vector<std::string> queries);
  13. void CloseConnection(sqlite3* db);
  14. } // namespace sql_fuzzer