A bitmask of flags may be supplied, which may include:
- NEO4J_INSECURE - do not attempt to establish a secure connection. If a
secure connection is required, then connect will fail with errno set to
NEO4J_SERVER_REQUIRES_SECURE_CONNECTION.
- NEO4J_NO_URI_CREDENTIALS - do not use credentials provided in the
server URI (use credentials from the configuration instead).
- NEO4J_NO_URI_PASSWORD - do not use any password provided in the
server URI (obtain password from the configuration instead).
If no flags are required, pass 0 or NEO4J_CONNECT_DEFAULT.
@param uri A URI describing the server to connect to, which may also
include authentication data (which will override any provided
in the config).
@param config The neo4j client configuration to use for this connection.
@param flags A bitmask of flags to control connections.
@return A pointer to a neo4j_connection_t structure, or NULL on error
(errno will be set).
Establish a connection to a neo4j server.
A bitmask of flags may be supplied, which may include: - NEO4J_INSECURE - do not attempt to establish a secure connection. If a secure connection is required, then connect will fail with errno set to NEO4J_SERVER_REQUIRES_SECURE_CONNECTION. - NEO4J_NO_URI_CREDENTIALS - do not use credentials provided in the server URI (use credentials from the configuration instead). - NEO4J_NO_URI_PASSWORD - do not use any password provided in the server URI (obtain password from the configuration instead).
If no flags are required, pass 0 or NEO4J_CONNECT_DEFAULT.
@param uri A URI describing the server to connect to, which may also include authentication data (which will override any provided in the config). @param config The neo4j client configuration to use for this connection. @param flags A bitmask of flags to control connections. @return A pointer to a neo4j_connection_t structure, or NULL on error (errno will be set).