2020-12-22 03:13:43 +00:00
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
2020-04-23 03:31:17 +01:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
2021-03-31 04:07:11 +01:00
|
|
|
|
using System.Linq;
|
2020-04-23 03:31:17 +01:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using RethinkDb.Driver;
|
2020-04-28 01:50:50 +01:00
|
|
|
|
using RethinkDb.Driver.Ast;
|
2020-04-23 03:31:17 +01:00
|
|
|
|
using RethinkDb.Driver.Net;
|
|
|
|
|
|
|
|
|
|
|
|
public static class RethinkConnection
|
|
|
|
|
|
{
|
|
|
|
|
|
public static RethinkDB R = RethinkDB.R;
|
|
|
|
|
|
|
2021-03-31 04:07:11 +01:00
|
|
|
|
public static RethinkQueryStatus RethinkConnect(CultCache cache, string connectionString, string dbName, bool syncLocalChanges = true)
|
2020-04-23 03:31:17 +01:00
|
|
|
|
{
|
2020-05-10 00:16:33 +01:00
|
|
|
|
var status = new RethinkQueryStatus();
|
|
|
|
|
|
|
2020-04-23 03:31:17 +01:00
|
|
|
|
|
2020-05-10 00:16:33 +01:00
|
|
|
|
return status;
|
2020-04-23 03:31:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2020-05-10 00:16:33 +01:00
|
|
|
|
|
2021-04-07 01:27:35 +01:00
|
|
|
|
|
2020-05-10 00:16:33 +01:00
|
|
|
|
public class RethinkQueryStatus
|
|
|
|
|
|
{
|
2021-03-31 04:07:11 +01:00
|
|
|
|
public int RetrievedEntries;
|
|
|
|
|
|
public int TotalEntries;
|
2020-05-10 00:16:33 +01:00
|
|
|
|
}
|