Class DatabaseConfig
Cloud-ShareSync database configuration settings.
Inheritance
Implements
Namespace: Cloud_ShareSync.Core.Configuration.Types
Assembly: Cloud-ShareSync.Core.Configuration.dll
Syntax
public class DatabaseConfig : object, ICloudShareSyncConfig
Properties
| Improve this Doc View SourcePostgresConnectionString
The connection string for a postgres database.
Declaration
public string PostgresConnectionString { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | An empty langword_csharp_string. |
SqliteDBPath
The path, either relative or complete, to the directory where the Cloud-ShareSync sqlite database exists.
Declaration
public string SqliteDBPath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
UsePostgres
When enabled Cloud-ShareSync will store data in a non-included postgres database. When enabled PostgresConnectionString must contain a valid postgres connection string.
Cloud-ShareSync requires a database for operation. Either UsePostgres or UseSqlite must be true. But only one can be true at any given time.
Declaration
public bool UsePostgres { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | false |
UseSqlite
When enabled Cloud-ShareSync will store data in a local sqlite database.
Cloud-ShareSync requires a database for operation. Either UseSqlite or UsePostgres must be true. But only one can be true at any given time.
Declaration
public bool UseSqlite { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | Returns the DatabaseConfig as a json string. |