Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLParameters.h @ 81:515a783630df
injecting fix to issue #105 into the mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jan 2019 13:32:34 +0100 |
parents | 714c5d2bee76 |
children | 4cd7e45b671e |
comparison
equal
deleted
inserted
replaced
67:714c5d2bee76 | 81:515a783630df |
---|---|
36 uint16_t port_; | 36 uint16_t port_; |
37 std::string username_; | 37 std::string username_; |
38 std::string password_; | 38 std::string password_; |
39 std::string database_; | 39 std::string database_; |
40 std::string uri_; | 40 std::string uri_; |
41 bool ssl_; | |
41 bool lock_; | 42 bool lock_; |
42 | 43 |
43 void Reset(); | 44 void Reset(); |
44 | 45 |
45 public: | 46 public: |
89 const std::string& GetDatabase() const | 90 const std::string& GetDatabase() const |
90 { | 91 { |
91 return database_; | 92 return database_; |
92 } | 93 } |
93 | 94 |
95 void SetSsl(bool ssl) | |
96 { | |
97 ssl_ = ssl; | |
98 } | |
99 | |
100 bool IsSsl() const | |
101 { | |
102 return ssl_; | |
103 } | |
104 | |
94 void SetLock(bool lock) | 105 void SetLock(bool lock) |
95 { | 106 { |
96 lock_ = lock; | 107 lock_ = lock; |
97 } | 108 } |
98 | 109 |