Click or drag to resize

EngineSettings Class

All engine settings used to starts new engine
Inheritance Hierarchy
SystemObject
  Internal.LiteDB.EngineEngineSettings

Namespace: Internal.LiteDB.Engine
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class EngineSettings

The EngineSettings type exposes the following members.

Constructors
 NameDescription
Public methodEngineSettingsInitializes a new instance of the EngineSettings class
Top
Properties
 NameDescription
Public propertyAutoRebuild After a Close with exception do a database rebuild on next open
Public propertyCollation Create database with custom string collection (used only to create database) (default: Collation.Default)
Public propertyDataStream Get/Set custom stream to be used as datafile (can be MemoryStream or TempStream). Do not use FileStream - to use physical file, use "filename" attribute (and keep DataStream/WalStream null)
Public propertyFilename Full path or relative path from DLL directory. Can use ':temp:' for temp database or ':memory:' for in-memory database. (default: null)
Public propertyInitialSize If database is new, initialize with allocated space (in bytes) (default: 0)
Public propertyLogStream Get/Set custom stream to be used as log file. If is null, use a new TempStream (for TempStream datafile) or MemoryStream (for MemoryStream datafile)
Public propertyPassword Get database password to decrypt pages
Public propertyReadOnly Indicate that engine will open files in readonly mode (and will not support any database change)
Public propertyReadTransform Is used to transform a BsonValue from the database on read. This can be used to upgrade data from older versions.
Public propertyTempStream Get/Set custom stream to be used as temp file. If is null, will create new FileStreamFactory with "-tmp" on name
Public propertyUpgrade If detect it's a older version (v4) do upgrade in datafile to new v5. A backup file will be keeped in same directory
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also