summaryrefslogtreecommitdiffstats
path: root/src/sql_util.hh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/sql_util.hh20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sql_util.hh b/src/sql_util.hh
index 361942c..db6a3e0 100644
--- a/src/sql_util.hh
+++ b/src/sql_util.hh
@@ -41,10 +41,9 @@
#include <sys/time.h>
#include <time.h>
+#include "base/attr_line.hh"
#include "base/intern_string.hh"
-#include "base/lnav.console.hh"
#include "base/time_util.hh"
-#include "sqlitepp.hh"
extern const char* sql_keywords[145];
extern const char* sql_function_names[];
@@ -105,17 +104,10 @@ void sql_install_logger();
bool sql_ident_needs_quote(const char* ident);
-char* sql_quote_ident(const char* ident);
+auto_mem<char, sqlite3_free> sql_quote_ident(const char* ident);
std::string sql_safe_ident(const string_fragment& ident);
-void sql_execute_script(
- sqlite3* db,
- const std::map<std::string, scoped_value_t>& global_vars,
- const char* src_name,
- const char* script,
- std::vector<lnav::console::user_message>& errors);
-
int guess_type_from_pcre(const std::string& pattern, std::string& collator);
const char* sqlite3_type_to_string(int type);
@@ -133,4 +125,12 @@ int sqlite_authorizer(void* pUserData,
const char* detail3,
const char* detail4);
+namespace lnav {
+namespace sql {
+
+auto_mem<char, sqlite3_free> mprintf(const char* fmt, ...);
+
+}
+} // namespace lnav
+
#endif