Skip to content

GeodatabaseHandle

GeodatabaseHandle = object

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

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

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

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

Promise<void>


commitTransaction(): Promise<void>

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

Persists all edits made since beginTransaction.

Promise<void>


getFeatureLayer(tableName): FeatureLayerHandle

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

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

The names of the geodatabase’s feature tables.

string[]


isInTransaction(): boolean

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

Whether a transaction is currently open.

boolean


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

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

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

string

string

Promise<number>


rollbackTransaction(): Promise<void>

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

Discards all edits made since beginTransaction.

Promise<void>