| 71 | * Represents a *synchronous* key-value store. |
| 72 | */ |
| 73 | export interface SyncKeyValueStore { |
| 74 | /** |
| 75 | * The name of the key-value store. |
| 76 | */ |
| 77 | name(): string; |
| 78 | /** |
| 79 | * Empties the key-value store completely. |
| 80 | */ |
| 81 | clear(): void; |
| 82 | /** |
| 83 | * Begins a new read-only transaction. |
| 84 | */ |
| 85 | beginTransaction(type: "readonly"): SyncKeyValueROTransaction; |
| 86 | /** |
| 87 | * Begins a new read-write transaction. |
| 88 | */ |
| 89 | beginTransaction(type: "readwrite"): SyncKeyValueRWTransaction; |
| 90 | beginTransaction(type: string): SyncKeyValueROTransaction; |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * A read-only transaction for a synchronous key value store. |
no outgoing calls
no test coverage detected