实现“每个用户的数据库模式"在 CouchDB 中(Cloudant <-> PouchDB) [英] Implement "Database per user pattern" in CouchDB (Cloudant <-> PouchDB)

查看:27
本文介绍了实现“每个用户的数据库模式"在 CouchDB 中(Cloudant <-> PouchDB)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能给我一个简单的例子,如何在 CouchDB (Cloudant <-> PouchDB) 中实现每个用户的数据库模式"?用户通过 Auth0 (jwt) 进行身份验证.我找不到有关此主题的信息.

任何帮助将不胜感激!

解决方案

这里是一个示例注册/注册应用程序 使用每个用户一个数据库"模式.您可以查看方法来帮助您入门.>

但是,您可能需要考虑 cloudant-envoy 它允许您的客户端代码可以采用每个用户一个数据库"的设计模式,但将所有用户的数据存储在一个大数据库中,防止数据库的激增.

Can anyone provide me a simple example how to implement the "Database per user pattern" in CouchDB (Cloudant <-> PouchDB)? The users get authenticated with Auth0 (jwt). I'm not able to find something regarding this topic.

Any help would be appreciated!

解决方案

here is a sample register/sign-up application using the "one database per user" pattern. you can review it's approach to help you get started.

however, you may want to consider cloudant-envoy which allows your client side code can adopt a "one database per user" design pattern but stores all the users' data in one large database preventing the proliferation of databases.

这篇关于实现“每个用户的数据库模式"在 CouchDB 中(Cloudant &lt;-&gt; PouchDB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆