Skip to content

Commit

Permalink
v3.2.13
Browse files Browse the repository at this point in the history
- code refactoring
- bug fix full text index search with leading not "-oak hill"
- fix time output in logs
- upgrade to fastJSON v2.1.14
- upgrade to fastBinaryJSON v1.4.11
  • Loading branch information
mgholam committed May 31, 2015
1 parent b894d05 commit 23a56a3
Show file tree
Hide file tree
Showing 15 changed files with 444 additions and 263 deletions.
2 changes: 1 addition & 1 deletion BuildVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
using System.Runtime.InteropServices;

[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.2.12.0")]
[assembly: AssemblyFileVersion("3.2.13.0")]
91 changes: 65 additions & 26 deletions RaptorDB.Common/Interfaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@

namespace RaptorDB
{
public static class RDBExtensions
{
///// <summary>
///// For RaptorDB optimized range queries
///// </summary>
///// <typeparam name="T"></typeparam>
///// <param name="obj"></param>
///// <param name="from"></param>
///// <param name="to"></param>
///// <returns></returns>
//public static bool Between<T>(this T obj, T from, T to)
//{
// return true;
//}

///// <summary>
///// For RaptorDB full text search queries
///// </summary>
///// <param name="obj"></param>
///// <param name="what"></param>
///// <returns></returns>
//public static bool Contains(this string obj, string what)
//{
// return true;
//}
}
//public static class RDBExtensions
//{
// ///// <summary>
// ///// For RaptorDB optimized range queries
// ///// </summary>
// ///// <typeparam name="T"></typeparam>
// ///// <param name="obj"></param>
// ///// <param name="from"></param>
// ///// <param name="to"></param>
// ///// <returns></returns>
// //public static bool Between<T>(this T obj, T from, T to)
// //{
// // return true;
// //}

// ///// <summary>
// ///// For RaptorDB full text search queries
// ///// </summary>
// ///// <param name="obj"></param>
// ///// <param name="what"></param>
// ///// <returns></returns>
// //public static bool Contains(this string obj, string what)
// //{
// // return true;
// //}
//}

/// <summary>
/// Used for normal string columns
Expand Down Expand Up @@ -145,4 +145,43 @@ public interface IClientHandler
{
bool GenerateClientData(IQueryInterface api, string username, List<Guid> DocsToSend);
}

public enum COMMANDS
{
Save,
SaveBytes,
QueryType,
QueryStr,
Fetch,
FetchBytes,
Backup,
Delete,
DeleteBytes,
Restore,
AddUser,
ServerSide,
FullText,
CountType,
CountStr,
GCount,
DocHistory,
FileHistory,
FetchVersion,
FetchFileVersion,
CheckAssembly,
FetchHistoryInfo,
FetchByteHistoryInfo,
ViewDelete,
ViewDelete_t,
ViewInsert,
ViewInsert_t,
DocCount,
GetObjectHF,
SetObjectHF,
DeleteKeyHF,
CountHF,
ContainsHF,
GetKeysHF,
CompactStorageHF
}
}
2 changes: 1 addition & 1 deletion RaptorDB.Common/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private void WriteData()
private string FormatLog(string log, string type, string meth, string msg, object[] objs)
{
StringBuilder sb = new StringBuilder();
sb.Append(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"));
sb.Append(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
sb.Append("|");
sb.Append(log);
sb.Append("|");
Expand Down
Loading

0 comments on commit 23a56a3

Please sign in to comment.