sql_query_proto_to_string.h 1004 B

123456789101112131415161718192021222324252627282930
  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. #ifndef THIRD_PARTY_SQLITE_FUZZ_SQL_QUERY_PROTO_TO_STRING_H_
  5. #define THIRD_PARTY_SQLITE_FUZZ_SQL_QUERY_PROTO_TO_STRING_H_
  6. #include <string>
  7. #include <vector>
  8. #include "third_party/sqlite/fuzz/sql_queries.pb.h"
  9. namespace sql_fuzzer {
  10. std::string SQLQueriesToString(
  11. const sql_query_grammar::SQLQueries& sql_queries);
  12. std::vector<std::string> SQLQueriesToVec(
  13. const sql_query_grammar::SQLQueries& sql_queries);
  14. std::string PrintfToString(const sql_query_grammar::Printf&);
  15. std::string StrftimeFnToString(const sql_query_grammar::StrftimeFn&);
  16. std::string ExprToString(const sql_query_grammar::Expr&);
  17. std::string SQLQueryToString(const sql_query_grammar::SQLQuery&);
  18. void SetDisabledQueries(std::set<std::string> disabled_queries);
  19. } // namespace sql_fuzzer
  20. #endif // THIRD_PARTY_SQLITE_FUZZ_SQL_QUERY_PROTO_TO_STRING_H_