Skip to content
Guides API

ServiceGeodatabaseHandle

ServiceGeodatabaseHandle = object

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

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:943

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:939

Creates a new branch version and resolves with its info.

CreateVersionParams

Promise<ServiceVersionInfo>


fetchVersions(): Promise<ServiceVersionInfo[]>

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

Lists all branch versions on the service.

Promise<ServiceVersionInfo[]>


getDefaultVersionName(): string

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

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

string


getFeatureLayer(layerId): FeatureLayerHandle

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

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


getSharedTemplates(): Promise<SharedTemplateInfo[]>

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

Shared templates published with the service, grouped by layer id (ArcGIS 300.1 for the relationship counts). A shared template creates several related features at once — a transformer plus the pole it sits on — where a plain feature template creates one.

Promise<SharedTemplateInfo[]>


getVersionName(): string

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

The active version’s name.

string


hasLocalEdits(): boolean

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

Whether any connected table has unsaved local edits.

boolean


refresh(): Promise<void>

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

Re-reads the service’s version state (ArcGIS 300.1). In a multi-user branch-versioning workflow another client’s edits to the current version stay invisible until this runs — call it before querying when a stale read would matter. Requires ArcGIS Enterprise 12.0+.

Promise<void>


supportsBranchVersioning(): boolean

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

Whether the service supports branch versioning.

boolean


switchVersion(name): Promise<void>

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

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

string

Promise<void>


undoLocalEdits(): Promise<void>

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

Discards all local edits across connected tables.

Promise<void>