Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

WebDB API #45

Open
icode opened this issue Dec 22, 2014 · 0 comments
Open

WebDB API #45

icode opened this issue Dec 22, 2014 · 0 comments
Labels

Comments

@icode
Copy link
Owner

icode commented Dec 22, 2014

  1. 通过HTTP(WS/HTTP)暴露DB接口
  2. 通过js直接对数据库操作
  3. 可设置接口权限
  4. 支持事务

事务处理流程

  1. 查询数据库
  2. 处理用户逻辑后带着老的数据 json-patch?
  3. 如无法更新,则根据api:
    1. 重新查询最新数据
    2. 失败次数多余参数设定值,直接报错

参考 https://firebase.google.com/docs/database/server/save-data#section-transactions

@icode icode added the feature label Dec 22, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant