Skip to main content

Definition

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

Syntax

Summary

Configuration options for Turso Cloud sync.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

AuthToken

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

Syntax

Property Value

Type: string

EncryptionEnabled

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

Syntax

Property Value

Type: bool

EncryptionKey

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

Syntax

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

Property Value

Type: int

SyncOnConnect

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

Syntax

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

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?