Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (29 sloc) 1.18 KB
description
Type-DB is built to be configurable and modulable, this article will explain you how.

Configuration and Modes

Fluent Configuration

Type-DB.Core has a fluid configuration that will allow you to enjoy all his features, when you instanciate the Core object with new TypeDB.Core() you get access to all this API methods.

using (var tdb = new TypeDB.Core(Mode.Standalone)
    .Configure()
    .UsePersistence()
    .UseReplication()
    .UseTriggers()
    .UseAuthentication()
    .UseEncryption()
    .UseQuotas()
    .Connect())
using (var testdb = tdb.OpenDatabase("test", true))
{
    // do something
}

Standalone or Remote Mode ?

These are the two running modes of Type-DB, the first is the default and is pretty self-explanatory the second is backed with Type-DB.Server, all your entities will be stored remotely.

{% page-ref page="type-db.server/overview-of-type-db.server.md" %}

The Configuration Object

The Configuration object through the .Configure() API is the best way to setup everything that is not present in the fluent configuration.

Instance object provide an access to the Configuration property to make hot changes.

You can’t perform that action at this time.