-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor bug * collection indices in db test * bug not creating default db indices and remove index id txn uid that would be overwritten * indices test * add tests and bug fixes * enum for db storing policy of history, shadow features, and meta * docs * delegate autoPurge and disableHistory booleans to new enums
- Loading branch information
Showing
7 changed files
with
300 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
here-naksha-lib-model/src/commonMain/kotlin/naksha/model/objects/StoreMode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@file:Suppress("OPT_IN_USAGE") | ||
package naksha.model.objects | ||
|
||
import naksha.base.JsEnum | ||
import kotlin.js.JsExport | ||
import kotlin.jvm.JvmField | ||
import kotlin.reflect.KClass | ||
|
||
/** | ||
* How the data should be stored for certain components of [NakshaCollection]. | ||
* [ON] data should be stored. | ||
* [SUSPEND] newer data should not be collected, older data still available. | ||
* [OFF] all data is wiped and no new data collected. | ||
*/ | ||
@JsExport | ||
class StoreMode: JsEnum() { | ||
companion object StoreMode_C { | ||
@JvmField | ||
val ON = defIgnoreCase(StoreMode::class, "on") | ||
|
||
@JvmField | ||
val SUSPEND = defIgnoreCase(StoreMode::class, "suspend") | ||
|
||
@JvmField | ||
val OFF = defIgnoreCase(StoreMode::class, "off") | ||
} | ||
|
||
@Suppress("NON_EXPORTABLE_TYPE") | ||
override fun namespace(): KClass<out JsEnum> = StoreMode::class | ||
|
||
override fun initClass() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.