39fe7f2008-07-26Stephen R. van den Berg /* * Glue for the pgsql-module using SSL */ //! Implements SQL-urls for //! @tt{pgsqls://[user[:password]@@][hostname][:port][/database]@} //! //! Sets the connection to SSL-mode.
4e1d1f2008-08-01Stephen R. van den Berg //! //! @seealso //! @[Sql.pgsql], @[Sql.Sql]
39fe7f2008-07-26Stephen R. van den Berg  #pike __REAL_VERSION__ inherit Sql.pgsql; protected void create(void|string _host, void|string _db,
7ac2f12008-07-27Stephen R. van den Berg  void|string _user, void|string _pass, void|mapping(string:mixed) _options) {
17b7532008-07-30Stephen R. van den Berg  string pass;
334f372008-08-12Stephen R. van den Berg  pass = _pass; _pass = "CENSORED"; if(pass) String.secure(pass);
cc0d2d2008-07-27Marcus Comstedt  if(!_options) _options = ([]);
39fe7f2008-07-26Stephen R. van den Berg 
cc0d2d2008-07-27Marcus Comstedt  _options->use_ssl=1;
39fe7f2008-07-26Stephen R. van den Berg 
17b7532008-07-30Stephen R. van den Berg  ::create(_host, _db, _user, pass, _options);
39fe7f2008-07-26Stephen R. van den Berg }