Params

An object containing connection parameters for Client.connect(Params).

Destructor

~this
~this()

Destructor, destroys the internal session parameters.

Members

Functions

ptr
const(mg_session_params*) ptr()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

address
string address;

Numeric IP address of host to connect to. This should be in the standard IPv4 address format. You can also use IPv6 if your machine supports it. Either one of host or address parameters must be specified.

host
string host;

DNS resolvable name of host to connect to. Either one of host or address parameters must be specified (defaults to 127.0.0.1).

password
string password;

Password to be used if the server demands password authentication.

port
ushort port;

Port number to connect to at the server host (defaults to 7687).

sslCert
string sslCert;

This parameter specifies the file name of the client SSL certificate. It is ignored in case an SSL connection is not made.

sslKey
string sslKey;

This parameter specifies the location of the secret key used for the client certificate. This parameter is ignored in case an SSL connection is not made.

sslMode
mg_sslmode sslMode;

This option determines whether a secure connection will be negotiated with the server. There are 2 possible values: - MG_SSLMODE_DISABLE Only try a non-SSL connection (default). - MG_SSLMODE_REQUIRE Only try an SSL connection.

sslTrustCallback
mg_trust_callback_type sslTrustCallback;

A pointer to a function of prototype mg_trust_callback_type: int trust_callback(const char *hostname, const char *ip_address, const char *key_type, const char *fingerprint, void *trust_data);

sslTrustData
void* sslTrustData;

Additional data that will be provided to the sslTrustCallback function.

userAgent
string userAgent;

Useragent used when connecting to memgraph, defaults to Alternate name and version of the client to send to server. Default is "memgraph-d/major.minor.patch".

username
string username;

Username, if authentication is required.

Meta