using RethinkDb.Driver.Ast;
using RethinkDb.Driver.Net;
using RethinkDb.Driver.Net.Clustering;
namespace RethinkDb.Driver
{
///
/// The RethinkDB API
///
public class RethinkDB : TopLevel
{
///
/// The Singleton to use to begin interacting with RethinkDB Driver
///
public static readonly RethinkDB R = new RethinkDB();
///
/// A connection builder that can create a single connection to a RethinkDB.
///
/// A connection builder for setting connection properties fluently.
public virtual Connection.Builder Connection()
{
return Net.Connection.Build();
}
///
/// A connection builder that can create a pooled connection to a RethinkDB cluster.
///
/// A connection builder for setting connection pool properties fluently.
public virtual ConnectionPool.Builder ConnectionPool()
{
return Net.Clustering.ConnectionPool.Build();
}
}
}