Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: export from loki should not include meta #593

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

Android-KitKat
Copy link
Contributor

@Android-KitKat Android-KitKat commented Sep 11, 2023

在私有部署,从 Loki 数据库导出数据时,包含了元信息。

"meta": {
  "revision": 0,
  "created": 1672531200000,
  "version": 0
},
"$loki": 1

导入其他数据库时,这部分数据可能会产生冲突或错误。
比如在 MongoDB 会报错 key $loki must not start with '$'

我认为导出时,可以不包含这些非关键数据。
根据文档 Class: Resultset - Method: dataremoveMeta 选项可以实现。

@Android-KitKat Android-KitKat changed the title fix: export from loki includes meta fix: loki export should not include meta Sep 11, 2023
@Android-KitKat Android-KitKat changed the title fix: loki export should not include meta fix: export from loki should not include meta Sep 11, 2023
@imaegoo imaegoo merged commit e8f6d5a into twikoojs:main Sep 12, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants