/// <summary> /// Creates Arango database object with specified alias connection. /// </summary> /// <param name="alias">Connection alias which was previously created through ArangoClient.AddConnection method.</param> public ArangoDatabase(string alias) { _connection = ArangoClient.GetConnection(alias); }
internal ArangoGraph(Connection connection, string name) { _name = name; _graphGraphOps = new GraphGraphOperation(connection, name); }
internal ACollection(Connection connection) { _connection = connection; }
internal AFunction(Connection connection) { _connection = connection; }
internal AIndex(Connection connection) { _connection = connection; }
/// <summary> /// Initializes new database context to perform operations on remote database identified by specified alias. /// </summary> public ADatabase(string alias) { _connection = ASettings.GetConnection(alias); }
public static void AddConnection(string alias, string hostname, int port, bool isSecured, string databaseName, string username, string password, bool useWebProxy = false) { var connection = new Connection(alias, hostname, port, isSecured, databaseName, username, password, useWebProxy); _connections.Add(alias, connection); }
public static void AddConnection(string alias, string hostname, int port, bool isSecured, string username, string password) { var connection = new Connection(alias, hostname, port, isSecured, username, password); _connections.Add(alias, connection); }