discontinuedPackage powersync_core has been discontinued and replaced by powersync.

AccessMode enum

In addition to the StorageMode describing which browser API is used to store content, this enum describes how databases are accessed.

Inheritance
Available extensions

Values

throughSharedWorker → const AccessMode

Access databases by spawning a shared worker shared across tabs.

This is more efficient as it avoids synchronization conflicts between tabs which may slow things down.

throughDedicatedWorker → const AccessMode

Access databases by spawning a dedicated worker for this tab.

inCurrentContext → const AccessMode

Access databases without any shared or dedicated worker.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<AccessMode>
A constant List of the values in this enum, in order of their declaration.