Skip to content

Commit

Permalink
Renamed namespace and classes to UltraLiteDB
Browse files Browse the repository at this point in the history
  • Loading branch information
rejemy committed Feb 22, 2019
1 parent c3b20ae commit 1181d65
Show file tree
Hide file tree
Showing 89 changed files with 138 additions and 189 deletions.
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .travis/before-install-linux.sh

This file was deleted.

20 changes: 0 additions & 20 deletions .travis/before-install-osx.sh

This file was deleted.

Binary file removed LiteDB/LiteDB.snk
Binary file not shown.
2 changes: 1 addition & 1 deletion LiteDB.sln → UltraLiteDB.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LiteDB", "LiteDB\LiteDB.csproj", "{9497DA19-1FCA-4C2E-A1AB-8DFAACBC76E1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UltraLiteDB", "UltraLiteDB\UltraLiteDB.csproj", "{9497DA19-1FCA-4C2E-A1AB-8DFAACBC76E1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Linq;
using System.Linq.Expressions;

namespace LiteDB
namespace UltraLiteDB
{
public partial class LiteCollection
public partial class UltraLiteCollection
{
#region Count

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Linq.Expressions;

namespace LiteDB
namespace UltraLiteDB
{
public partial class LiteCollection
public partial class UltraLiteCollection
{
/// <summary>
/// Remove all document based on a Query object. Returns removed document counts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
public partial class LiteCollection
public partial class UltraLiteCollection
{
#region Find

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
public partial class LiteCollection
public partial class UltraLiteCollection
{
/// <summary>
/// Insert a new entity to this collection. Document Id must be a new value in collection - Returns document Id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.Collections.Generic;

namespace LiteDB
namespace UltraLiteDB
{
public sealed partial class LiteCollection
public sealed partial class UltraLiteCollection
{
private string _name;
private LazyLoad<LiteEngine> _engine;
private LazyLoad<UltraLiteEngine> _engine;
private Logger _log;


Expand All @@ -18,7 +18,7 @@ public sealed partial class LiteCollection
public string Name { get { return _name; } }


public LiteCollection(string name, LazyLoad<LiteEngine> engine, Logger log)
public UltraLiteCollection(string name, LazyLoad<UltraLiteEngine> engine, Logger log)
{
_name = name;
_engine = engine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
public partial class LiteCollection
public partial class UltraLiteCollection
{
/// <summary>
/// Update a document in this collection. Returns false if not found document in collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
public partial class LiteCollection
public partial class UltraLiteCollection
{
/// <summary>
/// Insert or Update a document in this collection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
using System.IO;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// The LiteDB database. Used for create a LiteDB instance and use all storage resources. It's the database connection
/// </summary>
public partial class LiteDatabase : IDisposable
public partial class UltraLiteDatabase : IDisposable
{
#region Properties

private LazyLoad<LiteEngine> _engine = null;
private LazyLoad<UltraLiteEngine> _engine = null;
private Logger _log = null;
private ConnectionString _connectionString = null;

Expand All @@ -24,7 +24,7 @@ public partial class LiteDatabase : IDisposable
/// <summary>
/// Get current database engine instance. Engine is lower data layer that works with BsonDocuments only (no mapper, no LINQ)
/// </summary>
public LiteEngine Engine { get { return _engine.Value; } }
public UltraLiteEngine Engine { get { return _engine.Value; } }

#endregion

Expand All @@ -33,15 +33,15 @@ public partial class LiteDatabase : IDisposable
/// <summary>
/// Starts LiteDB database using a connection string for file system database
/// </summary>
public LiteDatabase(string connectionString, Logger log = null)
public UltraLiteDatabase(string connectionString, Logger log = null)
: this(new ConnectionString(connectionString), log)
{
}

/// <summary>
/// Starts LiteDB database using a connection string for file system database
/// </summary>
public LiteDatabase(ConnectionString connectionString, Logger log = null)
public UltraLiteDatabase(ConnectionString connectionString, Logger log = null)
{
if (connectionString == null) throw new ArgumentNullException(nameof(connectionString));

Expand All @@ -62,19 +62,19 @@ public LiteDatabase(ConnectionString connectionString, Logger log = null)
Journal = _connectionString.Journal,
};

_engine = new LazyLoad<LiteEngine>(() => new LiteEngine(new FileDiskService(_connectionString.Filename, options), _connectionString.Password, _connectionString.Timeout, _connectionString.CacheSize, _log, _connectionString.UtcDate));
_engine = new LazyLoad<UltraLiteEngine>(() => new UltraLiteEngine(new FileDiskService(_connectionString.Filename, options), _connectionString.Password, _connectionString.Timeout, _connectionString.CacheSize, _log, _connectionString.UtcDate));
}

/// <summary>
/// Starts LiteDB database using a Stream disk
/// </summary>
public LiteDatabase(Stream stream, string password = null, bool disposeStream = false)
public UltraLiteDatabase(Stream stream, string password = null, bool disposeStream = false)
{
if (stream == null) throw new ArgumentNullException(nameof(stream));

_log = new Logger();

_engine = new LazyLoad<LiteEngine>(() => new LiteEngine(new StreamDiskService(stream, disposeStream), password: password, log: _log));
_engine = new LazyLoad<UltraLiteEngine>(() => new UltraLiteEngine(new StreamDiskService(stream, disposeStream), password: password, log: _log));
}

/// <summary>
Expand All @@ -85,13 +85,13 @@ public LiteDatabase(Stream stream, string password = null, bool disposeStream =
/// <param name="timeout">Locker timeout for concurrent access</param>
/// <param name="cacheSize">Max memory pages used before flush data in Journal file (when available)</param>
/// <param name="log">Custom log implementation</param>
public LiteDatabase(IDiskService diskService, string password = null, TimeSpan? timeout = null, int cacheSize = 5000, Logger log = null)
public UltraLiteDatabase(IDiskService diskService, string password = null, TimeSpan? timeout = null, int cacheSize = 5000, Logger log = null)
{
if (diskService == null) throw new ArgumentNullException(nameof(diskService));

_log = log ?? new Logger();

_engine = new LazyLoad<LiteEngine>(() => new LiteEngine(diskService, password: password, timeout: timeout, cacheSize: cacheSize, log: _log ));
_engine = new LazyLoad<UltraLiteEngine>(() => new UltraLiteEngine(diskService, password: password, timeout: timeout, cacheSize: cacheSize, log: _log ));
}

#endregion
Expand All @@ -103,11 +103,11 @@ public LiteDatabase(IDiskService diskService, string password = null, TimeSpan?
/// Get a collection using a generic BsonDocument. If collection does not exits, create a new one.
/// </summary>
/// <param name="name">Collection name (case insensitive)</param>
public LiteCollection GetCollection(string name)
public UltraLiteCollection GetCollection(string name)
{
if (name.IsNullOrWhiteSpace()) throw new ArgumentNullException(nameof(name));

return new LiteCollection(name, _engine, _log);
return new UltraLiteCollection(name, _engine, _log);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Text;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Internal class to deserialize a byte[] into a BsonDocument using BSON data format
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Class to call method for convert BsonDocument to/from byte[] - based on http://bsonspec.org/spec.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Internal class to serialize a BsonDocument to BSON data format (byte[])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
public class BsonArray : BsonValue, IList<BsonValue>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
public class BsonDocument : BsonValue, IDictionary<string, BsonValue>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// All supported BsonTypes in sort order
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Globalization;
using System.Text;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Represent a Bson Value used in BsonDocument
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Security;
using System.Threading;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Represent a 12-bytes BSON type used in document Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.IO;
using System.Threading;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Implement NTFS File disk
Expand Down Expand Up @@ -67,7 +67,7 @@ public void Initialize(Logger log, string password)
_log.Write(Logger.DISK, "initialize new datafile");

// create datafile
LiteEngine.CreateDatabase(_stream, password, _options.InitialSize);
UltraLiteEngine.CreateDatabase(_stream, password, _options.InitialSize);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections;
using System.Collections.Generic;

namespace LiteDB
namespace UltraLiteDB
{
public interface IDiskService : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.IO;
using System.Threading;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Implement generic Stream disk service. Used for any read/write/seek stream
Expand Down Expand Up @@ -39,7 +39,7 @@ public void Initialize(Logger log, string password)
_log.Write(Logger.DISK, "initialize new datafile");

// create datafile
LiteEngine.CreateDatabase(_stream, password);
UltraLiteEngine.CreateDatabase(_stream, password);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.IO;
using System.Threading;

namespace LiteDB
namespace UltraLiteDB
{
/// <summary>
/// Implement temporary disk access. Open datafile only when be used and delete when dispose. No journal, no sharing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Linq;

namespace LiteDB
namespace UltraLiteDB
{
public partial class LiteEngine
public partial class UltraLiteEngine
{
/// <summary>
/// Returns first value from an index (first is min value)
Expand Down
Loading

0 comments on commit 1181d65

Please sign in to comment.