Skip to content
Guides API

GeodatabaseHandle

GeodatabaseHandle = object

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

A local mobile geodatabase (.geodatabase file) opened with offline.openGeodatabase(path). Wrap a batch of edits in beginTransaction then commitTransaction (persist) or rollbackTransaction (discard). Edits target a feature table by name.

addFeature(tableName, attributes, geometry?): Promise<void>

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

Adds a feature to tableName; local until the transaction is committed.

string

Record<string, unknown>

Geometry

Promise<void>


beginTransaction(): Promise<void>

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

Starts a transaction. Subsequent edits are buffered until commit or rollback.

Promise<void>


commitTransaction(): Promise<void>

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

Persists all edits made since beginTransaction.

Promise<void>


getFeatureLayer(tableName): FeatureLayerHandle

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

Returns a <FeatureLayer layer>-attachable handle for tableName — display and edit the table on a map; edits join the open transaction.

string

FeatureLayerHandle


getFeatureTableNames(): string[]

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

The names of the geodatabase’s feature tables.

string[]


isInTransaction(): boolean

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

Whether a transaction is currently open.

boolean


queryFeatureCount(tableName, whereClause?): Promise<number>

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

Counts features in tableName matching whereClause (all when omitted).

string

string

Promise<number>


rollbackTransaction(): Promise<void>

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

Discards all edits made since beginTransaction.

Promise<void>