Skip to content

ServiceGeodatabaseHandle

ServiceGeodatabaseHandle = object

Defined in: src/ExpoArcgis.types.ts:716

Handle to a service geodatabase’s branch-versioning surface, from FeatureLayerHandle.getServiceGeodatabase(). Manages named versions and pushes the service-wide local edits (across every connected table) to the active version. Edit features through the <FeatureLayer> handle with apply: false, then call applyEdits() here to push them — distinct from the table-level FeatureLayerHandle.applyEdits(), which pushes only this layer’s table.

applyEdits(): Promise<EditResult[]>

Defined in: src/ExpoArcgis.types.ts:724

Pushes all connected tables’ local edits to the active version in one batch.

Promise<EditResult[]>


createVersion(params): Promise<ServiceVersionInfo>

Defined in: src/ExpoArcgis.types.ts:720

Creates a new branch version and resolves with its info.

CreateVersionParams

Promise<ServiceVersionInfo>


fetchVersions(): Promise<ServiceVersionInfo[]>

Defined in: src/ExpoArcgis.types.ts:718

Lists all branch versions on the service.

Promise<ServiceVersionInfo[]>


getDefaultVersionName(): string

Defined in: src/ExpoArcgis.types.ts:732

The default version name (e.g. "sde.DEFAULT").

string


getFeatureLayer(layerId): FeatureLayerHandle

Defined in: src/ExpoArcgis.types.ts:739

Returns a <FeatureLayer layer>-attachable handle for the service table with layerId, bound to the active version — its edits join the version’s local edits (pushed by applyEdits).

number

FeatureLayerHandle


getVersionName(): string

Defined in: src/ExpoArcgis.types.ts:730

The active version’s name.

string


hasLocalEdits(): boolean

Defined in: src/ExpoArcgis.types.ts:728

Whether any connected table has unsaved local edits.

boolean


supportsBranchVersioning(): boolean

Defined in: src/ExpoArcgis.types.ts:734

Whether the service supports branch versioning.

boolean


switchVersion(name): Promise<void>

Defined in: src/ExpoArcgis.types.ts:722

Switches the active version (rejects if there are outstanding local edits).

string

Promise<void>


undoLocalEdits(): Promise<void>

Defined in: src/ExpoArcgis.types.ts:726

Discards all local edits across connected tables.

Promise<void>