DatabaseConcurrencyMode

The concurrency control mode to use for this database.

Entries

Link copied to clipboard
Link copied to clipboard

Use optimistic concurrency control by default. This mode is available for Cloud Firestore databases.

Link copied to clipboard

Use pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.

Link copied to clipboard

Use optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun toJava(): DatabaseConcurrencyMode
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
val javaValue: DatabaseConcurrencyMode
Link copied to clipboard
Link copied to clipboard