1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-20 15:40:50 +00:00

Allow passing set name and search path as command line parameters.

This commit is contained in:
King_DuckZ 2015-11-11 19:24:10 +00:00
parent e9a7e756e1
commit 585c7f45b7
13 changed files with 228 additions and 36 deletions

View file

@ -124,7 +124,7 @@ namespace pq {
}
}
std::string Connection::escape_literal (const std::string& parString) {
std::string Connection::escaped_literal (const std::string& parString) {
typedef std::unique_ptr<char[], void(*)(void*)> PQArrayType;
PQArrayType clean_str(PQescapeLiteral(m_localData->connection, parString.c_str(), parString.size()), &PQfreemem);

View file

@ -36,7 +36,7 @@ namespace pq {
void query_void ( const std::string& parQuery );
ResultSet query ( const std::string& parQuery );
std::string escape_literal ( const std::string& parString );
std::string escaped_literal ( const std::string& parString );
private:
struct LocalData;