Aetheria/Assets/Scripts/ServerShared/NIH/RethinkDb.Driver/RethinkDB.cs
hyperion51 e96146b7bb Out with MagicOnion, in with LiteNetLib
Removed MagicOnion
Added LiteNetLib
Created client and server abstractions
Fixed serialization bugs
2020-03-24 14:36:22 +00:00

35 lines
No EOL
1.1 KiB
C#

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