![](/img/trans.png)
[英]Create Dynamic collections with ArangoDB using Spring JPA
[英]ArangoDB Synchronizing System Collections
我最近重新格式化了我的壓縮程序,現在又重新設置了開發環境,其中包括ArangoDB。 我正在將生產數據庫中的數據同步到開發數據庫中以進行測試。 除不同步系統集合(特別是_users集合)外,此方法工作正常。 是否可以這樣做,還是我必須在開發環境中手動重新創建用戶?
我嘗試使用strictType和restrictCollections參數,但是我必須做錯了什么,因為它返回了:
{
"error": true,
"errorMessage": "invalid value for <restrictCollections> or <restrictType>",
"code": 400,
"errorNum": 400
}
我正在提交此文件:(出於明顯的安全原因,替換了我的實際數據)
{
"endpoint": "tcp://myserver.com:8529",
"database": "mydb",
"username": "myusername",
"password": "mypassword",
"restrictType":"include",
"restrictCollections":"_users"
}
它可以在沒有strictType和restrictCollections鍵的情況下工作。 我認為我的語法有誤。 有任何想法嗎? 謝謝!
更新:我的語法是錯誤的,我在下面更正了它,但是不幸的是它仍然不能同步系統數據庫。 有沒有辦法做到這一點,或者有更好的選擇? 謝謝!
{
"endpoint": "tcp://myserver.com:8529",
"database": "mydb",
"username": "myusername",
"password": "mypassword",
"restrictType":"include",
"restrictCollections":["_users"] //takes an array, not a list of strings
}
正如@stj已經提到的那樣,在我們的devel
分支中已實現了inclusion
和exclusion
復制的系統集合: https : //github.com/triAGENS/ArangoDB/commit/909b1300bd119af808ad3d6696617d824abc7c4f
這也應該在計划於今年年底發布的2.4版本中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.