Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb Inheritance: System.Object

Syntax

CloudNimble.BlazorEssentials.TursoDb.TursoSyncOptions

Summary

Configuration options for Turso Cloud sync.

Constructors

.ctor

Syntax

public TursoSyncOptions()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

AuthToken

Gets or sets the authentication token for Turso Cloud. This token is obtained from the Turso CLI or dashboard.

Syntax

public string AuthToken { get; set; }

Property Value

Type: string

EncryptionEnabled

Gets or sets whether to encrypt the local database. Requires an encryption key to be set.

Syntax

public bool EncryptionEnabled { get; set; }

Property Value

Type: bool

EncryptionKey

Gets or sets the encryption key for the local database. Required when EncryptionEnabled is true.

Syntax

public string EncryptionKey { get; set; }

Property Value

Type: string?

SyncIntervalMs

Gets or sets the sync interval in milliseconds. Set to 0 to disable automatic sync. Default is 0 (manual sync only).

Syntax

public int SyncIntervalMs { get; set; }

Property Value

Type: int

SyncOnConnect

Gets or sets whether to automatically sync on connect. Default is true.

Syntax

public bool SyncOnConnect { get; set; }

Property Value

Type: bool

SyncUrl

Gets or sets the sync URL for the Turso Cloud database. This is typically in the format: libsql://[database-name]-[org-name].turso.io

Syntax

public string SyncUrl { get; set; }

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?