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:
parent
e9a7e756e1
commit
585c7f45b7
13 changed files with 228 additions and 36 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue