Skip to content
Snippets Groups Projects
Commit 7af88be1 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Sql.Sql: Added query_db() to the API.

parent 015e3d1e
No related branches found
No related tags found
No related merge requests found
...@@ -533,6 +533,12 @@ void select_db(string db) ...@@ -533,6 +533,12 @@ void select_db(string db)
master_sql->select_db(db); master_sql->select_db(db);
} }
//! Get the currently selected db if possible.
string query_db()
{
return master_sql->query_db && master_sql->query_db();
}
//! Compiles the query (if possible). Otherwise returns it as is. //! Compiles the query (if possible). Otherwise returns it as is.
//! The resulting object can be used multiple times to the query //! The resulting object can be used multiple times to the query
//! functions. //! functions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment