public DatabaseConfigurator(IRethinkDbConnectionProvider connectionProvider, ConnectionOptions connectionOptions) { _connectionProvider = connectionProvider; _connectionOptions = connectionOptions; _connection = _connectionProvider.GetConnection(_connectionOptions) as Connection; }
public ReGridStorageProvider(IRethinkDbConnectionProvider connectionProvider, ConnectionOptions connectionOptions) { _connectionOptions = connectionOptions; _connection = connectionProvider.GetConnection(_connectionOptions); _bucket = new Bucket(_connection, _connectionOptions.DBName, "fs"); _bucket.Mount(); }
public RethinkDbRepository(IRethinkDbConnectionProvider connectionProvider, ConnectionOptions connectionOptions, IQueryTemplateFinder queryTemplateProvider) { _connectionOptions = connectionOptions; _connection = connectionProvider.GetConnection(_connectionOptions); _queryTemplateProvider = queryTemplateProvider; }