39 constructor(
string n_name,
string n_desc,
string n_url, *hash n_opts,
string n_error, hash
urlh) ;
55 constructor(
string name,
string description,
string url, hash<auto> attributes = {}, hash<auto> options = {}, *Logger logger) ;
95 object getImpl(
bool connect = True, *hash<auto> rtopts);
Abstract base class for connections.
Definition AbstractConnection.qc.dox.h:69
string url
Connection URL (potentially with password info)
Definition AbstractConnection.qc.dox.h:85
string name
Connection name.
Definition AbstractConnection.qc.dox.h:73
hash< auto > urlh
broken down URL hash (as returned by Qore::parse_url())
Definition AbstractConnection.qc.dox.h:100
this class is used to mark invalid connections so they can be loaded and reported as invalid
Definition InvalidConnection.qc.dox.h:29
string error
Error message provided by constructor's attributes.error.
Definition InvalidConnection.qc.dox.h:33
constructor(string name, string description, string url, hash< auto > attributes={}, hash< auto > options={}, *Logger logger)
creates the invalid connection object
constructor(hash< auto > config, *hash< auto > attr)
creates the invalid connection object
deprecated constructor(string n_name, string n_desc, string n_url, *hash n_opts, string n_error, hash urlh)
DEPRECATED: creates the invalid connection object.
string getType()
returns "invalid"
hash< UrlInfo > parseUrl(string url)
Parse the URL to a hash.
object getImpl(bool connect=True, *hash< auto > rtopts)
throws an exception because the object is invalid
The ConnectionProvider namespace.
Definition AbstractConnection.qc.dox.h:28