Show / Hide Table of Contents

Class DatabaseConfig

Cloud-ShareSync database configuration settings.

Inheritance
System.Object
DatabaseConfig
Implements
ICloudShareSyncConfig
Namespace: Cloud_ShareSync.Core.Configuration.Types
Assembly: Cloud-ShareSync.Core.Configuration.dll
Syntax
public class DatabaseConfig : object, ICloudShareSyncConfig

Properties

| Improve this Doc View Source

PostgresConnectionString

The connection string for a postgres database.

Declaration
public string PostgresConnectionString { get; set; }
Property Value
Type Description
System.String

An empty langword_csharp_string.

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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 Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Returns the DatabaseConfig as a json string.

Implements

ICloudShareSyncConfig
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
About Me | Open Source Acknowledgements | Security
☀
☾